From: ville.syrjala@linux.intel.com Subject: [PATCH v2 2/2] drm/i915: Don't enable the cursor on a disable pipe Date: Tue, 17 Sep 2013 18:33:44 +0300 Message-ID: <1379432024-21194-3-git-send-email-ville.syrjala@linux.intel.com> References: <1379432024-21194-1-git-send-email-ville.syrjala@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <1379432024-21194-1-git-send-email-ville.syrjala@linux.intel.com> Sender: stable-owner@vger.kernel.org To: intel-gfx@lists.freedesktop.org Cc: stable@vger.kernel.org List-Id: intel-gfx@lists.freedesktop.org =46rom: Ville Syrj=C3=A4l=C3=A4 On HSW enabling a plane on a disabled pipe may hang the entire system. And there's no good reason for doing it ever, so just don't. v2: Move the crtc active checks to intel_crtc_cursor_{set,move} to avoid confusing people during modeset Cc: stable@vger.kernel.org Signed-off-by: Ville Syrj=C3=A4l=C3=A4 --- drivers/gpu/drm/i915/intel_display.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i91= 5/intel_display.c index b4f8f71..8f485e4 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -7066,7 +7066,8 @@ static int intel_crtc_cursor_set(struct drm_crtc = *crtc, intel_crtc->cursor_width =3D width; intel_crtc->cursor_height =3D height; =20 - intel_crtc_update_cursor(crtc, intel_crtc->cursor_bo !=3D NULL); + if (intel_crtc->active) + intel_crtc_update_cursor(crtc, intel_crtc->cursor_bo !=3D NULL); =20 return 0; fail_unpin: @@ -7085,7 +7086,8 @@ static int intel_crtc_cursor_move(struct drm_crtc= *crtc, int x, int y) intel_crtc->cursor_x =3D x; intel_crtc->cursor_y =3D y; =20 - intel_crtc_update_cursor(crtc, intel_crtc->cursor_bo !=3D NULL); + if (intel_crtc->active) + intel_crtc_update_cursor(crtc, intel_crtc->cursor_bo !=3D NULL); =20 return 0; } --=20 1.8.1.5