Page MenuHomeFreeBSD

vt: call driver's postswitch when panicking on ttyv0
ClosedPublic

Authored by val_packett.cool on Apr 24 2021, 12:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 4, 2:22 AM
Unknown Object (File)
Mar 7 2024, 1:54 PM
Unknown Object (File)
Feb 10 2024, 9:47 PM
Unknown Object (File)
Jan 13 2024, 8:36 PM
Unknown Object (File)
Dec 23 2023, 1:03 AM
Unknown Object (File)
Dec 20 2023, 8:54 PM
Unknown Object (File)
Dec 14 2023, 8:34 PM
Unknown Object (File)
Dec 3 2023, 5:02 AM

Details

Summary

In vt_kms, the postswitch callback restores fbdev mode when panicking or entering the debugger. This ensures that even when a graphical application was running on the first tty, simple framebuffer mode would be restored and the panic would be visible instead of the frozen GUI. But vt wouldn't call the postswitch callback when we're already on the first tty, so running a GUI on it would prevent you from reading any panics.

Test Plan

sysctl debug.kdb.panic=1 when running a graphical session on the first tty.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

val_packett.cool created this revision.
This revision is now accepted and ready to land.Jul 23 2021, 6:08 PM
In D29961#721194, @greg_unrelenting.technology wrote:

ping. someone please commit?

Could you mail me git format-patch?

This revision now requires review to proceed.Sep 15 2021, 9:40 PM
In D29961#721194, @greg_unrelenting.technology wrote:

ping. someone please commit?

Could you mail me git format-patch?

Done (sent to the freebsd.org address). Also updated it here, though "Download Raw Diff" still extracts a small diff anyway :/ Seems like only arc can apply patches with the message and everything from phab.

In D29961#721453, @greg_unrelenting.technology wrote:
In D29961#721194, @greg_unrelenting.technology wrote:

ping. someone please commit?

Could you mail me git format-patch?

Done (sent to the freebsd.org address). Also updated it here, though "Download Raw Diff" still extracts a small diff anyway :/ Seems like only arc can apply patches with the message and everything from phab.

oh, sorry, I have missed this some time.

could you mail it to tsoome@me.com - I havent got the file from freebsd.org.. the plain mails are coming through, probably is blocking the attachments.

This revision was not accepted when it landed; it landed in state Needs Review.Sep 20 2021, 6:07 PM
This revision was automatically updated to reflect the committed changes.