From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CC714606A322 for ; Thu, 3 Dec 2026 13:01:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=asniu8bA; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.a=rsa-sha256 header.s=dkim header.b=QAhibos4 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:CC:To: Subject:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=fpfl5uQUnT5Ncsc+jXIV13yyslg6nTlrL3/DFHpzog8=; b=asniu8bArMEF9l k2OjUx/NgXwoA1TcJ3i/2GbWd/KOVcHEH8FbIcYQLZUe5pnzAeTBEnmumze+DNcOj2GDCAL7Ozm37 Sn8XIJV/vXS3njEBeVAVxARxl3JLUa7TGDhxW6d4ZBdL8Bkhc8BrGo2KJC68AGLCj8F+fDYLA8b1j uF5MbpR1KAZNrm3C9g6lVHus/V8PevJfMuYxHqKPanADv9HycpeS5UfPruQJdKQXA+D4jf9JynvHg GMgs7eyERv/wM1J/LyRHL4D72sNrEOjN3R3tZ2Yotutl7Q9TyoXVfv0332KkVJTuux9AReS0n767T 6GSLoNUgWdLbhZ2ax75w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ6RR-0000000EehQ-0x6U; Thu, 03 Dec 2026 13:01:41 +0000 Received: from canpmsgout12.his.huawei.com ([113.46.200.227]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ6RO-0000000Eeg1-2Hez for linux-arm-kernel@lists.infradead.org; Thu, 03 Dec 2026 13:01:39 +0000 dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=fpfl5uQUnT5Ncsc+jXIV13yyslg6nTlrL3/DFHpzog8=; b=QAhibos4jRyvQcoWDXYxvdqZ5iHAUQ/HqkgmehngitjLQYoW9IKOKSw/39j964lZaZkGDvY3y AQGK0gOygQ8wys4k3cHik1aS1vlNnVLs2jnHxWoihuzAw+drdBhO2K19Rdoin+MAPgYweAAw5qe gQeQw5dat0W3MbsulPqBSvs= Received: from mail.maildlp.com (unknown [172.19.162.92]) by canpmsgout12.his.huawei.com (SkyGuard) with ESMTPS id 4jgF9Y2nMXznTXQ; Thu, 3 Dec 2026 21:00:49 +0800 (CST) Received: from whupemk200014.china.huawei.com (unknown [7.152.185.79]) by mail.maildlp.com (Postfix) with ESMTPS id A626940565; Thu, 3 Dec 2026 21:01:33 +0800 (CST) Received: from [10.174.179.24] (10.174.179.24) by whupemk200014.china.huawei.com (7.152.185.79) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.45; Thu, 3 Dec 2026 21:01:32 +0800 Subject: Re: [PATCH v2] ACPI/IORT: Use the correct ITS node in iort_pmsi_get_msi_info() To: Zenghui Yu , , CC: , , , , , , References: <20261201021048.568-1-yuzenghui@huawei.com> From: Hanjun Guo Message-ID: <08117e44-9e29-2c66-e5ba-13eab67fc83b@huawei.com> Date: Thu, 3 Dec 2026 21:01:31 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 X-Archived-By: MIME-Version: 1.0 In-Reply-To: <20261201021048.568-1-yuzenghui@huawei.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-ClientProxiedBy: kwepems200001.china.huawei.com (7.221.188.67) To whupemk200014.china.huawei.com (7.152.185.79) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261203_050138_750073_8572625B X-CRM114-Status: GOOD ( 14.90 ) X-Spam-Score: -3.8 (---) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-19.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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 > Acked-by: Lorenzo Pieralisi > 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 Thanks Hanjun