Skip to contentSkip to conversation

drm/amdgpu: make sure we unpin the UVD BO

PATCH In review Nirmoy Das 2 participants 3 messages Apr 20, 2021 – May 28, 2021

Subsystems (2)
lore
Share & tools
lore

Nirmoy Das

author
#0 lore raw

PATCH 1/1 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")

---
 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c +1 -0
index 760859880c1e..4eebf973a065 100644
@@ -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;
Signature · 6 lines
2.30.2

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
maintainer Reviewed-by on v1 1/1
#1 lore raw

Am 20.04.21 um 12:50 schrieb Nirmoy Das:

Quoted 5 lines

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

Maybe add a CC:stable tag as well.

Sorry I somehow overlooked this patch. Can you make sure that it lands in amd-staging-drm-next ASAP? We have an user complaining.

Thanks,
Christian.

Quoted 9 lines
---
  drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 1 +
  1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c +0 -0
index 760859880c1e..4eebf973a065 100644

drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c static int uvd_v6_0_enc_ring_test_ib(struct amdgpu_ring *ring, long timeout) · line 363

Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c +1 -0
@@ -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;

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

#2 lore raw
Quoted 5 lines · Christian König

Am 20.04.21 um 12:50 schrieb Nirmoy Das:

Quoted 4 lines

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

Quoted 8 lines
Quoted 1 line

Maybe add a CC:stable tag as well.

Sorry I somehow overlooked this patch. Can you make sure that it lands in amd-staging-drm-next ASAP? We have an user complaining.

No worries, I will push it now with CC:stable.

Thanks,

Nirmoy

Quoted 7 lines

Thanks,
Christian.

Quoted 4 lines

---
  drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 1 +

  1 file changed, 1 insertion(+)
Quoted 13 lines
Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c +0 -0
index 760859880c1e..4eebf973a065 100644
@@ -357,6 +357,7 @@ static int uvd_v6_0_enc_ring_test_ib(struct 
 amdgpu_ring *ring, long timeout)
Quoted 6 lines

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

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx