]> Git Repo - J-linux.git/commitdiff
drm/amdgpu: make sure we unpin the UVD BO
authorNirmoy Das <[email protected]>
Fri, 28 May 2021 14:54:16 +0000 (16:54 +0200)
committerAlex Deucher <[email protected]>
Wed, 2 Jun 2021 21:57:07 +0000 (17:57 -0400)
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: [email protected]
Signed-off-by: Nirmoy Das <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c

index 2bab9c77952fd73163a6df839d441d0827b0de05..cf3803f8f075d3a24e3ebc61c442a7fd33b594aa 100644 (file)
@@ -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;
This page took 0.05267 seconds and 4 git commands to generate.