You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
iommu/vt-d: Add support for detecting ACPI namespace device in RMRR
zhaoxin inclusion
category: feature
CVE: NA
-----------------
As below, ZX-200 xHCI mcu is a RMRR ANDD device in some case.
[060h 0096 2] Subtable Type : 0001 [Reserved Memory Region
[062h 0098 2] Length : 0020
[064h 0100 2] Reserved : 0000
[066h 0102 2] PCI Segment Number : 0000
[068h 0104 8] Base Address : 00000000B5DA5000
[070h 0112 8] End Address (limit) : 00000000B5DDDFFF
[078h 0120 1] Device Scope Type : 05 [Namespace Device]
[079h 0121 1] Entry Length : 08
[07Ah 0122 2] Reserved : 0000
[07Ch 0124 1] Enumeration ID : 02
[07Dh 0125 1] PCI Bus Number : 09
[07Eh 0126 2] PCI Path : 12,00
iommu driver cannot find this device and build identity map for the RMRR
region, DMAR faults would occur for xHCI controller.
Add func dmar_acpi_bus_add_dev to find the RMRR ANDD device.
Add func acpi_rmrr_andd_probe to build identity map for the RMRR region
into the domain of the correspanding xHCI controller.
Add func iova_reserve_domain_addr to keep away from RMRR region when using
dma iova.
Signed-off-by: leoliu-oc <leoliu-oc@zhaoxin.com>
0 commit comments