diff options
author | Dave Airlie <[email protected]> | 2020-09-17 13:20:48 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2020-09-18 06:14:41 +1000 |
commit | 7626168fd132009c79a0457bccc58014abc738f5 (patch) | |
tree | 963660ce229de967db864207c79d913b139f9cde /drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | |
parent | 0b988ca1c7c4c73983b4ea96ef7c2af2263c87eb (diff) |
drm/ttm: flip tt destroy ordering.
Call the driver first and have it call the common code cleanup.
This is useful later to fix unbind.
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c index 2851cf30091a..dbe3f90a0cf6 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c @@ -1267,6 +1267,7 @@ static void amdgpu_ttm_backend_destroy(struct ttm_bo_device *bdev, { struct amdgpu_ttm_tt *gtt = (void *)ttm; + ttm_tt_destroy_common(bdev, ttm); if (gtt->usertask) put_task_struct(gtt->usertask); |