From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from canpmsgout04.his.huawei.com (canpmsgout04.his.huawei.com [113.46.200.219]) (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 220623AB29A; Wed, 1 Apr 2026 08:16:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=113.46.200.219 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775031418; cv=none; b=myEKSgLdi3nTLPrsYjs4fi886Fa7jnfhMpkLfn8Y7fEYQ6SPtV+UBZo0iUxAW1ypdGTtRqY9Wt1nR5F++pkSdMIS9HhmlP7Y+eyg+FuWSQV7YPPxLLzPpYUonaXeE3TxmOM8gI+36+1vy59ynCzp33m1Lx/pWrtMdfGlwbb13oc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775031418; c=relaxed/simple; bh=mWFuylDN3gumG6Mci9fYRAjdIJ9JzoCKwenkUyx/LSU=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=lXG7giernFKSP9yspd+m7DjT7TUzSlQH/l2mOpCY6gcwsdcxoYLG/aS6rAILYWILNsuQgL4HF3xxHGEN90nGaBNpK4MJzG/QBfKdjKQofa3BAgl2MUW4qTFi46ZPC+K8dDSsGTXCRVU3tHDpmjssjUmcLxex0dsL7DRqUiWtDC8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b=s0jHWYux; arc=none smtp.client-ip=113.46.200.219 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b="s0jHWYux" dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=c9AlrYXsxBFF3IzNBDnKrFfgKSQZlOG3wlCt2foyY+Y=; b=s0jHWYuxfoxkRN+t4KseYGhpk5P2m2+oPxvld1K2wRhg/xq/KJ6rPLjiy3A+eHJcZDd4LECJR hk2c9oJcG9N70ZRCYC/HPCz/7V6gQufIs9IC6ExJohMMFTan9KIJsB7lPAuY/r27HFSh7GQcO9C uY27gGt24m7NlqDK+Rfdv9c= Received: from mail.maildlp.com (unknown [172.19.163.0]) by canpmsgout04.his.huawei.com (SkyGuard) with ESMTPS id 4flyNC08FCz1prLN; Wed, 1 Apr 2026 16:10:35 +0800 (CST) Received: from kwepemk500009.china.huawei.com (unknown [7.202.194.94]) by mail.maildlp.com (Postfix) with ESMTPS id 9190740537; Wed, 1 Apr 2026 16:16:47 +0800 (CST) Received: from localhost.localdomain (10.50.163.32) by kwepemk500009.china.huawei.com (7.202.194.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Wed, 1 Apr 2026 16:16:45 +0800 From: Chengwen Feng To: Bjorn Helgaas , Catalin Marinas , Will Deacon , "Rafael J . Wysocki" CC: Jonathan Corbet , WANG Xuerui , Thomas Gleixner , Dave Hansen , "H . Peter Anvin" , Juergen Gross , Boris Ostrovsky , Len Brown , Sunil V L , Mark Rutland , Jonathan Cameron , Kees Cook , Yanteng Si , Sean Christopherson , Kai Huang , Tom Lendacky , Thomas Huth , Thorsten Blum , Kevin Loughlin , Zheyun Shen , Peter Zijlstra , Pawan Gupta , Xin Li , "Ahmed S . Darwish" , Sohil Mehta , Ilkka Koskinen , Robin Murphy , James Clark , Besar Wicaksono , Ma Ke , Wei Huang , Andy Gospodarek , Somnath Kotur , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCH RESEND v10 0/8] ACPI: Unify CPU UID interface and fix ARM64 TPH steer-tag issue Date: Wed, 1 Apr 2026 16:16:32 +0800 Message-ID: <20260401081640.26875-1-fengchengwen@huawei.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-ClientProxiedBy: kwepems200001.china.huawei.com (7.221.188.67) To kwepemk500009.china.huawei.com (7.202.194.94) This patchset unifies ACPI Processor UID retrieval across arm64/loongarch/riscv/x86 via acpi_get_cpu_uid() (with input validation) and fixes ARM64 CPU steer-tag retrieval failure in PCI/TPH: 1-4: Add acpi_get_cpu_uid() for arm64/loongarch/riscv/x86 (update respective users) 5: Centralize acpi_get_cpu_uid() declaration in include/linux/acpi.h 6: Clean up perf/arm_cspmu 7: Clean up ACPI/PPTT and remove unused get_acpi_id_for_cpu() 8: Pass ACPI Processor UID to Cache Locality _DSM The interface refactor ensures consistent CPU UID retrieval across architectures (no functional changes for valid inputs) and provides the unified interface required for the ARM64 TPH fix --- Changes in v10-resend: - Add Catalin's ack-by for arm64 commit - Add CC to x86@kernel.org Changes in v10: - Refine commit header&log according to Punit's and Bjorn's review - Split perf/arm_cspmu as a separate commit which address Punit's review Changes in v9: - Address Bjorn's review: split commits to each platform so that make them easy to review Changes in v8: - Moving arm64's get_cpu_for_acpi_id() to kernel/acpi.c which address Jeremy's review Chengwen Feng (8): arm64: acpi: Add acpi_get_cpu_uid() for unified ACPI CPU UID retrieval LoongArch: Add acpi_get_cpu_uid() for unified ACPI CPU UID retrieval RISC-V: ACPI: Add acpi_get_cpu_uid() for unified ACPI CPU UID retrieval x86/acpi: Add acpi_get_cpu_uid() for unified ACPI CPU UID retrieval ACPI: Centralize acpi_get_cpu_uid() declaration in include/linux/acpi.h perf: arm_cspmu: Switch to acpi_get_cpu_uid() from get_acpi_id_for_cpu() ACPI: PPTT: Use acpi_get_cpu_uid() and remove get_acpi_id_for_cpu() PCI/TPH: Pass ACPI Processor UID to Cache Locality _DSM Documentation/PCI/tph.rst | 4 +-- arch/arm64/include/asm/acpi.h | 17 +--------- arch/arm64/kernel/acpi.c | 30 ++++++++++++++++++ arch/loongarch/include/asm/acpi.h | 5 --- arch/loongarch/kernel/acpi.c | 9 ++++++ arch/riscv/include/asm/acpi.h | 4 --- arch/riscv/kernel/acpi.c | 16 ++++++++++ arch/riscv/kernel/acpi_numa.c | 9 ++++-- arch/x86/include/asm/cpu.h | 1 - arch/x86/include/asm/smp.h | 1 - arch/x86/kernel/acpi/boot.c | 20 ++++++++++++ arch/x86/xen/enlighten_hvm.c | 5 +-- drivers/acpi/pptt.c | 50 ++++++++++++++++++++++-------- drivers/acpi/riscv/rhct.c | 7 ++++- drivers/pci/tph.c | 16 +++++++--- drivers/perf/arm_cspmu/arm_cspmu.c | 6 ++-- include/linux/acpi.h | 11 +++++++ include/linux/pci-tph.h | 4 +-- 18 files changed, 158 insertions(+), 57 deletions(-) -- 2.17.1