Skip to content

Commit 81d3c75

Browse files
yianchen2018joergroedel
authored andcommitted
iommu/vt-d: Add new enum value and structure for SATC
Starting from Intel Platform VT-d v3.2, BIOS may provide new remapping structure SATC for SOC integrated devices, according to section 8.8 of Intel VT-d architecture specification v3.2. The SATC structure reports a list of the devices that require ATS for normal device operation. It is a functional requirement that these devices will not work without OS enabling ATS capability. This patch introduces the new enum value and structure to represent the remapping information. Kernel should parse the information from the reporting structure and enable ATC for the devices as needed. Signed-off-by: Yian Chen <[email protected]> Signed-off-by: Lu Baolu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent 933fcd0 commit 81d3c75

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

include/acpi/actbl1.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,8 @@ enum acpi_dmar_type {
514514
ACPI_DMAR_TYPE_ROOT_ATS = 2,
515515
ACPI_DMAR_TYPE_HARDWARE_AFFINITY = 3,
516516
ACPI_DMAR_TYPE_NAMESPACE = 4,
517-
ACPI_DMAR_TYPE_RESERVED = 5 /* 5 and greater are reserved */
517+
ACPI_DMAR_TYPE_SATC = 5,
518+
ACPI_DMAR_TYPE_RESERVED = 6 /* 6 and greater are reserved */
518519
};
519520

520521
/* DMAR Device Scope structure */
@@ -607,6 +608,14 @@ struct acpi_dmar_andd {
607608
char device_name[1];
608609
};
609610

611+
/* 5: SOC Integrated Address Translation Cache Reporting Structure */
612+
613+
struct acpi_dmar_satc {
614+
struct acpi_dmar_header header;
615+
u8 flags;
616+
u8 reserved;
617+
u16 segment;
618+
};
610619
/*******************************************************************************
611620
*
612621
* DRTM - Dynamic Root of Trust for Measurement table

0 commit comments

Comments
 (0)