[PATCH v2] ACPI/IORT: Use the correct ITS node in iort_pmsi_get_msi_info()

Hanjun Guo guohanjun at huawei.com
Thu Dec 3 05:01:31 PST 2026


On 2026/12/1 10:10, 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 at huawei.com>
> Acked-by: Lorenzo Pieralisi <lpieralisi at kernel.org>
> Cc: stable at vger.kernel.org
> ---
> 
> * From v1 [1]:
>    - collect Lorenzo's Acked-by (thanks!)
>    - add Cc: stable at vger.kernel.org
> 
> [1] https://lore.kernel.org/20261130130445.1033-1-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;

Good catch.

Reviewed-by: Hanjun Guo <guohanjun at huawei.com>

Thanks
Hanjun



More information about the linux-arm-kernel mailing list