public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Avoid stalling on pending flips for legacy cursor updates
@ 2016-04-17 19:42 Chris Wilson
  2016-04-18  9:39 ` ✓ Fi.CI.BAT: success for " Patchwork
  2016-04-18 10:02 ` [PATCH] " Maarten Lankhorst
  0 siblings, 2 replies; 4+ messages in thread
From: Chris Wilson @ 2016-04-17 19:42 UTC (permalink / raw)
  To: intel-gfx
  Cc: Chris Wilson, Maarten Lankhorst, Ville Syrjälä,
	Daniel Vetter, Jani Nikula, stable

The legacy cursor ioctl expects to be asynchronous with respect to other
screen updates, in particular page flips. As X updates the cursor from a
signal context, if the cursor blocks then it will stall both the input
and output chains causing bad stuttering and horrible UX.

Reported-and-tested-by: Rafael Ristovski <rafael.ristovski@gmail.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94980
Fixes: 5008e874edd34 ("drm/i915: Make wait_for_flips interruptible.")
Suggested-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Jani Nikula <jani.nikula@intel.com>
Cc: stable@vger.kernel.org
---
 drivers/gpu/drm/i915/intel_display.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 4cca155376be..c5b9687091f4 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -13446,6 +13446,9 @@ static int intel_atomic_prepare_commit(struct drm_device *dev,
 	}
 
 	for_each_crtc_in_state(state, crtc, crtc_state, i) {
+		if (state->legacy_cursor_update)
+			continue;
+
 		ret = intel_crtc_wait_for_pending_flips(crtc);
 		if (ret)
 			return ret;
-- 
2.8.0.rc3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* ✓ Fi.CI.BAT: success for drm/i915: Avoid stalling on pending flips for legacy cursor updates
  2016-04-17 19:42 [PATCH] drm/i915: Avoid stalling on pending flips for legacy cursor updates Chris Wilson
@ 2016-04-18  9:39 ` Patchwork
  2016-04-18 10:02 ` [PATCH] " Maarten Lankhorst
  1 sibling, 0 replies; 4+ messages in thread
From: Patchwork @ 2016-04-18  9:39 UTC (permalink / raw)
  To: Chris Wilson; +Cc: intel-gfx

== Series Details ==

Series: drm/i915: Avoid stalling on pending flips for legacy cursor updates
URL   : https://patchwork.freedesktop.org/series/5840/
State : success

== Summary ==

Series 5840v1 drm/i915: Avoid stalling on pending flips for legacy cursor updates
http://patchwork.freedesktop.org/api/1.0/series/5840/revisions/1/mbox/

Test gem_busy:
        Subgroup basic-blt:
                skip       -> PASS       (bsw-nuc-2)
Test kms_force_connector_basic:
        Subgroup force-load-detect:
                skip       -> PASS       (ivb-t430s)

bdw-ultra        total:203  pass:180  dwarn:0   dfail:0   fail:0   skip:23 
bsw-nuc-2        total:202  pass:163  dwarn:0   dfail:0   fail:0   skip:39 
byt-nuc          total:202  pass:164  dwarn:0   dfail:0   fail:0   skip:38 
hsw-brixbox      total:203  pass:179  dwarn:0   dfail:0   fail:0   skip:24 
ilk-hp8440p      total:203  pass:135  dwarn:0   dfail:0   fail:0   skip:68 
ivb-t430s        total:203  pass:175  dwarn:0   dfail:0   fail:0   skip:28 
skl-i7k-2        total:203  pass:178  dwarn:0   dfail:0   fail:0   skip:25 
skl-nuci5        total:203  pass:192  dwarn:0   dfail:0   fail:0   skip:11 
snb-x220t        total:203  pass:165  dwarn:0   dfail:0   fail:1   skip:37 

Results at /archive/results/CI_IGT_test/Patchwork_1921/

d9131d62d18ba94fb3ca019f1156c22b5f4ce23c drm-intel-nightly: 2016y-04m-15d-13h-53m-44s UTC integration manifest
327ae99 drm/i915: Avoid stalling on pending flips for legacy cursor updates

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] drm/i915: Avoid stalling on pending flips for legacy cursor updates
  2016-04-17 19:42 [PATCH] drm/i915: Avoid stalling on pending flips for legacy cursor updates Chris Wilson
  2016-04-18  9:39 ` ✓ Fi.CI.BAT: success for " Patchwork
@ 2016-04-18 10:02 ` Maarten Lankhorst
  2016-04-18 10:27   ` Chris Wilson
  1 sibling, 1 reply; 4+ messages in thread
From: Maarten Lankhorst @ 2016-04-18 10:02 UTC (permalink / raw)
  To: Chris Wilson, intel-gfx
  Cc: Ville Syrjälä, Daniel Vetter, Jani Nikula, stable

Op 17-04-16 om 21:42 schreef Chris Wilson:
> The legacy cursor ioctl expects to be asynchronous with respect to other
> screen updates, in particular page flips. As X updates the cursor from a
> signal context, if the cursor blocks then it will stall both the input
> and output chains causing bad stuttering and horrible UX.
>
> Reported-and-tested-by: Rafael Ristovski <rafael.ristovski@gmail.com>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94980
> Fixes: 5008e874edd34 ("drm/i915: Make wait_for_flips interruptible.")
> Suggested-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
> Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
> Cc: Jani Nikula <jani.nikula@intel.com>
> Cc: stable@vger.kernel.org
> ---
>  drivers/gpu/drm/i915/intel_display.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> index 4cca155376be..c5b9687091f4 100644
> --- a/drivers/gpu/drm/i915/intel_display.c
> +++ b/drivers/gpu/drm/i915/intel_display.c
> @@ -13446,6 +13446,9 @@ static int intel_atomic_prepare_commit(struct drm_device *dev,
>  	}
>  
>  	for_each_crtc_in_state(state, crtc, crtc_state, i) {
> +		if (state->legacy_cursor_update)
> +			continue;
> +
>  		ret = intel_crtc_wait_for_pending_flips(crtc);
>  		if (ret)
>  			return ret;
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] drm/i915: Avoid stalling on pending flips for legacy cursor updates
  2016-04-18 10:02 ` [PATCH] " Maarten Lankhorst
@ 2016-04-18 10:27   ` Chris Wilson
  0 siblings, 0 replies; 4+ messages in thread
From: Chris Wilson @ 2016-04-18 10:27 UTC (permalink / raw)
  To: Maarten Lankhorst
  Cc: intel-gfx, Ville Syrjälä, Daniel Vetter, Jani Nikula,
	stable

On Mon, Apr 18, 2016 at 12:02:15PM +0200, Maarten Lankhorst wrote:
> Op 17-04-16 om 21:42 schreef Chris Wilson:
> > The legacy cursor ioctl expects to be asynchronous with respect to other
> > screen updates, in particular page flips. As X updates the cursor from a
> > signal context, if the cursor blocks then it will stall both the input
> > and output chains causing bad stuttering and horrible UX.
> >
> > Reported-and-tested-by: Rafael Ristovski <rafael.ristovski@gmail.com>
> > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94980
> > Fixes: 5008e874edd34 ("drm/i915: Make wait_for_flips interruptible.")
> > Suggested-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> > Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> > Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> > Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
> > Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
> > Cc: Jani Nikula <jani.nikula@intel.com>
> > Cc: stable@vger.kernel.org
> > ---
> >  drivers/gpu/drm/i915/intel_display.c | 3 +++
> >  1 file changed, 3 insertions(+)
> >
> > diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> > index 4cca155376be..c5b9687091f4 100644
> > --- a/drivers/gpu/drm/i915/intel_display.c
> > +++ b/drivers/gpu/drm/i915/intel_display.c
> > @@ -13446,6 +13446,9 @@ static int intel_atomic_prepare_commit(struct drm_device *dev,
> >  	}
> >  
> >  	for_each_crtc_in_state(state, crtc, crtc_state, i) {
> > +		if (state->legacy_cursor_update)
> > +			continue;
> > +
> >  		ret = intel_crtc_wait_for_pending_flips(crtc);
> >  		if (ret)
> >  			return ret;
> Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>

Thanks, pushed.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-04-18 10:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-17 19:42 [PATCH] drm/i915: Avoid stalling on pending flips for legacy cursor updates Chris Wilson
2016-04-18  9:39 ` ✓ Fi.CI.BAT: success for " Patchwork
2016-04-18 10:02 ` [PATCH] " Maarten Lankhorst
2016-04-18 10:27   ` Chris Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox