]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4813437c32b7b4029571974c5a5605c1a8a0f539
tree28f299240c04955f9cca7a7fad794ece744da4bb
parente554e791cd8b8c1f26fc0645f843e45d5eafe9c6
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