From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: [PATCH 00/14] intel_ringbuffer.c reorg + cleanups Date: Wed, 11 Apr 2012 22:12:45 +0200 Message-ID: <1334175179-1514-1-git-send-email-daniel.vetter@ffwll.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) by gabe.freedesktop.org (Postfix) with ESMTP id A8316A0970 for ; Wed, 11 Apr 2012 12:58:24 -0700 (PDT) Received: by wgbdr12 with SMTP id dr12so1018811wgb.12 for ; Wed, 11 Apr 2012 12:58:23 -0700 (PDT) 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 Graphics Development Cc: Daniel Vetter List-Id: intel-gfx@lists.freedesktop.org Hi all, This patch series is inspired by Ben's ring->get|put_irq cleanup for gen6+ and my perpetual hatred for intel_ringbuffer.c. It's a lot of churn, but the end result is imho worth it - I almost started to like what the ringbuffer abstraction looks like now. There are some follow-up cleanups possible, but I think that can wait until we've cleanup up our domain tracking and ripped out the flushing_list (if that ever happens). Commments, flames and review highly welcome. Yours, Daniel Daniel Vetter (14): drm/i915: rip out ring->irq_mask drm/i915: set ring->size in common ring setup code drm/i915: dynamically set up the render ring functions and params drm/i915: dynamically set up bsd ring functions and params drm/i915: dynamically set up blt ring functions and parameters drm/i915: don't set up rings on gen6+ for non-kms drm/i915: consolidate ring->sync-to functions drm/i915: abstract away ring-specific irq_get/put drm/i915: split out the gen5 ring irq get/put functions drm/i915: don't enable the gen6 bsd ring tail write enable on gen7 drm/i915: split up ring->dispatch_execbuffer functions drm/i915: consolidate ring->flush a bit drm/i915: don't set up gem ring functions on gen5 for !kms drm/i915: inline enable/disable_irq into ring->get/put_irq drivers/gpu/drm/i915/intel_ringbuffer.c | 466 +++++++++++++------------------ drivers/gpu/drm/i915/intel_ringbuffer.h | 3 +- 2 files changed, 196 insertions(+), 273 deletions(-) -- 1.7.7.5