]> asedeno.scripts.mit.edu Git - linux.git/commit
ACPI/IORT: Add SMMUv3 specific special index mapping handling
authorHanjun Guo <hanjun.guo@linaro.org>
Fri, 13 Oct 2017 07:09:49 +0000 (15:09 +0800)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 16 Oct 2017 13:30:05 +0000 (14:30 +0100)
commit86456a3f19c505049341eeb51cf9bb874d3b4752
treed8a7ab1653fbba1dd617d93f3ae197a2d5773908
parent8c8df8dcd69ea65cedb4d0b19c34a38c9fb68466
ACPI/IORT: Add SMMUv3 specific special index mapping handling

IORT revision C introduced a mapping entry binding to describe ITS
device ID mapping for SMMUv3 MSI interrupts.

Enable the single mapping flag (ie that is used by SMMUv3 component for
its special index mappings) for the SMMUv3 node in the IORT mapping API
and add IORT code to handle special index mapping entry for the SMMUv3
IORT nodes to enable their MSI interrupts. In case the ACPICA for
SMMUv3 device ID mapping is not ready, use the ACPICA version as a guard
for function iort_get_id_mapping_index().

Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
[lorenzo.pieralisi@arm.com: patch split, typos fixing, rewrote the log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/acpi/arm64/iort.c