diff options
author | Thomas Gleixner <[email protected]> | 2022-12-16 11:08:52 +0000 |
---|---|---|
committer | Marc Zyngier <[email protected]> | 2022-12-16 14:04:04 +0000 |
commit | e982ad82bd8f7931f5788a15dfa3709f7a7ee79f (patch) | |
tree | c8ddc0ae0cc97550b9e4edc9a84574b741863373 /scripts/generate_rust_analyzer.py | |
parent | db3568fd80a3999413c04ea0cf52596b7b0ad9aa (diff) |
genirq/msi: Return MSI_XA_DOMAIN_SIZE as the maximum MSI index when no domain is present
On architectures such as s390 that do not use irq domains for MSI,
returning 0 as the maximum MSI index is a bit counter-productive,
as it indicates that no MSI can be allocated. Bad idea.
Instead, return the maximum we're willing to support in the MSI
backing store (MSI_XA_DOMAIN_SIZE), and let the arch code do its
usual thing.
Thanks to Matthew Rosato for fixing the fix.
Reported-by: Guenter Roeck <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
[maz: commit message]
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/87fsdgzpqs.ffs@tglx
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions