[PATCH v4 2/3] drm/nouveau/disp: Move tiling functions to dispnv50/tile.h

2024-10-22 Thread Jocelyn Falempe
Refactor, and move the tiling geometry functions to dispnv50/tile.h, so they can be re-used by drm_panic. No functional impact. Signed-off-by: Jocelyn Falempe --- drivers/gpu/drm/nouveau/dispnv50/tile.h | 63 +++ drivers/gpu/drm/nouveau/nouveau_display.c | 59 -

[PATCH v4 3/3] drm/nouveau: Add drm_panic support for nv50+

2024-10-22 Thread Jocelyn Falempe
Add drm_panic support for nv50+ cards. It's enough to get the panic screen while running Gnome/Wayland with an nv50+ nvidia GPU. It doesn't support multi-plane or compressed format yet. Tiling is tested on GTX1650 (Turing), GeForce GT 1030 (Pascal) and Geforce 8800 GTS (Tesla). Signed-off-by: Joce

[PATCH v4 0/3] drm/nouveau: Add drm_panic support for nv50+

2024-10-22 Thread Jocelyn Falempe
This series adds basic drm_panic support for nouveau. I've tested on GTX1650 (Turing), GeForce GT 1030 (Pascal) and Geforce 8800 GTS (Tesla), running Gnome/Wayland desktop, and in VT. It should work on other nv50+ cards, but I didn't test them. To test it, you need to build your kernel with CONFI

[PATCH v4 1/3] drm/panic: Add ABGR2101010 support

2024-10-22 Thread Jocelyn Falempe
Add support for ABGR2101010, used by the nouveau driver. Signed-off-by: Jocelyn Falempe Reviewed-by: Javier Martinez Canillas --- drivers/gpu/drm/drm_panic.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/gpu/drm/drm_panic.c b/drivers/gpu/drm/drm_panic.c index 74412b7bf