]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI/IORT: take _DMA methods into account for named components
authorArd Biesheuvel <ardb@kernel.org>
Mon, 20 Apr 2020 09:27:53 +0000 (11:27 +0200)
committerWill Deacon <will@kernel.org>
Tue, 28 Apr 2020 17:06:07 +0000 (18:06 +0100)
commit6ad7be91ca353b844f722ad9c43269c1aaa19945
tree1cc4eb88bdd383f116df4b0a2d232456186d4b23
parenta3c98f842c1888b4df27e091ed5a315b6f7c1aa9
ACPI/IORT: take _DMA methods into account for named components

Where IORT nodes for named components can describe simple DMA limits
expressed as the number of address bits a device can drive, _DMA methods
in AML can express more complex topologies, involving DMA translation in
particular.

Currently, we only take this _DMA method into account if it appears on a
ACPI device node describing a PCIe root complex, but it is perfectly
acceptable to use them for named components as well, so let's ensure
we take them into account in those cases too.

Note that such named components are expected to reside under a
pseudo-bus node such as the ACPI0004 container device, which should be
providing the _DMA method as well as a _CRS (as mandated by the ACPI
spec). This is not enforced by the code however.

Reported-by: Andrei Warkentin <awarkentin@vmware.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Link: https://lore.kernel.org/r/20200420092753.9819-1-ardb@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
drivers/acpi/arm64/iort.c