From: Mika Kuoppala Subject: [PATCH 0/5] Wrap handling / seqno allocations Date: Thu, 22 Nov 2012 12:51:25 +0200 Message-ID: <1353581490-5822-1-git-send-email-mika.kuoppala@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id E4D25436AD for ; Thu, 22 Nov 2012 02:51:31 -0800 (PST) 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: intel-gfx@lists.freedesktop.org Cc: Mika Kuoppala List-Id: intel-gfx@lists.freedesktop.org Hi all, This patchset tries to address the seqno wrapping issues in driver. When seqnos wrap, all requests need to be retired and this can fail. Thus seqno_allocation is needed. We pre allocate seqnos prior to pushing stuff into rings. Patch from Chris also avoids allocation of seqno's when gpu_idle() is called for retiring. Without this we would recurse back into next_request_seqno(). Comments, flames and reviews are all welcome. Chris Wilson (1): drm/i915: Wait upon the last request seqno, rather than a future seqno Mika Kuoppala (4): drm/i915: fix debugfs seqno info print to use uint drm/i915: Add i915_gem_alloc_seqno drm/i915: Allocate seqno conditionally in i915_add_request drm/i915: don't return seqno from ring->add_request() drivers/gpu/drm/i915/i915_debugfs.c | 2 +- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/i915_gem.c | 102 ++++++++++++++++++++++++---- drivers/gpu/drm/i915/i915_gem_execbuffer.c | 29 +++----- drivers/gpu/drm/i915/intel_ringbuffer.c | 18 ++--- drivers/gpu/drm/i915/intel_ringbuffer.h | 2 +- 6 files changed, 108 insertions(+), 46 deletions(-) -- 1.7.9.5