Skip to contentSkip to conversation

iasl: Add SMMUv3 device ID mapping index support

PATCH In review Hanjun Guo 4 participants 4 messages Aug 9, 2017 – Aug 17, 2017 ACPI component architecture (acpica)

lore
Share & tools
lore

Hanjun Guo

author
#0 lore raw

PATCH 1/1 iasl: Add SMMUv3 device ID mapping index support

From: Hanjun Guo <hanjun.guo(a)linaro.org>

SMMUv3 device ID mapping index is used for SMMUv3
MSI, add its support for iasl.

Signed-off-by Hanjun Guo <hanjun.guo(a)linaro.org>
---
 source/common/dmtbinfo.c | 1 +
 source/include/actbl2.h  | 1 +
 2 files changed, 2 insertions(+)
source/common/dmtbinfo.c +1 -0
index 4b902b9..4a403e4 100644
@@ -1850,6 +1850,7 @@ ACPI_DMTABLE_INFO           AcpiDmTableInfoIort4[] =
     {ACPI_DMT_UINT8,    ACPI_IORT4_OFFSET (Pxm),                    "Proximity Domain", 0},
     {ACPI_DMT_UINT8,    ACPI_IORT4_OFFSET (Reserved1),              "Reserved", 0},
     {ACPI_DMT_UINT16,   ACPI_IORT4_OFFSET (Reserved2),              "Reserved", 0},
+    {ACPI_DMT_UINT32,   ACPI_IORT4_OFFSET (DevIdMappingIndex),      "DeviceID mapping index", 0},
     ACPI_DMT_TERMINATOR
 };
 
source/include/actbl2.h +1 -0
index 18cfdd4..1a8c1a2 100644
@@ -1047,6 +1047,7 @@ typedef struct acpi_iort_smmu_v3
     UINT8                   Pxm;
     UINT8                   Reserved1;
     UINT16                  Reserved2;
+    UINT32                  DevIdMappingIndex;
 
 } ACPI_IORT_SMMU_V3;
 
Signature · 1 line
1.7.12.4
#1 lore raw

/*******************************************************************************
*
* IORT - IO Remapping Table
*
* Conforms to "IO Remapping Table System Software on ARM Platforms",
* Document number: ARM DEN 0049C, May 2017
* ******************************************************************************/
Is there a new version of this spec (with definition of IORT)?

#2 lore raw
Quoted 9 lines · Robert

/*******************************************************************************
*
* IORT - IO Remapping Table
*
* Conforms to "IO Remapping Table System Software on ARM Platforms",
* Document number: ARM DEN 0049C, May 2017
* ******************************************************************************/
Is there a new version of this spec (with definition of IORT)?

Of course, in the same place it always is: http://uefi.org/acpi

See section 3.1.1.2, Table 9.

Signature · 8 lines
ciao,
al
-----------------------------------
Al Stone
Software Engineer
Red Hat, Inc.
ahs3(a)redhat.com
-----------------------------------
#3 lore raw
Quoted 11 lines · Al Stone
Quoted 9 lines · Robert

/*******************************************************************************
*
* IORT - IO Remapping Table
*
* Conforms to "IO Remapping Table System Software on ARM Platforms",
* Document number: ARM DEN 0049C, May 2017
* ******************************************************************************/
Is there a new version of this spec (with definition of IORT)?

Quoted 3 lines

Of course, in the same place it always is: http://uefi.org/acpi

See section 3.1.1.2, Table 9.

Thanks Al :)

Bob, should I do anything more to get it merged?

Thanks
Hanjun