summaryrefslogtreecommitdiff
path: root/drivers/edac
diff options
context:
space:
mode:
authorYazen Ghannam <yazen.ghannam@amd.com>2020-11-10 00:06:59 +0300
committerBorislav Petkov <bp@suse.de>2020-11-19 13:43:25 +0300
commitcb09a379724d299c603a7a79f444f52a9a75b8d2 (patch)
treed903f08aab4578393d19abcc8eb14b02e844f288 /drivers/edac
parent8de0c9917cc1297bc5543b61992d5bdee4ce621a (diff)
downloadlinux-cb09a379724d299c603a7a79f444f52a9a75b8d2.tar.xz
x86/topology: Set cpu_die_id only if DIE_TYPE found
CPUID Leaf 0x1F defines a DIE_TYPE level (nb: ECX[8:15] level type == 0x5), but CPUID Leaf 0xB does not. However, detect_extended_topology() will set struct cpuinfo_x86.cpu_die_id regardless of whether a valid Die ID was found. Only set cpu_die_id if a DIE_TYPE level is found. CPU topology code may use another value for cpu_die_id, e.g. the AMD NodeId on AMD-based systems. Code ordering should be maintained so that the CPUID Leaf 0x1F Die ID value will take precedence on systems that may use another value. Suggested-by: Borislav Petkov <bp@alien8.de> Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com> Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lkml.kernel.org/r/20201109210659.754018-5-Yazen.Ghannam@amd.com
Diffstat (limited to 'drivers/edac')
0 files changed, 0 insertions, 0 deletions