summaryrefslogtreecommitdiffstats
path: root/.cocciconfig
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2022-05-16 17:48:38 +0200
committerPeter Zijlstra <peterz@infradead.org>2022-05-18 00:08:26 +0200
commit841b51e4a3590866d17fa2663c64688c25b891b1 (patch)
treec125d9ef90621ec49a6f51bec7561f9a4db98705 /.cocciconfig
parent3c27b0c6ea48bc61492a138c410e262735d660ab (diff)
downloadlinux-841b51e4a3590866d17fa2663c64688c25b891b1.tar.bz2
perf/x86/amd: Run AMD BRS code only on supported hw
This fires on a Fam16h machine here: unchecked MSR access error: WRMSR to 0xc000010f (tried to write 0x0000000000000018) \ at rIP: 0xffffffff81007db1 (amd_brs_reset+0x11/0x50) Call Trace: <TASK> amd_pmu_cpu_starting ? x86_pmu_dead_cpu x86_pmu_starting_cpu cpuhp_invoke_callback ? x86_pmu_starting_cpu ? x86_pmu_dead_cpu cpuhp_issue_call ? x86_pmu_starting_cpu __cpuhp_setup_state_cpuslocked ? x86_pmu_dead_cpu ? x86_pmu_starting_cpu __cpuhp_setup_state ? map_vsyscall init_hw_perf_events ? map_vsyscall do_one_initcall ? _raw_spin_unlock_irqrestore ? try_to_wake_up kernel_init_freeable ? rest_init kernel_init ret_from_fork because that CPU hotplug callback gets executed on any AMD CPU - not only on the BRS-enabled ones. Check the BRS feature bit properly. Signed-off-by: Borislav Petkov <bp@suse.de> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-By: Stephane Eranian <eranian@google.com> Link: https://lkml.kernel.org/r/20220516154838.7044-1-bp@alien8.de
Diffstat (limited to '.cocciconfig')
0 files changed, 0 insertions, 0 deletions