News: 0001488317

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Linux 6.12 To Optionally Display A QR Code During Kernel Panics

([Linux Kernel] 61 Minutes Ago DRM Panic Handler QR Codes)


Submitted today via DRM-Misc-Next to DRM-Next for staging ahead of the Linux 6.12 merge window in mid-September is optional support for displaying a QR code within the DRM Panic handler infrastructure when a Linux kernel panic occurs.

As written about back in early July, there's been work for [1]showing a QR code error when Linux DRM Panic "Screen of Death" errors occur . This can be much more convenient and user-friendly when a panic occurs. Right now kernel panic messages tend to get chopped off the screen's display when being output and a QR code is able to capture a lot of information that may otherwise be hard to capture from the simple text-based output.

This isn't the first time that QR codes for kernel errors have been thought of as it was [2]discussed years ago and other operating systems have done so as well.

With today's [3]drm-misc-next pull request that QR code support for DRM panic has been queued for introduction in Linux 6.12 when using the DRM Panic handler on supported drivers.

This QR code support is written in the Rust programming language and thus the Rust kernel build must be enabled for the support. The support is guarded by the DRM_PANIC_SCREEN_QR_CODE Kconfig build switch. There is also support for specifying a QR code base URL and QR version for the amount of debugging data that can be archived.



[1] https://www.phoronix.com/news/Linux-DRM-Panic-QR-Codes

[2] https://www.phoronix.com/news/MTY1NjI

[3] https://lore.kernel.org/dri-devel/20240829144654.GA145538@linux.fritz.box/T/#u



bug77

schmidtbag

dylanmtaylor

Review Questions

(1) If Nerd on the planet Nutley starts out in his spaceship at 20 KPH,
and his speed doubles every 3.2 seconds, how long will it be before
he exceeds the speed of light? How long will it be before the
Galactic Patrol picks up the pieces of his spaceship?

(2) If Roger Rowdy wrecks his car every week, and each week he breaks
twice as many bones as before, how long will it be before he breaks
every bone in his body? How long will it be before they cut off
his insurance? Where does he get a new car every week?

(3) If Johnson drinks one beer the first hour (slow start), four beers
the next hour, nine beers the next, etc., and stacks the cans in a
pyramid, how soon will Johnson's pyramid be larger than King
Tut's? When will it fall on him? Will he notice?