Skip to content

Commit

Permalink
drm/amdgpu: make sure we unpin the UVD BO
Browse files Browse the repository at this point in the history
commit 0743860 upstream.

Releasing pinned BOs is illegal now. UVD 6 was missing from:
commit 2f40801 ("drm/amdgpu: make sure we unpin the UVD BO")

Fixes: 2f40801 ("drm/amdgpu: make sure we unpin the UVD BO")
Cc: stable@vger.kernel.org
Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Nirmoy Das authored and gregkh committed Jun 10, 2021
1 parent 9d1d6c0 commit a1f1053
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c
Expand Up @@ -357,6 +357,7 @@ static int uvd_v6_0_enc_ring_test_ib(struct amdgpu_ring *ring, long timeout)

error:
dma_fence_put(fence);
amdgpu_bo_unpin(bo);
amdgpu_bo_unreserve(bo);
amdgpu_bo_unref(&bo);
return r;
Expand Down

0 comments on commit a1f1053

Please sign in to comment.