Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pvpanic: Set high notifier priority

We've observed the missing pvpanic call at panic, and it turned out
that this was blocked by the broken notifier of drm_fb_helper, where
scheduling may be called during switching to the fb console.
It's fairly difficult to fix the drm_fb problem and a quick fix isn't
foreseen, a simpler solution for the missing pvpanic call would be
just to call this earlier.

In order to assure that, this patch sets a higher priority to pvpanic
notifier_block. Once when the issue of drm_fb is resolved, we can
remove this priority again.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>

authored by

Takashi Iwai and committed by
Matthew Garrett
7939831e 0ca849ea

+1
+1
drivers/platform/x86/pvpanic.c
··· 70 70 71 71 static struct notifier_block pvpanic_panic_nb = { 72 72 .notifier_call = pvpanic_panic_notify, 73 + .priority = 1, /* let this called before broken drm_fb_helper */ 73 74 }; 74 75 75 76