From: ville.syrjala@linux.intel.com Subject: [PATCH 3/3] drm/i915: Don't enable sprites on a disabled pipe Date: Thu, 12 Sep 2013 22:45:43 +0300 Message-ID: <1379015143-13822-4-git-send-email-ville.syrjala@linux.intel.com> References: <1379015143-13822-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: <1379015143-13822-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. Cc: stable@vger.kernel.org Signed-off-by: Ville Syrj=C3=A4l=C3=A4 --- drivers/gpu/drm/i915/intel_sprite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_sprite.c b/drivers/gpu/drm/i915= /intel_sprite.c index d9c7a66..4f11eb1 100644 --- a/drivers/gpu/drm/i915/intel_sprite.c +++ b/drivers/gpu/drm/i915/intel_sprite.c @@ -652,8 +652,8 @@ intel_update_plane(struct drm_plane *plane, struct = drm_crtc *crtc, .y2 =3D crtc_y + crtc_h, }; const struct drm_rect clip =3D { - .x2 =3D crtc->mode.hdisplay, - .y2 =3D crtc->mode.vdisplay, + .x2 =3D intel_crtc->active ? crtc->mode.hdisplay : 0, + .y2 =3D intel_crtc->active ? crtc->mode.vdisplay : 0, }; =20 intel_fb =3D to_intel_framebuffer(fb); --=20 1.8.1.5