Re: [PATCH] x86/amd: Derive L3 shared_cpu_map from cpu_llc_shared_mask

2017-07-25 Thread Borislav Petkov
On Thu, Jul 20, 2017 at 04:52:08AM -0500, Suravee Suthikulpanit wrote: > With X86_FEATURE_TOPOEXT, current logic default to using APIC ID > to calculate cpumask for shared_cpu_map. However, since APIC IDs > are not guarantee to be contiguous for cores across different L3, > such as in family17h sys

[PATCH] x86/amd: Derive L3 shared_cpu_map from cpu_llc_shared_mask

2017-07-20 Thread Suravee Suthikulpanit
With X86_FEATURE_TOPOEXT, current logic default to using APIC ID to calculate cpumask for shared_cpu_map. However, since APIC IDs are not guarantee to be contiguous for cores across different L3, such as in family17h system w/ downcore configuration. This results in incorrect L3 shared_cpu_map. In