diff options
| author | Jocelyn Falempe <jfalempe@redhat.com> | 2025-04-07 15:42:26 +0200 |
|---|---|---|
| committer | Jocelyn Falempe <jfalempe@redhat.com> | 2025-04-10 10:50:58 +0200 |
| commit | c9ff2808790f0fd4ca16f30f63abe70914a5a292 (patch) | |
| tree | 7606514928c0403c97537b7e16eaff0433c4f360 /drivers/gpu/drm/Kconfig.debug | |
| parent | 8702048bb8313a21ec9179e9ce7ad3c5cb2ef072 (diff) | |
drm/panic: Add support to scanout buffer as array of pages
Some drivers like virtio-gpu, don't map the scanout buffer in the
kernel. Calling vmap() in a panic handler is not safe, and writing an
atomic_vmap() API is more complex than expected [1].
So instead, pass the array of pages of the scanout buffer to the
panic handler, and map only one page at a time to draw the pixels.
This is obviously slow, but acceptable for a panic handler.
[1] https://lore.kernel.org/dri-devel/20250305152555.318159-1-ryasuoka@redhat.com/
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Simona Vetter <simona@ffwll.ch>
Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://lore.kernel.org/r/20250407140138.162383-3-jfalempe@redhat.com
Diffstat (limited to 'drivers/gpu/drm/Kconfig.debug')
0 files changed, 0 insertions, 0 deletions
