summaryrefslogtreecommitdiff
path: root/drivers/video/matrox/matroxfb_base.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2014-04-04 06:41:26 (GMT)
committerIngo Molnar <mingo@kernel.org>2014-04-16 06:56:09 (GMT)
commit5be44a6fb1edb57d7d2d77151870dcd79c8c0e58 (patch)
treecb60607a55de6813d05c10b1ba1b5fd303091502 /drivers/video/matrox/matroxfb_base.c
parente6bcd1a8974fab74e9fd679fb64462b2a8deff41 (diff)
downloadlinux-5be44a6fb1edb57d7d2d77151870dcd79c8c0e58.tar.xz
x86: Remove the PCI reboot method from the default chain
Steve reported a reboot hang and bisected it back to this commit: a4f1987e4c54 x86, reboot: Add EFI and CF9 reboot methods into the default list He heroically tested all reboot methods and found the following: reboot=t # triple fault ok reboot=k # keyboard ctrl FAIL reboot=b # BIOS ok reboot=a # ACPI FAIL reboot=e # EFI FAIL [system has no EFI] reboot=p # PCI 0xcf9 FAIL And I think it's pretty obvious that we should only try PCI 0xcf9 as a last resort - if at all. The other observation is that (on this box) we should never try the PCI reboot method, but close with either the 'triple fault' or the 'BIOS' (terminal!) reboot methods. Thirdly, CF9_COND is a total misnomer - it should be something like CF9_SAFE or CF9_CAREFUL, and 'CF9' should be 'CF9_FORCE' ... So this patch fixes the worst problems: - it orders the actual reboot logic to follow the reboot ordering pattern - it was in a pretty random order before for no good reason. - it fixes the CF9 misnomers and uses BOOT_CF9_FORCE and BOOT_CF9_SAFE flags to make the code more obvious. - it tries the BIOS reboot method before the PCI reboot method. (Since 'BIOS' is a terminal reboot method resulting in a hang if it does not work, this is essentially equivalent to removing the PCI reboot method from the default reboot chain.) - just for the miraculous possibility of terminal (resulting in hang) reboot methods of triple fault or BIOS returning without having done their job, there's an ordering between them as well. Reported-and-bisected-and-tested-by: Steven Rostedt <rostedt@goodmis.org> Cc: Li Aubrey <aubrey.li@linux.intel.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Matthew Garrett <mjg59@srcf.ucam.org> Link: http://lkml.kernel.org/r/20140404064120.GB11877@gmail.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/video/matrox/matroxfb_base.c')
0 files changed, 0 insertions, 0 deletions