]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: fix up locking inconsistency around gem_do_init
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 26 Jan 2012 10:41:11 +0000 (11:41 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 13 Feb 2012 10:03:45 +0000 (11:03 +0100)
commite2f038d8bc85b5de996ebec8c351ed9845c8584b
treee66b4a742d65b958f3d137a39b7cb7ecd5b9e6d9
parentefc55e3c37f374df84614723d4ae5e900803fc25
drm/i915: fix up locking inconsistency around gem_do_init

The locking in our setup and teardown paths is rather arbitrary, but
generally we try to protect gem stuff with dev->struct_mutex. Further,
the ums/gem ioctl to setup gem _does_ take the look. So fix up this
benign inconsistency.

Notice while reading through code.

v2: Rebased on top of the ppgtt code.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_dma.c