diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2015-11-11 09:48:13 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2015-11-25 15:31:21 +1000 |
commit | 950950327bd63b7f54808c7028839a37899035f9 (patch) | |
tree | 97e035e0c9ce45c3f00139e4a4b5a094ffe94d9f /drivers/gpu/drm/nouveau/include/nvkm/subdev/instmem.h | |
parent | drm/nouveau/pci: enable c800 magic for some unknown Samsung laptop (diff) | |
download | linux-dev-950950327bd63b7f54808c7028839a37899035f9.tar.xz linux-dev-950950327bd63b7f54808c7028839a37899035f9.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/nouveau/include/nvkm/subdev/instmem.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/include/nvkm/subdev/instmem.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/include/nvkm/subdev/instmem.h b/drivers/gpu/drm/nouveau/include/nvkm/subdev/instmem.h index 28bc202f9753..40f845e31272 100644 --- a/drivers/gpu/drm/nouveau/include/nvkm/subdev/instmem.h +++ b/drivers/gpu/drm/nouveau/include/nvkm/subdev/instmem.h @@ -7,6 +7,7 @@ struct nvkm_instmem { const struct nvkm_instmem_func *func; struct nvkm_subdev subdev; + spinlock_t lock; struct list_head list; u32 reserved; |