]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
i915: Use struct_mutex to protect ring in GEM mode.
authorEric Anholt <eric@anholt.net>
Mon, 1 Sep 2008 23:45:29 +0000 (16:45 -0700)
committerDave Airlie <airlied@linux.ie>
Fri, 17 Oct 2008 21:10:51 +0000 (07:10 +1000)
commit546b0974c39657017407c86fe79811100b60700d
tree42ae164d23ecaa1cb78ad87ad9603e0bdd29740d
parented4c9c4acf948b42b138747fcb8843ecb1a24ce4
i915: Use struct_mutex to protect ring in GEM mode.

In the conversion for GEM, we had stopped using the hardware lock to protect
ring usage, since it was all internal to the DRM now.  However, some paths
weren't converted to using struct_mutex to prevent multiple threads from
concurrently working on the ring, in particular between the vblank swap handler
and ioctls.

Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
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