* [PATCH] ACPI/IORT: Use the correct ITS node in iort_pmsi_get_msi_info()
@ 2026-11-30 13:04 Zenghui Yu
2026-11-30 14:12 ` Lorenzo Pieralisi
0 siblings, 1 reply; 2+ messages in thread
From: Zenghui Yu @ 2026-11-30 13:04 UTC (permalink / raw)
To: linux-acpi, linux-arm-kernel
Cc: lpieralisi, guohanjun, sudeep.holla, catalin.marinas, will,
rafael, lenb, wangzhigang17, Zenghui Yu
The helper reads the ITS identifier from @node->node_data (the device's own
IORT node) instead of the ITS node. The value contains random bits, so
platform MSI setup can fail or program a wrong translate frame.
Use @parent->node_data, as iort_msi_xlate() already does.
Fixes: a97efa5ba594 ("irqchip/gic-v5: Add ACPI ITS probing")
Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
---
drivers/acpi/arm64/iort.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c
index 1020ac953e42..a0bc420ef48e 100644
--- a/drivers/acpi/arm64/iort.c
+++ b/drivers/acpi/arm64/iort.c
@@ -721,7 +721,7 @@ int iort_pmsi_get_msi_info(struct device *dev, u32 *dev_id, phys_addr_t *pa)
if (pa) {
int ret;
- its = (struct acpi_iort_its_group *)node->node_data;
+ its = (struct acpi_iort_its_group *)parent->node_data;
ret = iort_find_its_base(its->identifiers[0], pa);
if (ret)
return ret;
--
2.33.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] ACPI/IORT: Use the correct ITS node in iort_pmsi_get_msi_info()
2026-11-30 13:04 [PATCH] ACPI/IORT: Use the correct ITS node in iort_pmsi_get_msi_info() Zenghui Yu
@ 2026-11-30 14:12 ` Lorenzo Pieralisi
0 siblings, 0 replies; 2+ messages in thread
From: Lorenzo Pieralisi @ 2026-11-30 14:12 UTC (permalink / raw)
To: Zenghui Yu, catalin.marinas, will
Cc: linux-acpi, linux-arm-kernel, guohanjun, sudeep.holla, rafael,
lenb, wangzhigang17
On Mon, Nov 30, 2026 at 09:04:45PM +0800, Zenghui Yu wrote:
> The helper reads the ITS identifier from @node->node_data (the device's own
> IORT node) instead of the ITS node. The value contains random bits, so
> platform MSI setup can fail or program a wrong translate frame.
>
> Use @parent->node_data, as iort_msi_xlate() already does.
>
> Fixes: a97efa5ba594 ("irqchip/gic-v5: Add ACPI ITS probing")
> Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
> ---
> drivers/acpi/arm64/iort.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Acked-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
This must go to stable kernels, thank you for fixing it.
Can you resend it with a stable tag so that Catalin or Will can pick it
up please (or Catalin/Will can add the tag on applying it - please) ?
Thanks,
Lorenzo
> diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c
> index 1020ac953e42..a0bc420ef48e 100644
> --- a/drivers/acpi/arm64/iort.c
> +++ b/drivers/acpi/arm64/iort.c
> @@ -721,7 +721,7 @@ int iort_pmsi_get_msi_info(struct device *dev, u32 *dev_id, phys_addr_t *pa)
> if (pa) {
> int ret;
>
> - its = (struct acpi_iort_its_group *)node->node_data;
> + its = (struct acpi_iort_its_group *)parent->node_data;
> ret = iort_find_its_base(its->identifiers[0], pa);
> if (ret)
> return ret;
> --
> 2.33.0
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-30 14:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 13:04 [PATCH] ACPI/IORT: Use the correct ITS node in iort_pmsi_get_msi_info() Zenghui Yu
2026-11-30 14:12 ` Lorenzo Pieralisi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox