Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Hanjun Guo <guohanjun@huawei.com>
To: Zenghui Yu <yuzenghui@huawei.com>, <linux-acpi@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>
Cc: <lpieralisi@kernel.org>, <sudeep.holla@kernel.org>,
	<catalin.marinas@arm.com>, <will@kernel.org>, <rafael@kernel.org>,
	<lenb@kernel.org>, <wangzhigang17@huawei.com>
Subject: Re: [PATCH v2] ACPI/IORT: Use the correct ITS node in iort_pmsi_get_msi_info()
Date: Thu, 3 Dec 2026 21:01:31 +0800	[thread overview]
Message-ID: <08117e44-9e29-2c66-e5ba-13eab67fc83b@huawei.com> (raw)
In-Reply-To: <20261201021048.568-1-yuzenghui@huawei.com>

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@huawei.com>
> Acked-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
> Cc: stable@vger.kernel.org
> ---
> 
> * From v1 [1]:
>    - collect Lorenzo's Acked-by (thanks!)
>    - add Cc: stable@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@huawei.com>

Thanks
Hanjun


      reply	other threads:[~2026-12-03 13:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  2:10 [PATCH v2] ACPI/IORT: Use the correct ITS node in iort_pmsi_get_msi_info() Zenghui Yu
2026-12-03 13:01 ` Hanjun Guo [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=08117e44-9e29-2c66-e5ba-13eab67fc83b@huawei.com \
    --to=guohanjun@huawei.com \
    --cc=catalin.marinas@arm.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=lpieralisi@kernel.org \
    --cc=rafael@kernel.org \
    --cc=sudeep.holla@kernel.org \
    --cc=wangzhigang17@huawei.com \
    --cc=will@kernel.org \
    --cc=yuzenghui@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox