All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] x86/cpu/cacheinfo: Simplify llc_id calculation on AMD platforms
@ 2025-08-21  5:19 K Prateek Nayak
  2025-08-21  5:19 ` [PATCH 1/2] x86/cpu/cacheinfo: Convert get_cache_id() to use APIC ID and return Cache ID K Prateek Nayak
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: K Prateek Nayak @ 2025-08-21  5:19 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen, x86,
	linux-kernel
  Cc: H. Peter Anvin, Ahmed S. Darwish, K Prateek Nayak

Reuse the available cacheinfo helpers instead of open-coding masks and
shifts in cacheinfo_amd_init_llc_id().

This series has been tested on top of tip:x86/cpu at commit 6a42c31ef324
("x86/cpu: Rename and move CPU model entry for Diamond Rapids") with no
changes being observed in "/sys/kernel/debug/x86/topo/" on a 3rd
Generation EPYC platform.

---
K Prateek Nayak (2):
  x86/cpu/cacheinfo: Convert get_cache_id() to use APIC ID and return
    Cache ID
  x86/cpu/cacheinfo: Simplify cacheinfo_amd_init_llc_id() using
    _cpuid4_info

 arch/x86/kernel/cpu/cacheinfo.c | 47 ++++++++++++++-------------------
 1 file changed, 20 insertions(+), 27 deletions(-)


base-commit: 6a42c31ef324476fb304e137fe71870fcc538c88
-- 
2.34.1


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

end of thread, other threads:[~2025-08-22 14:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-21  5:19 [PATCH 0/2] x86/cpu/cacheinfo: Simplify llc_id calculation on AMD platforms K Prateek Nayak
2025-08-21  5:19 ` [PATCH 1/2] x86/cpu/cacheinfo: Convert get_cache_id() to use APIC ID and return Cache ID K Prateek Nayak
2025-08-22 14:48   ` [tip: x86/cpu] x86/cpu/cacheinfo: Simplify cacheinfo_amd_init_llc_id() using _cpuid4_info tip-bot2 for K Prateek Nayak
2025-08-21  5:19 ` [PATCH 2/2] " K Prateek Nayak
2025-08-21  9:29 ` [PATCH 0/2] x86/cpu/cacheinfo: Simplify llc_id calculation on AMD platforms Borislav Petkov
2025-08-21  9:53 ` Ahmed S. Darwish
2025-08-21 10:22   ` Borislav Petkov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.