Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] RFC: force throttling/fairness
@ 2011-10-29  5:55 Ben Widawsky
  2011-10-29  5:55 ` [PATCH 1/3] drm/i915: Keep track of request counts Ben Widawsky
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Ben Widawsky @ 2011-10-29  5:55 UTC (permalink / raw)
  To: intel-gfx; +Cc: Ben Widawsky, Daniel Vetter, Lecluse, Philippe

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-10-29 19:49 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-29  5:55 [PATCH 0/3] RFC: force throttling/fairness Ben Widawsky
2011-10-29  5:55 ` [PATCH 1/3] drm/i915: Keep track of request counts Ben Widawsky
2011-10-29  9:35   ` Daniel Vetter
2011-10-29 19:30     ` Ben Widawsky
2011-10-29  5:55 ` [PATCH 2/3] drm/i915: Add waitq/wakeups for our per fd requests Ben Widawsky
2011-10-29  5:55 ` [PATCH 3/3] drm/i915: fairness Ben Widawsky
2011-10-29  8:07 ` [PATCH 0/3] RFC: force throttling/fairness Chris Wilson
2011-10-29 18:45   ` Eric Anholt
2011-10-29 19:22     ` Ben Widawsky
2011-10-29 19:40       ` Daniel Vetter
2011-10-29 19:47         ` Daniel Vetter
2011-10-29 19:49           ` Ben Widawsky
2011-10-29 19:27   ` Ben Widawsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox