From: Yazen Ghannam <yazen.ghan...@amd.com> AMD-based systems currently use a "NodeId" when referencing a software-visible hardware structure. This may be referred to as a "Die" in x86 documentation, "Node" in some AMD documentation, and "Package" in Linux documentation.
Recently a cpu_die_id value was added to struct cpuinfo_x86. This value can be used on AMD-based systems rather than using an AMD-specific value throughout the kernel. This set is based on patches 1-3 from the following set. https://lkml.kernel.org/r/20200903200144.310991-1-yazen.ghan...@amd.com Thanks, Yazen Yazen Ghannam (4): x86/CPU/AMD: Save AMD NodeId as cpu_die_id x86/CPU/AMD: Remove amd_get_nb_id() EDAC/mce_amd: Use struct cpuinfo_x86.cpu_die_id for AMD NodeId x86/topology: Set cpu_die_id only if DIE_TYPE found Documentation/x86/topology.rst | 9 +++++++++ arch/x86/events/amd/core.c | 2 +- arch/x86/include/asm/cacheinfo.h | 4 ++-- arch/x86/include/asm/processor.h | 2 -- arch/x86/kernel/amd_nb.c | 4 ++-- arch/x86/kernel/cpu/amd.c | 17 +++++------------ arch/x86/kernel/cpu/cacheinfo.c | 8 ++++---- arch/x86/kernel/cpu/hygon.c | 11 +++++------ arch/x86/kernel/cpu/mce/amd.c | 4 ++-- arch/x86/kernel/cpu/mce/inject.c | 4 ++-- arch/x86/kernel/cpu/topology.c | 10 ++++++++-- drivers/edac/amd64_edac.c | 4 ++-- drivers/edac/mce_amd.c | 4 ++-- 13 files changed, 44 insertions(+), 39 deletions(-) -- 2.25.1