OpenCloudOS-Kernel/drivers/gpu/drm/nouveau/nvkm/subdev/instmem
Thierry Reding e5ffa727e5 drm/nouveau/imem/gk20a: Turn instmem lock into mutex
The gk20a implementation of instance memory uses vmap()/vunmap() to map
memory regions into the kernel's virtual address space. These functions
may sleep, so protecting them by a spin lock is not safe. This triggers
a warning if the DEBUG_ATOMIC_SLEEP Kconfig option is enabled. Fix this
by using a mutex instead.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Tested-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2017-04-06 14:39:03 +10:00
..
Kbuild drm/nouveau/instmem/gk20a: move memory allocation to instmem 2015-04-14 17:00:42 +10:00
base.c drm/nouveau: silence sparse warnings about symbols not being marked static 2016-11-07 14:04:40 +10:00
gk20a.c drm/nouveau/imem/gk20a: Turn instmem lock into mutex 2017-04-06 14:39:03 +10:00
nv04.c drm/nouveau/imem: convert to new-style nvkm_subdev 2015-08-28 12:40:44 +10:00
nv40.c drm/nouveau/device: cleaner abstraction for device resource functions 2015-08-28 12:40:48 +10:00
nv50.c drm/nouveau/device: cleaner abstraction for device resource functions 2015-08-28 12:40:48 +10:00
priv.h drm/nouveau/imem: convert to new-style nvkm_subdev 2015-08-28 12:40:44 +10:00