projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d1e9bf
)
EDAC, mce_amd_inj: Set MISCV on injection
author
Borislav Petkov
<bp@suse.de>
Wed, 10 Jun 2015 14:20:56 +0000
(16:20 +0200)
committer
Borislav Petkov
<bp@suse.de>
Wed, 24 Jun 2015 16:17:38 +0000
(18:17 +0200)
When during injection we populate MCi_MISC by writing into misc, we need
to set the MiscV bit in the corresponding MCi_STATUS register which
denotes that there's valid info in the MCi_MISC register.
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/mce_amd_inj.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/edac/mce_amd_inj.c
b/drivers/edac/mce_amd_inj.c
index b92986b03f93300de106d9207adde1a086e23fc2..4c73e4d03d465c14d206b5e66955cc22ddce2986 100644
(file)
--- a/
drivers/edac/mce_amd_inj.c
+++ b/
drivers/edac/mce_amd_inj.c
@@
-191,6
+191,9
@@
static void do_inject(void)
unsigned int cpu = i_mce.extcpu;
u8 b = i_mce.bank;
+ if (i_mce.misc)
+ i_mce.status |= MCI_STATUS_MISCV;
+
if (inj_type == SW_INJ) {
amd_decode_mce(NULL, 0, &i_mce);
return;