summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/include/nvkm/engine
diff options
context:
space:
mode:
authorAlexandre Courbot <acourbot@nvidia.com>2017-01-19 04:11:15 +0100
committerBen Skeggs <bskeggs@redhat.com>2017-03-07 08:05:11 +0100
commite444de56bc60ce0a388e328bcf86dcd0baabc32e (patch)
tree330efb11ac06d379f5cee30b69fc454a09b0f487 /drivers/gpu/drm/nouveau/include/nvkm/engine
parentdrm/nouveau/falcon: add missing context binding memory target (diff)
downloadlinux-e444de56bc60ce0a388e328bcf86dcd0baabc32e.tar.xz
linux-e444de56bc60ce0a388e328bcf86dcd0baabc32e.zip
drm/nouveau/falcon: protect against concurrent DMEM accesses
The falcon library may be used concurrently, especially after the introduction of the msgqueue interface. Make it safe to use it that way. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/include/nvkm/engine')
-rw-r--r--drivers/gpu/drm/nouveau/include/nvkm/engine/falcon.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/include/nvkm/engine/falcon.h b/drivers/gpu/drm/nouveau/include/nvkm/engine/falcon.h
index 7e498e65b1e8..9384dff81494 100644
--- a/drivers/gpu/drm/nouveau/include/nvkm/engine/falcon.h
+++ b/drivers/gpu/drm/nouveau/include/nvkm/engine/falcon.h
@@ -19,6 +19,7 @@ struct nvkm_falcon {
u32 addr;
struct mutex mutex;
+ struct mutex dmem_mutex;
const struct nvkm_subdev *user;
u8 version;