drm/i915: Only hold a process-local lock whilst throttling.
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 24 Sep 2010 15:02:42 +0000 (16:02 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 24 Sep 2010 20:03:00 +0000 (21:03 +0100)
commitf787a5f59e1b0e320a6b0a37e9a2e306551d1e40
tree994bdfb8efef803986fbd40e22942de40aa1daf2
parent27d64339a8d8465484286a2da93f5f6c36be5c3d
drm/i915: Only hold a process-local lock whilst throttling.

Avoid cause latencies in other clients by not taking the global struct
mutex and moving the per-client request manipulation a local per-client
mutex. For example, this allows a compositor to schedule a page-flip
(through X) whilst an OpenGL application is monopolising the GPU.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h