drm/nouveau/disp: fix incorrect/broken hdmi methods
authorBen Skeggs <bskeggs@redhat.com>
Mon, 14 Nov 2022 05:38:01 +0000 (15:38 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 14 Nov 2022 06:17:22 +0000 (16:17 +1000)
commitc02f20d38fb90eba606277874581db124ace42c4
tree65a3d7daed4d476ed5d98ab8a8d55d127ca61a73
parenta143bc517bf31c4575191efbaac216a11ec016e0
drm/nouveau/disp: fix incorrect/broken hdmi methods

These are fixes from Lyude, and were meant to have been included in the
last round of drm-next patches.

- Fix some nasty memory issues that broke Lyude's display:
  - 0 initialize both nvif args and parsed HDMI infoframe buffers
  - Fixed missing memset(…, 0, …) for nvif args before sending VSI
    infoframe
  - Fixed incorrect data pointer and size in nvkm_uoutp_mthd_infoframe()
    (was previously pointing at the start of the nvif_outp_infoframe_args
    struct instead of at the start of the infoframe data
- Get rid of duplicated scdc assignments, since we only use it to write the
  scdc registers

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/nouveau/dispnv50/disp.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/uoutp.c