]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5f70696d0940f1ba2582a27cc324e3add3d928e0
tree729ee7adfc399e41f03a768f1a1df8f036d7af88
parent5219caa18a19eb659d1401860a5f17bca324886d
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