OSDN Git Service

drm/ttm: Add release_notify callback to ttm_bo_driver
authorFelix Kuehling <Felix.Kuehling@amd.com>
Tue, 9 Jul 2019 23:09:42 +0000 (19:09 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 2 Aug 2019 15:18:04 +0000 (10:18 -0500)
commit274840e544225657fbca4f12efa1ee55474bb800
treea1a64a945e2c45aa2890f2dd63bf4843eb661ed4
parentd9ec5cfd5a2eca87b7c5f697ae07b5c9ae9b771f
drm/ttm: Add release_notify callback to ttm_bo_driver

This notifies the driver that a BO is about to be released.

Releasing a BO also invokes the move_notify callback from
ttm_bo_cleanup_memtype_use, but that happens too late for anything
that would add fences to the BO and require a delayed delete.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_bo.c
include/drm/ttm/ttm_bo_driver.h