From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH] drm/i915: Make the lock for pageflips interruptible Date: Sun, 15 Jul 2012 16:20:43 +0200 Message-ID: <20120715142042.GA5184@phenom.ffwll.local> References: <1337768038-16731-1-git-send-email-chris@chris-wilson.co.uk> <1342350388_960@CP5-2952> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com [74.125.82.41]) by gabe.freedesktop.org (Postfix) with ESMTP id C116D9E752 for ; Sun, 15 Jul 2012 07:20:46 -0700 (PDT) Received: by wgbds1 with SMTP id ds1so1633034wgb.0 for ; Sun, 15 Jul 2012 07:20:45 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1342350388_960@CP5-2952> 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: Chris Wilson Cc: Daniel Vetter , intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Sun, Jul 15, 2012 at 12:06:15PM +0100, Chris Wilson wrote: > On Wed, 23 May 2012 11:13:58 +0100, Chris Wilson 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