Skip to content

Conversation

Smankusors
Copy link

this commit implements a panic screen for MDP5 and DPU panels
https://www.phoronix.com/news/Linux-DRM-Panic-BSoD-Picture

to test it out, you need to enable the following configs first

CONFIG_DRM_PANIC
CONFIG_DRM_PANIC_DEBUG

# for qr code
CONFIG_RUST
CONFIG_DRM_PANIC_SCREEN_QR_CODE

then, try run this on the running device (as root)

# test user screen
echo -n user > /sys/module/drm/parameters/panic_screen
echo 1 > /sys/kernel/debug/dri/1/drm_panic_plane_0

# test kmsg screen
echo -n kmsg > /sys/module/drm/parameters/panic_screen
echo 1 > /sys/kernel/debug/dri/1/drm_panic_plane_0

# test qr_code screen
echo -n qr_code > /sys/module/drm/parameters/panic_screen
echo 1 > /sys/kernel/debug/dri/1/drm_panic_plane_0

WIP for panic screen

Signed-off-by: Antony Kurniawan Soemardi <[email protected]>
@SzczurekYT
Copy link

fyi: there is an issue about this on the msm driver repo

@Smankusors
Copy link
Author

fyi: there is an issue about this on the msm driver repo

ah I see, and it has been assigned too, so perhaps they should do it then, I have no deep knowledge about this stuff...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants