From: Ben Widawsky Subject: [PATCH 0/3] RFC: force throttling/fairness Date: Fri, 28 Oct 2011 22:55:26 -0700 Message-ID: <1319867729-8676-1-git-send-email-ben@bwidawsk.net> 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 24F639E848 for ; Fri, 28 Oct 2011 22:55:38 -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-gfx@lists.freedesktop.org Cc: Ben Widawsky , Daniel Vetter , "Lecluse, Philippe" List-Id: intel-gfx@lists.freedesktop.org These patches are pretty raw as I'm hoping to get some comments before working to hard too clean them up. The goal is GPU fairness for clients running on i915. These are simplified versions of some patches which I've been working on for an internal customer. These patches are designed to keep clients which are hogging GPU resources from making the system unresponsive. They've been tested with an app Eric Anholt modified that never calls swap buffer, and nexuiz in windowed mode. I've not played with the thresholds much at all (only 2 attempts actually), but I was able to get nexuiz up from 30fps to 46fps using this code. The app essentially submits a bunch of GPU work, and then never calls swap. I'm looking for comments... I think this is a good thing to upstream, but I hate to add the debugfs interfaces without others agreeing this is useful. As an aside, I have hit one of my warnings (once) and have been trying to track down the reason, so these patches are definitely not finished - ie. feel free to bikeshed. Ben Widawsky (3): drm/i915: Keep track of request counts drm/i915: Add waitq/wakeups for our per fd requests drm/i915: fairness drivers/gpu/drm/i915/i915_dma.c | 1 + drivers/gpu/drm/i915/i915_drv.c | 13 +++++++ drivers/gpu/drm/i915/i915_drv.h | 4 ++ drivers/gpu/drm/i915/i915_gem.c | 12 ++++++ drivers/gpu/drm/i915/i915_gem_execbuffer.c | 52 ++++++++++++++++++++++++--- drivers/gpu/drm/i915/intel_drv.h | 13 ++++--- 6 files changed, 84 insertions(+), 11 deletions(-) -- 1.7.7.1