From: Daniel Vetter <daniel@ffwll.ch>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: Make the lock for pageflips interruptible
Date: Sun, 15 Jul 2012 16:20:43 +0200 [thread overview]
Message-ID: <20120715142042.GA5184@phenom.ffwll.local> (raw)
In-Reply-To: <1342350388_960@CP5-2952>
On Sun, Jul 15, 2012 at 12:06:15PM +0100, Chris Wilson wrote:
> On Wed, 23 May 2012 11:13:58 +0100, Chris Wilson <chris@chris-wilson.co.uk> wrote:
> > As we take the struct_mutex lock to access the command-stream, there is
> > a possibility that we may need to wait for a GPU hang and so should make
> > the lock both interruptible and error-checking.
>
> Daniel?
Oops, I've totally missed this one. I think once the execbuffer fallout
for -ERESTARTSYS from intel_ring_begin has settled we should also look
into ditching the interruptible sections in our modeset code. Pageflip
should be rather simple, set_base should work, too, safe for the nasty
problem that we don't pass a sensible error code to the callers. But we
can fix that with the modeset rework. crtc mode_set is more work, but I
think when we move the fb pinning out of the ->modeset callbacks, this
should work, too.
In any case, thanks for the patch, merged to dinq.
-Daniel
--
Daniel Vetter
Mail: daniel@ffwll.ch
Mobile: +41 (0)79 365 57 48
prev parent reply other threads:[~2012-07-15 14:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-23 10:13 [PATCH] drm/i915: Make the lock for pageflips interruptible Chris Wilson
2012-07-15 11:06 ` Chris Wilson
2012-07-15 14:20 ` Daniel Vetter [this message]
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=20120715142042.GA5184@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=chris@chris-wilson.co.uk \
--cc=daniel.vetter@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox