Instead of guarding against crtc_clock == 0 in
nv50_disp_atomic_commit_tail() (v1), v2 reads back the actual hardware
head timings and pixel clock via a new NVIF_HEAD_V0_STATE method during
probe so inherited firmware heads start with valid mode and vblank
state (tested on GF108).

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       | 45 +++++++++++++++++++
 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/uhead.c  | 25 +++++++++++
 5 files changed, 124 insertions(+)

-- 
2.56.1

Reply via email to