public inbox for linux-riscv@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH v9 0/7] ACPI: Unify CPU UID interface and fix ARM64 TPH steer-tag issue
@ 2026-03-19  6:57 Chengwen Feng
  2026-03-19  6:57 ` [PATCH v9 1/7] arm64/acpi: Add acpi_get_cpu_uid() and switch arm_cspmu to use it Chengwen Feng
                   ` (7 more replies)
  0 siblings, 8 replies; 14+ messages in thread
From: Chengwen Feng @ 2026-03-19  6:57 UTC (permalink / raw)
  To: Bjorn Helgaas, Catalin Marinas, Will Deacon, Rafael J . Wysocki
  Cc: Mark Rutland, x86, liuyonglong, anshuman.khandual, linux-doc,
	Kees Cook, linux-pci, Dave Hansen, Eric.VanTassell, fengchengwen,
	Somnath Kotur, Kai Huang, Kevin Loughlin, punit.agrawal,
	H . Peter Anvin, Ilkka Koskinen, Shuah Khan, WANG Xuerui,
	linux-acpi, Alexandre Ghiti, Jonathan Corbet, masahiroy,
	Huacai Chen, linux-riscv, Thorsten Blum, Peter Zijlstra,
	Pawan Gupta, Yanteng Si, xen-devel, Zheyun Shen, Len Brown,
	Tom Lendacky, Thomas Huth, Albert Ou, ryan.roberts,
	Ahmed S . Darwish, Ma Ke, suzuki.poulose, James Clark, Wei Huang,
	Besar Wicaksono, Borislav Petkov, loongarch, Jonathan Cameron,
	Sohil Mehta, Boris Ostrovsky, Xin Li, Andy Gospodarek,
	Ingo Molnar, wanghuiqiang, Juergen Gross, wangyuquan1236,
	Sean Christopherson, guohanjun, linux-kernel, stable,
	linux-perf-users, wangzhou1, Palmer Dabbelt, Thomas Gleixner,
	heinrich.schuchardt, chenl311, Paul Walmsley, Robin Murphy,
	linux-arm-kernel

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 ACPI/PPTT and remove unused get_acpi_id_for_cpu()
7: Fix ARM64 platform CPU steer-tag retrieval failure

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 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

Changes in v7:
- Refine first commit which address Jonathan's reviews
- Fix x86 implement bug (not consider INVALID-ID) which address Peter's
  review
- Fix CI error of x86 implement by moving function to acpi/boot.c

Changes in v6:
- Rename existing get_acpi_id_for_cpu() to acpi_get_cpu_uid()
- Split x86's modify as one commit

Chengwen Feng (7):
  arm64/acpi: Add acpi_get_cpu_uid() and switch arm_cspmu to use it
  loongarch/acpi: Add acpi_get_cpu_uid() declaration and implementation
  riscv/acpi: Add acpi_get_cpu_uid() implementation and update users
  x86/acpi: Add acpi_get_cpu_uid() implementation and update Xen users
  ACPI: Centralize acpi_get_cpu_uid() declaration in
    include/linux/acpi.h
  ACPI: PPTT: Use acpi_get_cpu_uid() and remove get_acpi_id_for_cpu()
  PCI/TPH: Fix get cpu steer-tag fail on ARM64 platform

 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


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2026-03-20  3:26 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-19  6:57 [PATCH v9 0/7] ACPI: Unify CPU UID interface and fix ARM64 TPH steer-tag issue Chengwen Feng
2026-03-19  6:57 ` [PATCH v9 1/7] arm64/acpi: Add acpi_get_cpu_uid() and switch arm_cspmu to use it Chengwen Feng
2026-03-19 15:46   ` Punit Agrawal
2026-03-20  3:20     ` fengchengwen
2026-03-19  6:57 ` [PATCH v9 2/7] loongarch/acpi: Add acpi_get_cpu_uid() declaration and implementation Chengwen Feng
2026-03-19  6:57 ` [PATCH v9 3/7] riscv/acpi: Add acpi_get_cpu_uid() implementation and update users Chengwen Feng
2026-03-19  6:57 ` [PATCH v9 4/7] x86/acpi: Add acpi_get_cpu_uid() implementation and update Xen users Chengwen Feng
2026-03-19  7:05   ` Jürgen Groß
2026-03-19  6:57 ` [PATCH v9 5/7] ACPI: Centralize acpi_get_cpu_uid() declaration in include/linux/acpi.h Chengwen Feng
2026-03-19  6:57 ` [PATCH v9 6/7] ACPI: PPTT: Use acpi_get_cpu_uid() and remove get_acpi_id_for_cpu() Chengwen Feng
2026-03-19  6:57 ` [PATCH v9 7/7] PCI/TPH: Fix get cpu steer-tag fail on ARM64 platform Chengwen Feng
2026-03-19 18:32   ` Bjorn Helgaas
2026-03-20  3:26     ` fengchengwen
2026-03-19 10:58 ` [PATCH v9 0/7] ACPI: Unify CPU UID interface and fix ARM64 TPH steer-tag issue Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox