lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250821051910.7351-1-kprateek.nayak@amd.com>
Date: Thu, 21 Aug 2025 05:19:08 +0000
From: K Prateek Nayak <kprateek.nayak@....com>
To: Thomas Gleixner <tglx@...utronix.de>, Ingo Molnar <mingo@...hat.com>,
	Borislav Petkov <bp@...en8.de>, Dave Hansen <dave.hansen@...ux.intel.com>,
	<x86@...nel.org>, <linux-kernel@...r.kernel.org>
CC: "H. Peter Anvin" <hpa@...or.com>, "Ahmed S. Darwish"
	<darwi@...utronix.de>, K Prateek Nayak <kprateek.nayak@....com>
Subject: [PATCH 0/2] x86/cpu/cacheinfo: Simplify llc_id calculation on AMD platforms

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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ