From: K Prateek Nayak <kprateek.nayak@amd.com>
To: Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>, <x86@kernel.org>,
<linux-kernel@vger.kernel.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>,
"Ahmed S. Darwish" <darwi@linutronix.de>,
K Prateek Nayak <kprateek.nayak@amd.com>
Subject: [PATCH 0/2] x86/cpu/cacheinfo: Simplify llc_id calculation on AMD platforms
Date: Thu, 21 Aug 2025 05:19:08 +0000 [thread overview]
Message-ID: <20250821051910.7351-1-kprateek.nayak@amd.com> (raw)
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
next reply other threads:[~2025-08-21 5:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-21 5:19 K Prateek Nayak [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250821051910.7351-1-kprateek.nayak@amd.com \
--to=kprateek.nayak@amd.com \
--cc=bp@alien8.de \
--cc=darwi@linutronix.de \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®