Received: from out30-113.freemail.mail.aliyun.com (out30-113.freemail.mail.aliyun.com [115.124.30.113]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7892E9460 for ; Sat, 13 Sep 2025 02:32:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.113 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757730753; cv=none; b=aS8c7HyWyt8zJCopuE9fWzKMnfzrABcqMcdRV3V3A2kE1qCivTSdGK2doTMouJcCsHSDhrP0qP8hdFAuiXUf2a3+RZHxBXn9RV5DGzmRiyME5nLai9EYE5YqXc/GPuo0HbuwfHD6FNAuar8HaPK36y36yR9Xj/psFNwGIblCRWM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757730753; c=relaxed/simple; bh=zm0VCcs9boavV2TCGL/wOXYwcxDhgoWmXtNFO35a+L0=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=S6n88dmpbNu2jUMSrEvjDS/viI1gXd4LgepP8ElDWnd8N/kIFN+Y4T7uS/v31BiChTt17TqmyG5n4lLuzwsMjhTpM/jyCox/zlIR/VLfuUzPYjh4npq/F4a3Dgi/w9YH8RgkfpWH+F5IeuA2vkqw0SMyU30PECgIfr8qx9zPeAs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=A9G1GEq6; arc=none smtp.client-ip=115.124.30.113 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="A9G1GEq6" DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1757730747; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=o3zfucXj3gdSgzCiY6p2mPd7NL3n/kEPQEJn/QTqr9Y=; b=A9G1GEq6zwdO7DjV5t42V19VIq+8KvA8CpuBSgPWsZ9YyLDnr/FZBtj1/Bt9sjcWBaHJhSUcRgkNaEMeE67sVSx3TlsDkKa4tzpV2q7g7AVijnOBJ2lbT1uU7lyfyzLhiUG957ls/B5G5j+l7RFUYh6vRQs0NUzxaBGp2KfaiLw= Received: from localhost.localdomain(mailfrom:xueshuai@linux.alibaba.com fp:SMTPD_---0WnsSKuO_1757730745 cluster:ay36) by smtp.aliyun-inc.com; Sat, 13 Sep 2025 10:32:26 +0800 From: Shuai Xue To: rafael@kernel.org, lenb@kernel.org, robert.moore@intel.com Cc: andrew@kernel.org, bfaccini@nvidia.com, eahariha@linux.microsoft.com, dan.j.williams@intel.com, thorsten.blum@linux.dev, gourry@gourry.net, xueshuai@linux.alibaba.com, nunodasneves@linux.microsoft.com, wangyuquan1236@phytium.com.cn, Jonathan.Cameron@huawei.com, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, acpica-devel@lists.linux.dev Subject: [PATCH v2] acpi,srat: Fix incorrect device handle check for Generic Initiator Date: Sat, 13 Sep 2025 10:32:24 +0800 Message-Id: <20250913023224.39281-1-xueshuai@linux.alibaba.com> X-Mailer: git-send-email 2.39.5 (Apple Git-154) Precedence: bulk X-Mailing-List: acpica-devel@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The Generic Initiator Affinity Structure in SRAT table uses device handle type field to indicate the device type. According to ACPI specification, the device handle type value of 1 represents PCI device, not 0. Fixes: 894c26a1c274 ("ACPI: Support Generic Initiator only domains") Reported-by: Wu Zongyong Signed-off-by: Shuai Xue --- changes since v1: drop changes in actbl3.h to make it easy to progress per Jonathan --- drivers/acpi/numa/srat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/numa/srat.c b/drivers/acpi/numa/srat.c index 53816dfab645..aa87ee1583a4 100644 --- a/drivers/acpi/numa/srat.c +++ b/drivers/acpi/numa/srat.c @@ -237,7 +237,7 @@ acpi_table_print_srat_entry(struct acpi_subtable_header *header) struct acpi_srat_generic_affinity *p = (struct acpi_srat_generic_affinity *)header; - if (p->device_handle_type == 0) { + if (p->device_handle_type == 1) { /* * For pci devices this may be the only place they * are assigned a proximity domain -- 2.39.3