]> 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)
commit187556f55b0e98d050cc2b14c7fec03eb5a51611
tree729ee7adfc399e41f03a768f1a1df8f036d7af88
parent07f08f85a46e3b50c63add2daefec2e3b9da3115
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