]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9e13261ca01381aeb6655cc9db2ac82bccefd81a
tree97e035e0c9ce45c3f00139e4a4b5a094ffe94d9f
parentbdae0d3ff6338d013348dc35437828159baf93c3
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