summaryrefslogtreecommitdiffstats
path: root/arch/x86/ras
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2017-01-23 19:35:09 +0100
committerIngo Molnar <mingo@kernel.org>2017-01-24 09:14:54 +0100
commit669c00f09935fc7a22297eadee04536af141595b (patch)
tree9b2f73f39e9aa3e35162f32bdb356df975bb7c4b /arch/x86/ras
parentx86/ras/amd: Make sysfs names of banks more user-friendly (diff)
downloadlinux-669c00f09935fc7a22297eadee04536af141595b.tar.xz
linux-669c00f09935fc7a22297eadee04536af141595b.zip
x86/ras: Flip the TSC-adding logic
Add the TSC value to the MCE record only when the MCE being logged is precise, i.e., it is logged as an exception or an MCE-related interrupt. So it doesn't look particularly easy to do without touching/changing a bunch of places. That's why I'm trying tricks first. For example, the mce-apei.c case I'm addressing by setting ->tsc only for errors of panic severity. The idea there is, that, panic errors will have raised an #MC and not polled. And then instead of propagating a flag to mce_setup(), it seems easier/less code to set ->tsc depending on the call sites, i.e., are we polling or are we preparing an MCE record in an exception handler/thresholding interrupt. Signed-off-by: Borislav Petkov <bp@suse.de> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Tony Luck <tony.luck@intel.com> Cc: Yazen Ghannam <Yazen.Ghannam@amd.com> Cc: linux-edac <linux-edac@vger.kernel.org> Link: http://lkml.kernel.org/r/20170123183514.13356-5-bp@alien8.de Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/ras')
0 files changed, 0 insertions, 0 deletions