1. 17 3月, 2020 1 次提交
  2. 12 3月, 2020 1 次提交
  3. 06 3月, 2020 1 次提交
  4. 02 3月, 2020 1 次提交
  5. 28 2月, 2020 7 次提交
  6. 27 2月, 2020 1 次提交
  7. 23 2月, 2020 5 次提交
  8. 22 2月, 2020 8 次提交
  9. 21 2月, 2020 3 次提交
  10. 20 2月, 2020 2 次提交
    • K
      x86/cpu/amd: Enable the fixed Instructions Retired counter IRPERF · 21b5ee59
      Kim Phillips 提交于
      Commit
      
        aaf24884 ("perf/x86/msr: Add AMD IRPERF (Instructions Retired)
      		  performance counter")
      
      added support for access to the free-running counter via 'perf -e
      msr/irperf/', but when exercised, it always returns a 0 count:
      
      BEFORE:
      
        $ perf stat -e instructions,msr/irperf/ true
      
         Performance counter stats for 'true':
      
                   624,833      instructions
                         0      msr/irperf/
      
      Simply set its enable bit - HWCR bit 30 - to make it start counting.
      
      Enablement is restricted to all machines advertising IRPERF capability,
      except those susceptible to an erratum that makes the IRPERF return
      bad values.
      
      That erratum occurs in Family 17h models 00-1fh [1], but not in F17h
      models 20h and above [2].
      
      AFTER (on a family 17h model 31h machine):
      
        $ perf stat -e instructions,msr/irperf/ true
      
         Performance counter stats for 'true':
      
                   621,690      instructions
                   622,490      msr/irperf/
      
      [1] Revision Guide for AMD Family 17h Models 00h-0Fh Processors
      [2] Revision Guide for AMD Family 17h Models 30h-3Fh Processors
      
      The revision guides are available from the bugzilla Link below.
      
       [ bp: Massage commit message. ]
      
      Fixes: aaf24884 ("perf/x86/msr: Add AMD IRPERF (Instructions Retired) performance counter")
      Signed-off-by: NKim Phillips <kim.phillips@amd.com>
      Signed-off-by: NBorislav Petkov <bp@suse.de>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: stable@vger.kernel.org
      Link: https://bugzilla.kernel.org/show_bug.cgi?id=206537
      Link: http://lkml.kernel.org/r/20200214201805.13830-1-kim.phillips@amd.com
      21b5ee59
    • H
      x86/boot/compressed: Don't declare __force_order in kaslr_64.c · df6d4f9d
      H.J. Lu 提交于
      GCC 10 changed the default to -fno-common, which leads to
      
          LD      arch/x86/boot/compressed/vmlinux
        ld: arch/x86/boot/compressed/pgtable_64.o:(.bss+0x0): multiple definition of `__force_order'; \
          arch/x86/boot/compressed/kaslr_64.o:(.bss+0x0): first defined here
        make[2]: *** [arch/x86/boot/compressed/Makefile:119: arch/x86/boot/compressed/vmlinux] Error 1
      
      Since __force_order is already provided in pgtable_64.c, there is no
      need to declare __force_order in kaslr_64.c.
      Signed-off-by: NH.J. Lu <hjl.tools@gmail.com>
      Signed-off-by: NBorislav Petkov <bp@suse.de>
      Link: https://lkml.kernel.org/r/20200124181811.4780-1-hjl.tools@gmail.com
      df6d4f9d
  11. 17 2月, 2020 1 次提交
  12. 14 2月, 2020 2 次提交
  13. 13 2月, 2020 7 次提交