aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorFenghua Yu <fenghua.yu@intel.com>2011-11-04 13:31:23 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-12-03 12:59:16 -0800
commit85f07ccc5309c780dbcdc4000556644d1bda4231 (patch)
tree895a612309cbc7c994dbb6f8d9a3568132dc27b2 /drivers/input
parentf7118e1b0eec39161739ec702ea359427ade26b2 (diff)
downloadkernel_samsung_aries-85f07ccc5309c780dbcdc4000556644d1bda4231.zip
kernel_samsung_aries-85f07ccc5309c780dbcdc4000556644d1bda4231.tar.gz
kernel_samsung_aries-85f07ccc5309c780dbcdc4000556644d1bda4231.tar.bz2
x86, mce, therm_throt: Don't report power limit and package level thermal throttle events in mcelog
commit 29e9bf1841e4f9df13b4992a716fece7087dd237 upstream. Thermal throttle and power limit events are not defined as MCE errors in x86 architecture and should not generate MCE errors in mcelog. Current kernel generates fake software defined MCE errors for these events. This may confuse users because they may think the machine has real MCE errors while actually only thermal throttle or power limit events happen. To make it worse, buggy firmware on some platforms may falsely generate the events. Therefore, kernel reports MCE errors which users think as real hardware errors. Although the firmware bugs should be fixed, on the other hand, kernel should not report MCE errors either. So mcelog is not a good mechanism to report these events. To report the events, we count them in respective counters (core_power_limit_count, package_power_limit_count, core_throttle_count, and package_throttle_count) in /sys/devices/system/cpu/cpu#/thermal_throttle/. Users can check the counters for each event on each CPU. Please note that all CPU's on one package report duplicate counters. It's user application's responsibity to retrieve a package level counter for one package. This patch doesn't report package level power limit, core level power limit, and package level thermal throttle events in mcelog. When the events happen, only report them in respective counters in sysfs. Since core level thermal throttle has been legacy code in kernel for a while and users accepted it as MCE error in mcelog, core level thermal throttle is still reported in mcelog. In the mean time, the event is counted in a counter in sysfs as well. Signed-off-by: Fenghua Yu <fenghua.yu@intel.com> Acked-by: Borislav Petkov <bp@amd64.org> Acked-by: Tony Luck <tony.luck@intel.com> Link: http://lkml.kernel.org/r/20111215001945.GA21009@linux-os.sc.intel.com Signed-off-by: H. Peter Anvin <hpa@linux.intel.com> Cc: maximilian attems <max@stro.at> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/input')
0 files changed, 0 insertions, 0 deletions