diff options
author | Alexandre Courbot <acourbot@nvidia.com> | 2017-01-19 04:11:15 +0100 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2017-03-07 08:05:11 +0100 |
commit | e444de56bc60ce0a388e328bcf86dcd0baabc32e (patch) | |
tree | 330efb11ac06d379f5cee30b69fc454a09b0f487 /drivers/gpu/drm/nouveau/include/nvkm/engine | |
parent | drm/nouveau/falcon: add missing context binding memory target (diff) | |
download | linux-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.h | 1 |
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; |