From: George Amanakis Subject: Re: BUG: kworker hangs the GPU on drm and i915 since 3.8.x under X11 Date: Fri, 5 Apr 2013 15:01:00 -0700 (PDT) Message-ID: <1365199260.94686.YahooMailNeo@web121006.mail.ne1.yahoo.com> References: <1365107276.36562.YahooMailNeo@web121003.mail.ne1.yahoo.com> <1365108179.96993.YahooMailNeo@web121006.mail.ne1.yahoo.com> <1365112392.62159.YahooMailNeo@web121004.mail.ne1.yahoo.com> Reply-To: George Amanakis Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0458279679==" Return-path: In-Reply-To: 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: "alexander.deucher@amd.com" , "airlied@redhat.com" , intel-gfx , dri-devel List-Id: dri-devel@lists.freedesktop.org --===============0458279679== Content-Type: multipart/alternative; boundary="285087016-1147955095-1365199260=:94686" --285087016-1147955095-1365199260=:94686 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable I mean that I can type, move the mouse pointer, open new windows but there = is a lag until these changes are displayed. Stuttering like.=0A=0AI ended u= p not reverting the aforementioned commit but modifying it. This also solve= s the issue. Here is the patch:=0A=0A=0Adiff -rupN a/drivers/gpu/drm/drm_cr= tc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c=0A--- a/drivers/gpu/drm/drm= _crtc_helper.c=A0=A0=A0 2013-02-19 00:58:34.000000000 +0100=0A+++ b/drivers= /gpu/drm/drm_crtc_helper.c=A0=A0=A0 2013-04-05 23:10:36.454936677 +0200=0A@= @ -1067,7 +1067,7 @@ void drm_helper_hpd_irq_event(struct drm=0A=A0=A0=A0= =A0 enum drm_connector_status old_status;=0A=A0=A0=A0=A0 bool changed =3D f= alse;=0A=A0=0A-=A0=A0=A0 if (!dev->mode_config.poll_enabled)=0A+=A0=A0=A0 i= f (!dev->mode_config.poll_enabled || !drm_kms_helper_poll)=0A=A0=A0=A0=A0 = =A0=A0=A0 return;=0A=A0=0A=A0=A0=A0=A0 mutex_lock(&dev->mode_config.mutex); --285087016-1147955095-1365199260=:94686 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
I mean that I can type, move the= mouse pointer, open new windows but there is a lag until these changes are= displayed. Stuttering like.

I ended up not reverting the aforementi= oned commit but modifying it. This also solves the issue. Here is the patch= :

diff -rupN a/drivers/g= pu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c
--- a/drive= rs/gpu/drm/drm_crtc_helper.c    2013-02-19 00:58:34.00000000= 0 +0100
+++ b/drivers/gpu/drm/drm_crtc_helper.c    2013-0= 4-05 23:10:36.454936677 +0200
@@ -1067,7 +1067,7 @@ void drm_helper_hpd_irq_event(struct drm
     enum drm_c= onnector_status old_status;
     bool changed =3D fa= lse;
 
-    if (!dev->mode_config.poll_enabled= )
+    if (!dev->mode_config.poll_enabled || !drm_kms_= helper_poll)
         return;
&nbs= p;
     mutex_lock(&dev->mode_config.mutex);<= /span>


--285087016-1147955095-1365199260=:94686-- --===============0458279679== 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 --===============0458279679==--