1. 08 Aug, 2019 1 commit
    • Valdis Klētnieks's avatar
      RAS: Fix prototype warnings · 0a54b809
      Valdis Klētnieks authored
      When building with C=2 and/or W=1, legitimate warnings are issued about
      missing prototypes:
      
          CHECK   drivers/ras/debugfs.c
        drivers/ras/debugfs.c:4:15: warning: symbol 'ras_debugfs_dir' was not declared. Should it be static?
        drivers/ras/debugfs.c:8:5: warning: symbol 'ras_userspace_consumers' was not declared. Should it be static?
        drivers/ras/debugfs.c:38:12: warning: symbol 'ras_add_daemon_trace' was not declared. Should it be static?
        drivers/ras/debugfs.c:54:13: warning: symbol 'ras_debugfs_init' was not declared. Should it be static?
          CC      drivers/ras/debugfs.o
        drivers/ras/debugfs.c:8:5: warning: no previous prototype for 'ras_userspace_consumers' [-Wmissing-prototypes]
            8 | int ras_userspace_consumers(void)
              |     ^~~~~~~~~~~~~~~~~~~~~~~
        drivers/ras/debugfs.c:38:12: warning: no previous prototype for 'ras_add_daemon_trace' [-Wmissing-prototypes]
           38 | int __init ras_add_daemon_trace(void)
              |            ^~~~~~~~~~~~~~~~~~~~
        drivers/ras/debugfs.c:54:13: warning: no previous prototype for 'ras_debugfs_init' [-Wmissing-prototypes]
           54 | void __init ras_debugfs_init(void)
              |             ^~~~~~~~~~~~~~~~
      
      Provide the proper includes.
      
       [ bp: Take care of the same warnings for cec.c too. ]
      Signed-off-by: default avatarValdis Kletnieks <valdis.kletnieks@vt.edu>
      Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
      Cc: Tony Luck <tony.luck@intel.com>
      Cc: linux-edac@vger.kernel.org
      Cc: x86@kernel.org
      Link: http://lkml.kernel.org/r/7168.1565218769@turing-police
      0a54b809
  2. 05 Aug, 2019 2 commits
    • Tony Luck's avatar
      x86/mce: Don't check for the overflow bit on action optional machine checks · aaefca8e
      Tony Luck authored
      We currently do not process SRAO (Software Recoverable Action Optional)
      machine checks if they are logged with the overflow bit set to 1 in the
      machine check bank status register. This is overly conservative.
      
      There are two cases where we could end up with an SRAO+OVER log based
      on the SDM volume 3 overwrite rules in "Table 15-8. Overwrite Rules for
      UC, CE, and UCR Errors"
      
      1) First a corrected error is logged, then the SRAO error overwrites.
         The second error overwrites the first because uncorrected errors
         have a higher severity than corrected errors.
      2) The SRAO error was logged first, followed by a correcetd error.
         In this case the first error is retained in the bank.
      
      So in either case the machine check bank will contain the address
      of the SRAO error. So we can process that even if the overflow bit
      was set.
      Reported-by: default avatarYongkai Wu <yongkaiwu@tencent.com>
      Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
      Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: linux-edac <linux-edac@vger.kernel.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: x86-ml <x86@kernel.org>
      Link: https://lkml.kernel.org/r/20190718182920.32621-1-tony.luck@intel.com
      aaefca8e
    • Linus Torvalds's avatar
      Linux 5.3-rc3 · e21a712a
      Linus Torvalds authored
      e21a712a
  3. 04 Aug, 2019 10 commits
  4. 03 Aug, 2019 27 commits