Skip to contentSkip to conversation

drm/amdgpu:Fixed wrong emit frame size for enc

PATCH In review James Zhu 2 participants 3 messages Feb 27, 2018 2 messages not in the archive

Subsystems (2)
lore
Share & tools
lore

James Zhu

author
#0 lore raw

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
index a3e64e2..f26f515 100644
@@ -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

#2 lore raw

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_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 +0 -0
index a3e64e2..f26f515 100644

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

#4 lore raw

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_flush has 5 amdgpu_ring_write

---
  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
index a3e64e2..f26f515 100644
@@ -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_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