From: Paul Menzel Subject: Re: [PATCH] DRM/i915: On G45 enable cursor plane briefly after enabling the display plane. Date: Wed, 06 Mar 2013 11:08:47 +0100 Message-ID: <1362564527.25732.1.camel@mattotaupa> References: <1362407078-13619-1-git-send-email-eich@suse.com> <20130304161727.GY9021@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2062452826==" Return-path: Received: from mail.gw90.de (mail.gw90.de [188.40.100.199]) by gabe.freedesktop.org (Postfix) with ESMTP id E174DE5CBC for ; Wed, 6 Mar 2013 02:09:00 -0800 (PST) In-Reply-To: <20130304161727.GY9021@phenom.ffwll.local> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Daniel Vetter Cc: Egbert Eich , intel-gfx@lists.freedesktop.org, Chris Wilson , Rodrigo Vivi List-Id: intel-gfx@lists.freedesktop.org --===============2062452826== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-orFVKXG8z2TDQ6wzZCK0" --=-orFVKXG8z2TDQ6wzZCK0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Am Montag, den 04.03.2013, 17:17 +0100 schrieb Daniel Vetter: > On Mon, Mar 04, 2013 at 09:24:38AM -0500, Egbert Eich wrote: > > On G45 some low res modes (800x600 and 1024x768) produce a blank > > screen when the display plane is enabled with with cursor plane > > off. > > Experiments showed that this issue occurred when the following > > conditions were met: > > a. a previous mode had the cursor plane enabled (Xserver). > > b. this mode or the previous one was using self refresh. (Thus > > the problem was only seen with low res modes). > > The screens lit up as soon as the cursor plane got enabled. > > Therefore the blank screen occurred only in console mode, not > > when running an Xserver. > > It also seemed to be necessary to disable self refresh while briefly > > enabling the cursor plane. > >=20 > > Signed-off-by: Egbert Eich > > Bugzilla: https://bugs.freedesktop.org/attachment.cgi?bugid=3D61457 > > Acked-by: Chris Wilson >=20 > This w/a is impressive ;-) Applied to -fixes, thanks for the patch. > -Daniel >=20 > > --- > > drivers/gpu/drm/i915/intel_display.c | 28 ++++++++++++++++++++++++++= +- > > 1 files changed, 27 insertions(+), 1 deletions(-) > >=20 > > diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i91= 5/intel_display.c > > index 6eb3882..689cc3a 100644 > > --- a/drivers/gpu/drm/i915/intel_display.c > > +++ b/drivers/gpu/drm/i915/intel_display.c [=E2=80=A6] > > @@ -6337,7 +6363,7 @@ static int intel_crtc_cursor_set(struct drm_crtc = *crtc, > > i915_gem_detach_phys_object(dev, intel_crtc->cursor_bo); > > } else > > i915_gem_object_unpin(intel_crtc->cursor_bo); > > - drm_gem_object_unreference(&intel_crtc->cursor_bo->base); > > + drm_gem_object_unreference(&intel_crtc->cursor_bo->base); As there are no {} around the else branch, this indentation is incorrect, right? > > } > > =20 > > mutex_unlock(&dev->struct_mutex); Thanks, Paul --=-orFVKXG8z2TDQ6wzZCK0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEABECAAYFAlE3Fa8ACgkQPX1aK2wOHVijiQCaAjf3qtKfcgbxX5kOOVYxZKSZ 1ikAoIWQQJT/MGriHIB9OI+IxQdORByC =6vm7 -----END PGP SIGNATURE----- --=-orFVKXG8z2TDQ6wzZCK0-- --===============2062452826== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx --===============2062452826==--