]> git.baikalelectronics.ru Git - kernel.git/commit
x86/msr: Move the F15h MSRs where they belong
authorBorislav Petkov <bp@suse.de>
Sun, 21 Jun 2020 10:41:53 +0000 (12:41 +0200)
committerBorislav Petkov <bp@suse.de>
Mon, 22 Jun 2020 15:15:53 +0000 (17:15 +0200)
commitc4bfd7d2735136ef77afee16a699e72270370c41
treec77c9f02ec58fe90d9d9d20cdddfb43666ab259e
parentbc9b973e3fa7e9b48e584d9ca773f096d41adde1
x86/msr: Move the F15h MSRs where they belong

2741e496e7bf ("x86/msr: Lift AMD family 0x15 power-specific MSRs")

moved the three F15h power MSRs to the architectural list but that was
wrong as they belong in the family 0x15 list. That also caused:

  In file included from trace/beauty/tracepoints/x86_msr.c:10:
  perf/trace/beauty/generated/x86_arch_MSRs_array.c:292:45: error: initialized field overwritten [-Werror=override-init]
    292 |  [0xc0010280 - x86_AMD_V_KVM_MSRs_offset] = "F15H_PTSC",
        |                                             ^~~~~~~~~~~
  perf/trace/beauty/generated/x86_arch_MSRs_array.c:292:45: note: (near initialization for 'x86_AMD_V_KVM_MSRs[640]')

due to MSR_F15H_PTSC ending up being defined twice. Move them where they
belong and drop the duplicate.

Also, drop the respective tools/ changes of the msr-index.h copy the
above commit added because perf tool developers prefer to go through
those changes themselves in order to figure out whether changes to the
kernel headers would need additional handling in perf.

Fixes: 2741e496e7bf ("x86/msr: Lift AMD family 0x15 power-specific MSRs")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Link: https://lkml.kernel.org/r/20200621163323.14e8533f@canb.auug.org.au
arch/x86/include/asm/msr-index.h
tools/arch/x86/include/asm/msr-index.h