iommu/riscv: prefer WSI on IGS=BOTH when wired IRQs are described - #343
Open
gougou1104 wants to merge 1 commit into
Open
iommu/riscv: prefer WSI on IGS=BOTH when wired IRQs are described#343gougou1104 wants to merge 1 commit into
gougou1104 wants to merge 1 commit into
Conversation
driver inclusion category: bugfix Link: RVCK-Project#342 Reference: https://lkml.org/lkml/2026/5/19/1406 -------------------------------- The RISC-V IOMMU spec defines IGS=BOTH as supporting both MSI and WSI, with software selecting the path. The DT path already behaves as expected by selecting WSI when wired IRQ resources are described. The ACPI path, however, currently falls back to MSI even when firmware describes wired IRQ resources. Use firmware-described wired IRQ resources as the trigger to select WSI for IGS=BOTH: - DT: "interrupts" present, no "msi-parent" - ACPI: DSDT _CRS Interrupt() descriptors (mainline does not yet parse the RIMT Interrupt Wire Array) When triggered, rewrite igs to IGS_WSI and reuse the existing WSI handling. Keep the existing behaviour otherwise. Fixes: d5f88ac ("iommu/riscv: Add support for platform msi") Signed-off-by: Fangyu Yu <fangyu.yu@linux.alibaba.com> Signed-off-by: Li Hongbin <lihongbin@lanxincomputing.com>
|
开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/29907454871 参数解析结果
测试完成 详细结果:
Kunit Test Result[09:23:28] Testing complete. Ran 482 tests: passed: 465, skipped: 17
Kernel Build Result
Check Patch Result
LAVA Check (qemu)
result: Lava check done!
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixed: #342
driver inclusion
category: bugfix
Link: #342
Reference: https://lkml.org/lkml/2026/5/19/1406
The RISC-V IOMMU spec defines IGS=BOTH as supporting both MSI and WSI, with software selecting the path. The DT path already behaves as expected by selecting WSI when wired IRQ resources are described. The ACPI path, however, currently falls back to MSI even when firmware describes wired IRQ resources.
Use firmware-described wired IRQ resources as the trigger to select WSI for IGS=BOTH:
When triggered, rewrite igs to IGS_WSI and reuse the existing WSI handling. Keep the existing behaviour otherwise.
Fixes: d5f88ac ("iommu/riscv: Add support for platform msi")