[PATCH v2 0/3] drm/nouveau: Add drm_panic support for nv50+
Jocelyn Falempe
jfalempe at redhat.com
Fri Sep 6 10:02:59 UTC 2024
This series adds basic drm_panic support for nouveau.
Patches 1-2 Add missing bits in drm_panic (ABGR2101010, private data for set_pixel())
Patch 3 registers nouveau to drm_panic, and handle tiling.
I've tested on a GTX1650, while running Gnome/Wayland desktop.
It should work on other nv50+ cards, but I didn't test them.
To test it, you need to build your kernel with CONFIG_DRM_PANIC=y, and run:
echo c > /proc/sysrq-trigger
or you can enable CONFIG_DRM_PANIC_DEBUG and run:
echo 1 > /sys/kernel/debug/dri/0/drm_panic_plane_0
v2:
* Rebase and drop already merged patches.
* Rework the tiling algorithm, using "swizzle" to compute the offset
inside the block.
Jocelyn Falempe (3):
drm/panic: Add ABGR2101010 support
drm/panic: add a private pointer to struct drm_scanout_buffer
drm/nouveau: Add drm_panic support for nv50+
drivers/gpu/drm/drm_panic.c | 10 +++
drivers/gpu/drm/nouveau/dispnv50/wndw.c | 107 +++++++++++++++++++++++-
include/drm/drm_panic.h | 7 ++
3 files changed, 122 insertions(+), 2 deletions(-)
base-commit: e8653e63e834e4c7de60b81b8b24deb7bdd3bf56
--
2.46.0
More information about the dri-devel
mailing list