On Wed, Jul 19, 2023 at 6:41 AM Ben Skeggs <skeggsb@xxxxxxxxx> wrote: > > From: Ben Skeggs <bskeggs@xxxxxxxxxx> > > Fixes OOPS on boards with ANX9805 DP encoders. > > Signed-off-by: Ben Skeggs <bskeggs@xxxxxxxxxx> > --- > drivers/gpu/drm/nouveau/dispnv50/disp.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c b/drivers/gpu/drm/nouveau/dispnv50/disp.c > index 42e1665ba11a..1ecd3d63b108 100644 > --- a/drivers/gpu/drm/nouveau/dispnv50/disp.c > +++ b/drivers/gpu/drm/nouveau/dispnv50/disp.c > @@ -1873,6 +1873,8 @@ nv50_pior_destroy(struct drm_encoder *encoder) > nvif_outp_dtor(&nv_encoder->outp); > > drm_encoder_cleanup(encoder); > + > + mutex_destroy(&nv_encoder->dp.hpd_irq_lock); > kfree(encoder); > } > > @@ -1917,6 +1919,8 @@ nv50_pior_create(struct drm_connector *connector, struct dcb_output *dcbe) > nv_encoder->i2c = ddc; > nv_encoder->aux = aux; > > + mutex_init(&nv_encoder->dp.hpd_irq_lock); > + > encoder = to_drm_encoder(nv_encoder); > encoder->possible_crtcs = dcbe->heads; > encoder->possible_clones = 0; > -- > 2.41.0 > Reviewed-by: Karol Herbst <kherbst@xxxxxxxxxx>