drm/i915: move gen6 rps handling to workqueue
authorBen Widawsky <ben@bwidawsk.net>
Mon, 25 Apr 2011 18:25:20 +0000 (11:25 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 10 May 2011 20:56:47 +0000 (13:56 -0700)
commit4912d04193733a825216b926ffd290fada88ab07
tree28f299240c04955f9cca7a7fad794ece744da4bb
parentd1ebd816e6d7967c764f0cfa7d718f7c5cc7a8e4
drm/i915: move gen6 rps handling to workqueue

The render P-state handling code requires reading from a GT register.
This means that FORCEWAKE must be written to, a resource which is shared
and should be protected by struct_mutex. Hence we can not manipulate
that register from within the interrupt handling and so must delegate
the task to a workqueue.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_display.c