diff options
author | Christian König <christian.koenig@amd.com> | 2018-03-09 14:42:54 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-03-14 15:08:39 -0500 |
commit | 7f8fb919655ef3011b01bb114fef42107957860a (patch) | |
tree | 7a30ceb62fcc5c866d5b295f2cd09f92af301065 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
parent | eab3de23a1639ec9419c1f9239ce651d3c82e7d6 (diff) | |
download | linux-7f8fb919655ef3011b01bb114fef42107957860a.tar.gz linux-7f8fb919655ef3011b01bb114fef42107957860a.tar.bz2 linux-7f8fb919655ef3011b01bb114fef42107957860a.zip |
drm/amdgpu: fix prime teardown order
We unmapped imported DMA-bufs when the GEM handle was dropped, not when the
hardware was done with the buffere.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
CC: stable@vger.kernel.org
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c index bb9b21266b67..46b9ea4e6103 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c @@ -36,8 +36,6 @@ void amdgpu_gem_object_free(struct drm_gem_object *gobj) struct amdgpu_bo *robj = gem_to_amdgpu_bo(gobj); if (robj) { - if (robj->gem_base.import_attach) - drm_prime_gem_destroy(&robj->gem_base, robj->tbo.sg); amdgpu_mn_unregister(robj); amdgpu_bo_unref(&robj); } |