x86/mce/AMD: Make sure banks were initialized before accessing them
Borislav Petkov
maintainerQuoted 3 lines · Yazen
Right, I think we may want to bring back the separate decoder ring/queue that we used to have. Do you think that would be okay, or is there another method that would be better?
The problem with early MCEs is that stuff is simply not ready to load any decoding modules yet.
So either we could do a userspace tool to do the decoding or we can simply reuse the mce_amd.c code and *echo* the error stanza from userspace and it'll dump the decoded info. This done on the same machine.
And *actually*, we already have all the code in mce-inject.c - so decoding would simply be an MCE injection with type SW_INJ. I'm looking at do_inject():
if (inj_type == SW_INJ) {
mce_inject_log(&i_mce);
return;
}Ha!
That's soo cool and for lazy people like me :-)