]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/kms/gt215-: fix race with audio driver runpm
authorBen Skeggs <bskeggs@redhat.com>
Fri, 29 May 2020 07:57:29 +0000 (17:57 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 1 Jun 2020 07:28:42 +0000 (17:28 +1000)
commit53df06ac4f2ca559b619178484075a9d78bed314
tree9d690e598b786630c9da5781dd54c0f135f432ce
parent757a75a6d6142c90a71755c84f2742877d5b4842
drm/nouveau/kms/gt215-: fix race with audio driver runpm

The audio driver can call into nouveau right while we're in the middle
of re-fetching the EDID, and decide it no longer needs to be awake.

Stop depending on EDID in the audio component get_eld() callback, and
instead cache whether audio support is present from the prior modeset.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/dispnv50/disp.c
drivers/gpu/drm/nouveau/nouveau_encoder.h