aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nvkm/subdev/bar/gm20b.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2019-09-16 16:19:25 +0200
committerBen Skeggs <bskeggs@redhat.com>2019-09-17 14:50:16 +1000
commit641f53c07d2760f1a53288c3cab0300030f049cb (patch)
treebf3a033bc07e7d512dab9bf5e7fb2e5492ae0edf /drivers/gpu/drm/nouveau/nvkm/subdev/bar/gm20b.c
parentdrm/nouveau/prime: Extend DMA reservation object lock (diff)
downloadlinux-dev-641f53c07d2760f1a53288c3cab0300030f049cb.tar.xz
linux-dev-641f53c07d2760f1a53288c3cab0300030f049cb.zip
drm/nouveau: Fix ordering between TTM and GEM release
When the last reference to a TTM BO is dropped, ttm_bo_release() will acquire the DMA reservation object's wound/wait mutex while trying to clean up (ttm_bo_cleanup_refs_or_queue() via ttm_bo_release()). It is therefore essential that drm_gem_object_release() be called after the TTM BO has been uninitialized, otherwise drm_gem_object_release() has already destroyed the wound/wait mutex (via dma_resv_fini()). Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions