drm/nouveau/instmem: protect instobj list with a spinlock
authorBen Skeggs <bskeggs@redhat.com>
Tue, 10 Nov 2015 23:48:13 +0000 (09:48 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 25 Nov 2015 05:31:21 +0000 (15:31 +1000)
commit950950327bd63b7f54808c7028839a37899035f9
tree97e035e0c9ce45c3f00139e4a4b5a094ffe94d9f
parentc294a052f8b446c7a36adfa587e9f2c6ff425279
drm/nouveau/instmem: protect instobj list with a spinlock

No locking is required for the traversal of this list, as it only
happens during suspend/resume where nothing else can be executing.

Fixes some of the issues noticed during parallel piglit runs.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/include/nvkm/subdev/instmem.h
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/base.c