diff options
| author | 2021-07-28 15:05:52 +0200 | |
|---|---|---|
| committer | 2021-08-23 13:54:55 +0200 | |
| commit | d5f45d1e2f08685c34483719b39f91010d6222e8 (patch) | |
| tree | 46edbdbd5e208dec53b732abc861f392d2f86be1 /drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | |
| parent | drm/radeon: unbind in radeon_ttm_tt_unpopulate() (diff) | |
| download | wireguard-linux-d5f45d1e2f08685c34483719b39f91010d6222e8.tar.xz wireguard-linux-d5f45d1e2f08685c34483719b39f91010d6222e8.zip | |
drm/ttm: remove ttm_tt_destroy_common v2
Move the functionality into ttm_tt_fini and ttm_bo_tt_destroy instead.
We don't need this any more since we removed the unbind from the destroy
code paths in the drivers.
Also add a warning to ttm_tt_fini() if we try to fini a still populated TT
object.
v2: instead of reverting the patch move the functionality to different
places.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210728130552.2074-5-christian.koenig@amd.com
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, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c index 75d45623388a..489e22190e29 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c @@ -1066,7 +1066,6 @@ static void amdgpu_ttm_backend_destroy(struct ttm_device *bdev, { struct amdgpu_ttm_tt *gtt = (void *)ttm; - ttm_tt_destroy_common(bdev, ttm); if (gtt->usertask) put_task_struct(gtt->usertask); |
