]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/i915: Add intel_bo_panic_setup() and intel_bo_panic_finish()
authorJocelyn Falempe <jfalempe@redhat.com>
Tue, 24 Jun 2025 09:01:16 +0000 (11:01 +0200)
committerMaarten Lankhorst <dev@lankhorst.se>
Fri, 27 Jun 2025 09:48:22 +0000 (11:48 +0200)
commit75fb60e5ad5f154ca88e8d05e764cceb787fbffb
tree9e0c8a897cacb4ed68842f112ddf40bbec1f9a00
parentda091afacb29b120929d181d7aea7275848ead81
drm/i915: Add intel_bo_panic_setup() and intel_bo_panic_finish()

Implement both functions for i915 and xe, they prepare the work for
drm_panic support.
They both use kmap_try_from_panic(), and map one page at a time, to
write the panic screen on the framebuffer.

Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://lore.kernel.org/r/20250624091501.257661-8-jfalempe@redhat.com
Signed-off-by: Maarten Lankhorst <dev@lankhorst.se>
drivers/gpu/drm/i915/display/intel_bo.c
drivers/gpu/drm/i915/display/intel_bo.h
drivers/gpu/drm/i915/gem/i915_gem_object.h
drivers/gpu/drm/i915/gem/i915_gem_pages.c
drivers/gpu/drm/xe/display/intel_bo.c