[Intel-gfx] [PATCH 0/3] RFC: force throttling/fairness

Ben Widawsky ben at bwidawsk.net
Sat Oct 29 07:55:26 CEST 2011


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




More information about the Intel-gfx mailing list