drm/amdgpu:Fixed wrong emit frame size for enc
Subsystems (2)
PATCH 1/1 drm/amdgpu:Fixed wrong emit frame size for enc
Emit frame size should match with corresponding function, uvd_v6_0_enc_ring_emit_vm_flush has 5 amdgpu_ring_write
--- drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c +1 -1
@@ -1580,7 +1580,7 @@ static const struct amdgpu_ring_funcs uvd_v6_0_enc_ring_vm_funcs = { .set_wptr = uvd_v6_0_enc_ring_set_wptr, .emit_frame_size =4 +/* uvd_v6_0_enc_ring_emit_pipeline_sync */ -6 +/* uvd_v6_0_enc_ring_emit_vm_flush */ +5 +/* uvd_v6_0_enc_ring_emit_vm_flush */ 5 +5 +/* uvd_v6_0_enc_ring_emit_fence x2 vm fence */ 1, /* uvd_v6_0_enc_ring_insert_end */ .emit_ib_size = 5, /* uvd_v6_0_enc_ring_emit_ib */
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1519743965-11792-1-git-send-email-James.Zhu-5C7GfCeVMHo@public.gmane.org
You are using outdated code, that has already be fixed on amd-staging-drm-next.
Christian.
Am 27.02.2018 um 16:06 schrieb James Zhu:
Quoted 13 lines
Emit frame size should match with corresponding function,
uvd_v6_0_enc_ring_emit_vm_flushhas 5amdgpu_ring_writeSigned-off-by James Zhu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c +0
-0
drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c static const struct amdgpu_ring_funcs uvd_v6_0_enc_ring_vm_funcs = { · line 1586
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c +1
-1@@ -1580,7 +1580,7 @@ static const struct amdgpu_ring_funcs uvd_v6_0_enc_ring_vm_funcs = { .set_wptr = uvd_v6_0_enc_ring_set_wptr, .emit_frame_size =4 +/* uvd_v6_0_enc_ring_emit_pipeline_sync */ -6 +/* uvd_v6_0_enc_ring_emit_vm_flush */ +5 +/* uvd_v6_0_enc_ring_emit_vm_flush */ 5 +5 +/* uvd_v6_0_enc_ring_emit_fence x2 vm fence */ 1, /* uvd_v6_0_enc_ring_insert_end */ .emit_ib_size = 5, /* uvd_v6_0_enc_ring_emit_ib */
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 250baf31-8107-5c4e-000c-afff9245d5d7-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Oh, wait a second this is for the encode ring, isn't it? I only fixed the decode ring.
In this case the patch is Reviewed-by: Christian König <[email protected]>
Regards,
Christian.
Am 27.02.2018 um 16:13 schrieb Christian König:
Quoted 13 lines
You are using outdated code, that has already be fixed on amd-staging-drm-next.
Christian.
Am 27.02.2018 um 16:06 schrieb James Zhu:
Quoted 8 lines
Emit frame size should match with corresponding function,
uvd_v6_0_enc_ring_emit_vm_flushhas 5amdgpu_ring_writeSigned-off-by James Zhu <[email protected]>---
drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines
Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c +0
-0@@ -1580,7 +1580,7 @@ static const struct amdgpu_ring_funcs uvd_v6_0_enc_ring_vm_funcs = { .set_wptr = uvd_v6_0_enc_ring_set_wptr,Quoted 7 lines
.emit_frame_size =
4 + /*uvd_v6_0_enc_ring_emit_pipeline_sync*/ - 6 + /*uvd_v6_0_enc_ring_emit_vm_flush*/
+ 5 + /*uvd_v6_0_enc_ring_emit_vm_flush*/
5 + 5 + /*uvd_v6_0_enc_ring_emit_fencex2 vm fence */ 1, /*uvd_v6_0_enc_ring_insert_end*/ .emit_ib_size = 5, /*uvd_v6_0_enc_ring_emit_ib*/
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx