drm/radeon: activate UVD clocks before sending the destroy msg
Subsystems (2)
PATCH 1/2 drm/radeon: activate UVD clocks before sending the destroy msg
From: Christian König <[email protected]>
Make sure the UVD clocks are still active before sending the destroy message, otherwise the hw might hang.
--- drivers/gpu/drm/radeon/radeon_uvd.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/radeon/radeon_uvd.c +2 -0
@@ -240,6 +240,8 @@ void radeon_uvd_free_handles(struct radeon_device *rdev, struct drm_file *filp)if (handle !=0 && rdev->uvd.filp[i] == filp) {struct radeon_fence *fence; +radeon_uvd_note_usage (rdev); + r =radeon_uvd_get_destroy_msg (rdev,R600_RING_TYPE_UVD_INDEX , handle, &fence);if (r) {
Signature · 6 lines
1.8.1.2 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 2/2 drm/radeon: fix UVD destroy IB size
From: Christian König <[email protected]>
The parameter is in bytes not dwords.
--- drivers/gpu/drm/radeon/radeon_uvd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/radeon/radeon_uvd.c +1 -1
@@ -622,7 +622,7 @@ static int radeon_uvd_send_msg(struct radeon_device *rdev,if (r) goto err; - r =radeon_ib_get (rdev, ring, &ib,NULL ,16 ); + r =radeon_ib_get (rdev, ring, &ib,NULL ,64 );if (r) goto err;
Signature · 6 lines
1.8.1.2 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 7 lines · Christian König
From: Christian König <[email protected]>
Make sure the UVD clocks are still active before sending the destroy message, otherwise the hw might hang.
Signed-off-by Christian König <[email protected]>
Both applied!
Alex
Quoted 20 lines
--- drivers/gpu/drm/radeon/radeon_uvd.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/radeon/radeon_uvd.c +2
-1@@ -240,6 +240,8 @@ void radeon_uvd_free_handles(struct radeon_device *rdev, struct drm_file *filp)if (handle !=0 && rdev->uvd.filp[i] == filp) {struct radeon_fence *fence; +radeon_uvd_note_usage (rdev); + r =radeon_uvd_get_destroy_msg (rdev,R600_RING_TYPE_UVD_INDEX , handle, &fence);if (r) { --1.8.1.2
Am 30.10.2013 15:29, schrieb Alex Deucher:
Quoted 10 lines
Quoted 7 lines · Christian König
From: Christian König <[email protected]>
Make sure the UVD clocks are still active before sending the destroy message, otherwise the hw might hang.
Signed-off-by Christian König <[email protected]>Both applied!
On which branch? Those two where intended for drm-fixes-3.12, but they didn't showed up in 3.12.0.
Could you apply them to drm-fixes-3.12 as well? They prevent hw lockups in case of crashed userspace applications and should also go into older stable kernels.
Christian.
Quoted 22 lines
Alex
Quoted 20 lines
--- drivers/gpu/drm/radeon/radeon_uvd.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/radeon/radeon_uvd.c +2
-1@@ -240,6 +240,8 @@ void radeon_uvd_free_handles(struct radeon_device *rdev, struct drm_file *filp)if (handle !=0 && rdev->uvd.filp[i] == filp) {struct radeon_fence *fence; +radeon_uvd_note_usage (rdev); + r =radeon_uvd_get_destroy_msg (rdev,R600_RING_TYPE_UVD_INDEX , handle, &fence);if (r) { --1.8.1.2
Quoted 16 lines · Christian König
Am 30.10.2013 15:29, schrieb Alex Deucher:
Quoted 6 lines
Quoted 3 lines · Christian König
From: Christian König <[email protected]>
Quoted 7 lines
Quoted 5 lines
Make sure the UVD clocks are still active before sending the destroy message, otherwise the hw might hang.
Signed-off-by Christian König <[email protected]>Both applied!
Quoted 6 lines
On which branch? Those two where intended for drm-fixes-3.12, but they didn't showed up in 3.12.0.
Could you apply them to drm-fixes-3.12 as well? They prevent hw lockups in case of crashed userspace applications and should also go into older stable kernels.
It was too late for 3.12. They'll be in 3.13 and I cc'ed stable:
http://cgit.freedesktop.org/~airlied/linux/commit/?h=drm-next&id=c154a76311293f9671439286834aa325b7ef59fe
http://cgit.freedesktop.org/~airlied/linux/commit/?h=drm-next&id=727ddc84a1373bf06b2fa261f44e38fb0faf5340
I can push to my fdo drm-fixes-3.12 branch too if you want.
Alex
Quoted 29 lines
Christian.
Quoted 25 lines
Alex
Quoted 23 lines
--- drivers/gpu/drm/radeon/radeon_uvd.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/radeon/radeon_uvd.c +2
-0@@ -240,6 +240,8 @@ void radeon_uvd_free_handles(struct radeon_device *rdev, struct drm_file *filp)if (handle !=0 && rdev->uvd.filp[i] == filp) {struct radeon_fence *fence; +radeon_uvd_note_usage (rdev); + r = radeon_uvd_get_destroy_msg(rdev, R600_RING_TYPE_UVD_INDEX, handle,&fence); if (r) {--
1.8.1.2