drm/nouveau: Remove bogus crtc check in pmops_runtime_idle
authorLyude Paul <lyude@redhat.com>
Thu, 12 Jul 2018 17:02:54 +0000 (13:02 -0400)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 16 Jul 2018 07:59:59 +0000 (17:59 +1000)
commit68fe23a626b67b56c912c496ea43ed537ea9708f
tree0793b7edc3e312d735cd1ca86989714f1ea531fe
parente5d54f1935722f83df7619f3978f774c2b802cd8
drm/nouveau: Remove bogus crtc check in pmops_runtime_idle

This both uses the legacy modesetting structures in a racy manner, and
additionally also doesn't even check the right variable (enabled != the
CRTC is actually turned on for atomic).

This fixes issues on my P50 regarding the dedicated GPU not entering
runtime suspend.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Cc: stable@vger.kernel.org
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_drm.c