drm/amdgpu: fix emit frame size and comments for jpeg
authorBoyuan Zhang <boyuan.zhang@amd.com>
Wed, 18 Jul 2018 20:29:29 +0000 (16:29 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:10:11 +0000 (11:10 -0500)
Fix vcn jpeg ring emit fence size in dword, and fix the naming in comments.

Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com>
Acked-by: Leo Liu <leo.liu at amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c

index aa21f667ff475686c29e89249fc516446ca64a36..2664bb2c47c3a49748d5721c08f146835d5c12fb 100644 (file)
@@ -1738,10 +1738,10 @@ static const struct amdgpu_ring_funcs vcn_v1_0_jpeg_ring_vm_funcs = {
                6 + 6 + /* hdp invalidate / flush */
                SOC15_FLUSH_GPU_TLB_NUM_WREG * 6 +
                SOC15_FLUSH_GPU_TLB_NUM_REG_WAIT * 8 +
-               8 + /* vcn_v1_0_dec_ring_emit_vm_flush */
-               14 + 14 + /* vcn_v1_0_dec_ring_emit_fence x2 vm fence */
+               8 + /* vcn_v1_0_jpeg_ring_emit_vm_flush */
+               26 + 26 + /* vcn_v1_0_jpeg_ring_emit_fence x2 vm fence */
                6,
-       .emit_ib_size = 22, /* vcn_v1_0_dec_ring_emit_ib */
+       .emit_ib_size = 22, /* vcn_v1_0_jpeg_ring_emit_ib */
        .emit_ib = vcn_v1_0_jpeg_ring_emit_ib,
        .emit_fence = vcn_v1_0_jpeg_ring_emit_fence,
        .emit_vm_flush = vcn_v1_0_jpeg_ring_emit_vm_flush,