summaryrefslogtreecommitdiff
path: root/src/drivers/pcie/generic
diff options
context:
space:
mode:
authorTim Wawrzynczak <twawrzynczak@chromium.org>2022-02-23 10:17:21 -0700
committerTim Wawrzynczak <twawrzynczak@chromium.org>2022-03-03 20:46:13 +0000
commitafaee235fa0b35ac7272c3dab3a74d272bc1bd8c (patch)
treec4f4ad1733ccebfb4d84b3bf3642e0c1a3a0a4db /src/drivers/pcie/generic
parent114d650fced9ef632aadde90bd7c8e7d1214426a (diff)
drivers/{pcie,wifi}/generic: Update untrusted property name
In order to align with established standards for establishing DMA boundaries[1] from ACPI, the UntrustedDevice property has been renamed to DmaProperty, which follows Microsoft's implementation. After discussions with Microsoft, they have agreed to make the `UID` property optional, so it is left out here, and instead it can be applied to: 1) Internal PCI devices 2) PCIe root ports 3) Downstream PCI(e) devices [1]: https://docs.microsoft.com/en-us/windows-hardware/drivers/pci/dsd-for-pcie-root-ports BUG=b:215424986 Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Change-Id: Id70e916532e3d3d70305fc61473da28c702fc397 Reviewed-on: https://review.coreboot.org/c/coreboot/+/62435 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: EricR Lai <ericr_lai@compal.corp-partner.google.com>
Diffstat (limited to 'src/drivers/pcie/generic')
-rw-r--r--src/drivers/pcie/generic/Kconfig7
-rw-r--r--src/drivers/pcie/generic/generic.c2
2 files changed, 4 insertions, 5 deletions
diff --git a/src/drivers/pcie/generic/Kconfig b/src/drivers/pcie/generic/Kconfig
index 2a68708f61..f41f37ddd7 100644
--- a/src/drivers/pcie/generic/Kconfig
+++ b/src/drivers/pcie/generic/Kconfig
@@ -5,7 +5,6 @@ config DRIVERS_PCIE_GENERIC
help
This driver allows attaching arbitrary ACPI properties to
arbitrary PCI root ports or devices. Currently it supports one
- property, "UntrustedDevice". This property indicates to the
- operating system that the PCIe device may be considered
- untrusted, and appropriate policies, e.g. IOMMU isolation,
- should take place.
+ property, "DmaProperty", which indicates to the operating system that
+ the PCIe device may be considered untrusted, and appropriate policies,
+ e.g. IOMMU isolation, should take place.
diff --git a/src/drivers/pcie/generic/generic.c b/src/drivers/pcie/generic/generic.c
index 2daebdae04..c14628f65b 100644
--- a/src/drivers/pcie/generic/generic.c
+++ b/src/drivers/pcie/generic/generic.c
@@ -34,7 +34,7 @@ static void pcie_generic_fill_ssdt(const struct device *dev)
acpigen_write_ADR_pci_device(dev);
dsd = acpi_dp_new_table("_DSD");
- acpi_dp_add_integer(dsd, "UntrustedDevice", 1);
+ acpi_dp_add_integer(dsd, "DmaProperty", 1);
acpi_dp_write(dsd);
acpigen_write_device_end();