Skip to contentSkip to conversation

x86/mce/AMD: Make sure banks were initialized before accessing them

DISCUSSION Borislav Petkov 1 participant 1 message Nov 27, 2018 EDAC-core

lore
Share & tools
lore

Borislav Petkov

author maintainer
#0 lore raw
Quoted 2 lines · Rafał Miłecki

I happen to have the same notebook with the same BIOS and the same problem. So let me test it :) (see below).

Even better! I might ask you do to a couple more tests if you don't mind. But later, once we've figured out what exactly we should do.

Quoted 1 line

That's correct, with your patch I see those messages but kernel boots!

Good.

Quoted 2 lines

Is that a valid material for a patch? If so, you can add my:

Thanks.

So yeah, I think that's small enough to be stable material.

Now, even if that is the proper behavior of *first* initializing and setting up all the structures and only *then* setting up the IRQ handler which accesses them, we still get:

Quoted 1 line
[    1.059187] Unexpected threshold interrupt at vector f9

and it probably will be better to initialize those structures earlier so that we be able to actually process that thresholding interrupt properly.

And doing that is not trivial because of this nasty order for xen - see comment at end of arch/x86/kernel/cpu/mcheck/mce_amd.c - but that shouldn't stop us to improve stuff on baremetal. So it'll take a bit longer to do.

That's why it would be cool if you could test some fixes later on your machine. And pls delay upgrading your BIOS if, in the course of that fixing, someone tells you to do so because then that early thresholding will be fixed and we won't be able to test the final fix. :-)

You can always upgrade it after that, if it is ok.

Thanks a lot!