From 4ef89f74f40589c446d55eaedffff04260d00ba0 Mon Sep 17 00:00:00 2001 From: Naresh Solanki Date: Thu, 25 May 2023 17:37:50 +0200 Subject: soc/amd/block/ivrs: Generalize IVRS table generation This commit introduces a refactored version of the IVRS (I/O Virtualization Reporting Structure) table generation. The main objective of this refactoring is to generalize the process of generating the IVRS table based on the IOMMU (Input/Output Memory Management Unit) domains and their corresponding resources. Signed-off-by: Naresh Solanki Change-Id: Ic471f05d6000c21081d70495b7dbd4350e68b774 Reviewed-on: https://review.coreboot.org/c/coreboot/+/75451 Reviewed-by: Lean Sheng Tan Tested-by: build bot (Jenkins) --- src/soc/amd/common/block/include/amdblocks/data_fabric.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/soc/amd/common/block/include') diff --git a/src/soc/amd/common/block/include/amdblocks/data_fabric.h b/src/soc/amd/common/block/include/amdblocks/data_fabric.h index 0ed3272342..0772b7db9c 100644 --- a/src/soc/amd/common/block/include/amdblocks/data_fabric.h +++ b/src/soc/amd/common/block/include/amdblocks/data_fabric.h @@ -11,6 +11,9 @@ #define BROADCAST_FABRIC_ID 0xff +/* Index of IOAPI resource associated with IOMMU */ +#define IOMMU_IOAPIC_IDX 0x20000120 + #define DF_MMIO_REG_OFFSET(instance) ((instance) * DF_MMIO_REG_SET_SIZE * sizeof(uint32_t)) /* The number of data fabric MMIO registers is SoC-specific */ -- cgit v1.2.3