From patchwork Wed Jan 6 19:10:12 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Clifton X-Patchwork-Id: 71402 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o06JAG0N019188 for ; Wed, 6 Jan 2010 19:10:16 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EBF0C9E9D5; Wed, 6 Jan 2010 11:10:15 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from ppsw-5.csi.cam.ac.uk (ppsw-5.csi.cam.ac.uk [131.111.8.135]) by gabe.freedesktop.org (Postfix) with ESMTP id 60CAB9E733 for ; Wed, 6 Jan 2010 11:10:14 -0800 (PST) X-Cam-AntiVirus: no malware found X-Cam-SpamDetails: not scanned X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Received: from eedw2101.eng.cam.ac.uk ([129.169.178.101]:56968) by ppsw-5.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.155]:465) with esmtpsa (LOGIN:pcjc2) (SSLv3:DHE-RSA-AES256-SHA:256) id 1NSbGm-0000Av-It (Exim 4.70) for intel-gfx@lists.freedesktop.org (return-path ); Wed, 06 Jan 2010 19:10:12 +0000 From: Peter Clifton To: intel-gfx Date: Wed, 06 Jan 2010 19:10:12 +0000 Message-ID: <1262805012.17560.23.camel@pcjc2lap> Mime-Version: 1.0 X-Mailer: Evolution 2.28.2 Subject: [Intel-gfx] -ERESTARTSYS on ioctl X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.9 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c index b306e5d..592965e 100644 --- a/intel/intel_bufmgr_gem.c +++ b/intel/intel_bufmgr_gem.c @@ -1300,7 +1300,7 @@ drm_intel_gem_bo_exec(drm_intel_bo *bo, int used, ret = ioctl(bufmgr_gem->fd, DRM_IOCTL_I915_GEM_EXECBUFFER, &execbuf); - } while (ret != 0 && errno == EINTR); + } while (ret != 0 && errno == EAGAIN); if (ret != 0) { ret = -errno;