summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>2017-07-31 10:51:59 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-24 08:35:59 +0100
commit26a7acf37b063fd8ffefef7e9203135f0612ce54 (patch)
tree281bf0b1e50bfe0d3f5e72c193e182d54d785c2d /tools/perf/scripts/python/stackcollapse.py
parentc8007f727bbaa562107dd3e60a473403c22faee2 (diff)
downloadkernel-26a7acf37b063fd8ffefef7e9203135f0612ce54.tar.gz
x86/cpu/amd: Derive L3 shared_cpu_map from cpu_llc_shared_mask
commit 2b83809a5e6d619a780876fcaf68cdc42b50d28c upstream. For systems with X86_FEATURE_TOPOEXT, current logic uses the APIC ID to calculate shared_cpu_map. However, APIC IDs are not guaranteed to be contiguous for cores across different L3s (e.g. family17h system w/ downcore configuration). This breaks the logic, and results in an incorrect L3 shared_cpu_map. Instead, always use the previously calculated cpu_llc_shared_mask of each CPU to derive the L3 shared_cpu_map. Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com> Signed-off-by: Borislav Petkov <bp@suse.de> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/20170731085159.9455-3-bp@alien8.de Signed-off-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions