OSDN Git Service

ACPI/IORT: Support address size limit for root complexes
authorRobin Murphy <robin.murphy@arm.com>
Mon, 23 Jul 2018 22:16:06 +0000 (23:16 +0100)
committerChristoph Hellwig <hch@lst.de>
Fri, 27 Jul 2018 17:01:04 +0000 (19:01 +0200)
commit5ac65e8c89410892189ef778f567da4adafb2e2f
treed06ecac60aea112fe96de7d324d4e41c58b6fdef
parenta5516219b10218a87abb3352c82248ce3088e94a
ACPI/IORT: Support address size limit for root complexes

IORT revision D allows PCI root complex nodes to specify a memory
address size limit equivalently to named components, to help describe
straightforward integrations which don't really warrant a full-blown
_DMA method. Now that our headers are up-to-date, plumb it in.

If both _DMA and an address size limit are present, we would always
expect the former to be a more specific subset of the latter (since it
makes little sense for a _DMA range to involve bits which IORT says
aren't wired up), thus we can save calculating an explicit intersection
of the two effective masks and simply use short-circuit logic instead.

Reviewed-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Will Deacon <will.deacon@arm.com>
Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/acpi/arm64/iort.c