From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Widawsky Subject: Re: [PATCH 09/10] drm/i915: wait render timeout ioctl Date: Sat, 21 Apr 2012 09:12:17 -0700 Message-ID: <20120421091217.0897735e@bwidawsk.net> References: <1334971412-4826-1-git-send-email-ben@bwidawsk.net> <1334971412-4826-10-git-send-email-ben@bwidawsk.net> <1335001339_11300@CP5-2952> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from cloud01.chad-versace.us (184-106-247-128.static.cloud-ips.com [184.106.247.128]) by gabe.freedesktop.org (Postfix) with ESMTP id 2AB819E75C for ; Sat, 21 Apr 2012 09:13:47 -0700 (PDT) In-Reply-To: <1335001339_11300@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: intel-gfx@lists.freedesktop.org, Ben Widawsky List-Id: intel-gfx@lists.freedesktop.org On Sat, 21 Apr 2012 10:41:55 +0100 Chris Wilson wrote: > On Fri, 20 Apr 2012 18:23:31 -0700, Ben Widawsky > wrote: > > + ret = i915_seqno_wait_timed(ring, seqno, true, &timeout); > > + if (ret == -ERESTARTSYS) > > + ret = -EINTR; > Don't convert it here, pass ERESTARTSYS to the system call handler > which decides how to handle it. > > > + else if (ret == -ETIME) { > > + ret = -EBUSY; > > Why the semantic change? ETIME for timer timed out still seems > appropriate. I must be missing something. Can you point to me where the system call handler converts these? The only reason for the change was to prevent passing the internal return types to user space. > > I think this whole interface is a stop-gap solution for pollable sync > objects without a clear use case. Do we have a spec for a feature > wishing to build upon this interface? Good point. This is primarily for glClientWaitSync. I will update the commit message with this information. > -Chris >