projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5e886e
)
x86/RAS: Add TSC timestamp to the injected MCE
author
Borislav Petkov
<bp@suse.de>
Tue, 1 Nov 2016 12:04:41 +0000
(13:04 +0100)
committer
Thomas Gleixner
<tglx@linutronix.de>
Tue, 8 Nov 2016 16:10:13 +0000
(17:10 +0100)
The MCE injection code does not provide the time stamp information for the
injected MCE. Add it.
Signed-off-by: Borislav Petkov <bp@suse.de>
Link:
http://lkml.kernel.org/r/20161101120911.13163-3-bp@alien8.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/ras/mce_amd_inj.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/ras/mce_amd_inj.c
b/arch/x86/ras/mce_amd_inj.c
index 1ac76479c26630abc73ec2114113abe8167bd812..8730c2882fff0551fd01d6b9a93d5375522c3ad6 100644
(file)
--- a/
arch/x86/ras/mce_amd_inj.c
+++ b/
arch/x86/ras/mce_amd_inj.c
@@
-275,6
+275,8
@@
static void do_inject(void)
unsigned int cpu = i_mce.extcpu;
u8 b = i_mce.bank;
+ rdtscll(i_mce.tsc);
+
if (i_mce.misc)
i_mce.status |= MCI_STATUS_MISCV;