[PATCH v3 0/2] drm/nouveau/dispnv50: read back inherited firmware head mode timings

From: Munique Feitoza

Date: Sun Dec 06 2026 - 11:02:56 EST


Changes in v3:
- Widen hz to 64 bits and mask/apply ADJ1000DIV1001 in gf119/gv100.
- Drop spurious WARN_ON(1) on valid non-18/24/30-bit PIXEL_DEPTH encodings.
- Install the reconstructed mode via drm_atomic_set_mode_for_crtc() so mode_blob is created.
- Fix u16 wraparound/bounds checks and skip re-reading already-active cloned heads.

Munique Feitoza (2):
drm/nouveau/nvif: add NVIF_HEAD_V0_STATE method for head timing
readback
drm/nouveau/dispnv50: read back hardware mode timings on probe

drivers/gpu/drm/nouveau/dispnv50/disp.c | 66 ++++++++++++++++++-
drivers/gpu/drm/nouveau/include/nvif/head.h | 13 ++++
drivers/gpu/drm/nouveau/include/nvif/if0013.h | 17 +++++
drivers/gpu/drm/nouveau/nvif/head.c | 24 +++++++
.../gpu/drm/nouveau/nvkm/engine/disp/gb202.c | 1 -
.../gpu/drm/nouveau/nvkm/engine/disp/gf119.c | 6 +-
.../gpu/drm/nouveau/nvkm/engine/disp/gv100.c | 6 +-
.../gpu/drm/nouveau/nvkm/engine/disp/head.h | 2 +-
.../gpu/drm/nouveau/nvkm/engine/disp/uhead.c | 25 +++++++
9 files changed, 151 insertions(+), 9 deletions(-)

--
2.56.1