Commit e5d54f19 authored by Lyude Paul's avatar Lyude Paul Committed by Ben Skeggs

drm/nouveau/drm/nouveau: Fix runtime PM leak in nv50_disp_atomic_commit()

A CRTC being enabled doesn't mean it's on! It doesn't even necessarily
mean it's being used. This fixes runtime PM leaks on the P50 I've got
next to me.
Signed-off-by: default avatarLyude Paul <lyude@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 37afe55b
...@@ -1878,7 +1878,7 @@ nv50_disp_atomic_commit(struct drm_device *dev, ...@@ -1878,7 +1878,7 @@ nv50_disp_atomic_commit(struct drm_device *dev,
nv50_disp_atomic_commit_tail(state); nv50_disp_atomic_commit_tail(state);
drm_for_each_crtc(crtc, dev) { drm_for_each_crtc(crtc, dev) {
if (crtc->state->enable) { if (crtc->state->active) {
if (!drm->have_disp_power_ref) { if (!drm->have_disp_power_ref) {
drm->have_disp_power_ref = true; drm->have_disp_power_ref = true;
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment