All of lore.kernel.org
 help / color / mirror / Atom feed
From: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Cc: "Ville Syrjälä" <ville.syrjala@linux.intel.com>,
	"Daniel Vetter" <daniel.vetter@ffwll.ch>,
	"Jani Nikula" <jani.nikula@intel.com>,
	stable@vger.kernel.org
Subject: Re: [PATCH] drm/i915: Avoid stalling on pending flips for legacy cursor updates
Date: Mon, 18 Apr 2016 12:02:15 +0200	[thread overview]
Message-ID: <5714B0A7.8030207@linux.intel.com> (raw)
In-Reply-To: <1460922166-20292-1-git-send-email-chris@chris-wilson.co.uk>

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>

  parent reply	other threads:[~2016-04-18 10:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2016-04-18 10:27   ` [PATCH] " Chris Wilson
2016-04-18 10:27     ` Chris Wilson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5714B0A7.8030207@linux.intel.com \
    --to=maarten.lankhorst@linux.intel.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=daniel.vetter@ffwll.ch \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jani.nikula@intel.com \
    --cc=stable@vger.kernel.org \
    --cc=ville.syrjala@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.