diff options
author | 2021-05-28 16:54:16 +0200 | |
---|---|---|
committer | 2021-06-01 22:55:14 -0400 | |
commit | ae4c0d7674a7be1df7c65fdfbb808b2b6bae6462 (patch) | |
tree | 6e792f407e39da5a60b93cbae6de29e4af5b2847 | |
parent | drm/amd/pm: retain the fine grain tuning parameters after resume (diff) | |
download | wireguard-linux-ae4c0d7674a7be1df7c65fdfbb808b2b6bae6462.tar.xz wireguard-linux-ae4c0d7674a7be1df7c65fdfbb808b2b6bae6462.zip |
drm/amdgpu: make sure we unpin the UVD BO
Releasing pinned BOs is illegal now. UVD 6 was missing from:
commit 2f40801dc553 ("drm/amdgpu: make sure we unpin the UVD BO")
Fixes: 2f40801dc553 ("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>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c b/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c index 2bab9c77952f..cf3803f8f075 100644 --- a/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c +++ b/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c @@ -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; |