iommu/amd: Enable support for up to 2K interrupts per function
authorKishon Vijay Abraham I <kvijayab@amd.com>
Fri, 7 Mar 2025 09:58:22 +0000 (15:28 +0530)
committerJoerg Roedel <jroedel@suse.de>
Thu, 13 Mar 2025 11:14:17 +0000 (12:14 +0100)
commit19e5cc156cbc32421eb8237615f246c08eea8284
treecb334229309863eb700db6f9aafb99cd5e94b09c
parent950865c1b88abf190eaec5fa703e5fef05093e30
iommu/amd: Enable support for up to 2K interrupts per function

AMD IOMMU optionally supports up to 2K interrupts per function on newer
platforms. Support for this feature is indicated through Extended
Feature 2 Register (MMIO Offset 01A0h[NumIntRemapSup]). Allocate 2K IRTEs
per device when this support is available.

Co-developed-by: Sairaj Kodilkar <sarunkod@amd.com>
Signed-off-by: Sairaj Kodilkar <sarunkod@amd.com>
Signed-off-by: Kishon Vijay Abraham I <kvijayab@amd.com>
Reviewed-by: Vasant Hegde <vasant.hegde@amd.com>
Link: https://lore.kernel.org/r/20250307095822.2274-5-sarunkod@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/amd_iommu_types.h
drivers/iommu/amd/init.c
drivers/iommu/amd/iommu.c