drm/ttm: protect against reentrant bind in the drivers
authorDave Airlie <airlied@redhat.com>
Thu, 17 Sep 2020 02:54:24 +0000 (12:54 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 17 Sep 2020 20:14:00 +0000 (06:14 +1000)
commit0b988ca1c7c4c73983b4ea96ef7c2af2263c87eb
tree729ee7adfc399e41f03a768f1a1df8f036d7af88
parent67d6a8b358eac488112a4775f77dc3dbf63bea88
drm/ttm: protect against reentrant bind in the drivers

This moves the generic tracking into the drivers and protects
against reentrancy in the drivers. It fixes up radeon and agp
to be able to query the bound status as that is required.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200917043040.146575-2-airlied@gmail.com
13 files changed:
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/nouveau/nouveau_sgdma.c
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_mn.c
drivers/gpu/drm/radeon/radeon_ttm.c
drivers/gpu/drm/ttm/ttm_agp_backend.c
drivers/gpu/drm/ttm/ttm_bo.c
drivers/gpu/drm/ttm/ttm_bo_util.c
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c
include/drm/ttm/ttm_bo_api.h
include/drm/ttm/ttm_bo_driver.h
include/drm/ttm/ttm_tt.h