]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
Merge branch 'ras-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 2 May 2017 03:48:33 +0000 (20:48 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 2 May 2017 03:48:33 +0000 (20:48 -0700)
Pull RAS updates from Ingo Molnar:
 "The main changes in this cycle were:

   - add the 'Corrected Errors Collector' kernel feature which collect
     and monitor correctable errors statistics and will preemptively
     (soft-)offline physical pages that have a suspiciously high error
     count.

   - handle MCE errors during kexec() more gracefully

   - factor out and deprecate the /dev/mcelog driver

   - ... plus misc fixes and cleanpus"

* 'ras-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  x86/mce: Check MCi_STATUS[MISCV] for usable addr on Intel only
  ACPI/APEI: Use setup_deferrable_timer()
  x86/mce: Update notifier priority check
  x86/mce: Enable PPIN for Knights Landing/Mill
  x86/mce: Do not register notifiers with invalid prio
  x86/mce: Factor out and deprecate the /dev/mcelog driver
  RAS: Add a Corrected Errors Collector
  x86/mce: Rename mce_log to mce_log_buffer
  x86/mce: Rename mce_log()'s argument
  x86/mce: Init some CPU features early
  x86/mce: Handle broadcasted MCE gracefully with kexec

1  2 
Documentation/admin-guide/kernel-parameters.txt
arch/x86/Kconfig
arch/x86/kernel/cpu/mcheck/mce-internal.h
arch/x86/kernel/cpu/mcheck/mce.c
drivers/acpi/apei/ghes.c

Simple merge
index af44ebeb593fb60f70bb497de3e8f09b4b988333,4a29f748176117ce4813edbd7f0b5004c2c0963b..5abd4bf73d6e6805d033c361e4671087bb7be076
@@@ -216,11 -157,12 +157,12 @@@ static atomic_t num_notifiers
  
  void mce_register_decode_chain(struct notifier_block *nb)
  {
-       atomic_inc(&num_notifiers);
+       if (WARN_ON(nb->priority > MCE_PRIO_MCELOG && nb->priority < MCE_PRIO_EDAC))
+               return;
  
-       WARN_ON(nb->priority > MCE_PRIO_LOWEST && nb->priority < MCE_PRIO_EDAC);
+       atomic_inc(&num_notifiers);
  
 -      atomic_notifier_chain_register(&x86_mce_decoder_chain, nb);
 +      blocking_notifier_chain_register(&x86_mce_decoder_chain, nb);
  }
  EXPORT_SYMBOL_GPL(mce_register_decode_chain);
  
Simple merge