]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: platform-msi: retrieve devid from IORT
authorHanjun Guo <hanjun.guo@linaro.org>
Tue, 7 Mar 2017 12:40:05 +0000 (20:40 +0800)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 30 Mar 2017 09:12:40 +0000 (10:12 +0100)
commit6c3b940dcda8297fc7e5fdff408fe1cffb6873d1
treee6926157d85e0ecbd3c96fc13c603b598660f477
parentd6fa6dd33d8a26a92a7676a662a5cd862674d80f
ACPI: platform-msi: retrieve devid from IORT

For devices connecting to an ITS, the devices need to identify themself
through a devid; this devid is represented in the IORT table in named
component node [1] for platform devices, so this patch adds code that
scans the IORT table to retrieve the devices devid.

Add an IORT interface to collect ITS devices devid to carry out platform
devices MSI mappings with IORT tables.

[1]: https://static.docs.arm.com/den0049/b/DEN0049B_IO_Remapping_Table.pdf

Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
[lorenzo.pieralisi@arm.com: rewrote commit log/dropped ITS changes]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tested-by: Ming Lei <ming.lei@canonical.com>
Tested-by: Wei Xu <xuwei5@hisilicon.com>
Tested-by: Sinan Kaya <okaya@codeaurora.org>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Tomasz Nowicki <tn@semihalf.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
drivers/acpi/arm64/iort.c
include/linux/acpi_iort.h