drm/amdgpu: Retire un-used write in JPEG v4.0.3
Subsystems (2)
PATCH 1/1 drm/amdgpu: Retire un-used write in JPEG v4.0.3
write OP of HDP_DEBUG1(0x3fbc) is no longer functional, so remove it.
Signed-off-by Jane Jian <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-)
drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c +1 -9
@@ -743,14 +743,6 @@ void jpeg_v4_0_3_dec_ring_emit_fence(struct amdgpu_ring *ring, u64 addr, u64 seqamdgpu_ring_write (ring,PACKETJ (0 ,0 ,0 ,PACKETJ_TYPE6 ));amdgpu_ring_write (ring,0 ); -amdgpu_ring_write (ring,PACKETJ (regUVD_JRBC_EXTERNAL_REG_INTERNAL_OFFSET, -0 ,0 ,PACKETJ_TYPE0 )); -amdgpu_ring_write (ring,0x3fbc ); - -amdgpu_ring_write (ring,PACKETJ (JRBC_DEC_EXTERNAL_REG_WRITE_ADDR , -0 ,0 ,PACKETJ_TYPE0 )); -amdgpu_ring_write (ring,0x1 ); -amdgpu_ring_write (ring,PACKETJ (0 ,0 ,0 ,PACKETJ_TYPE6 ));amdgpu_ring_write (ring,0 );
@@ -1088,7 +1080,7 @@ static const struct amdgpu_ring_funcs jpeg_v4_0_3_dec_ring_vm_funcs = {SOC15_FLUSH_GPU_TLB_NUM_WREG *6 +SOC15_FLUSH_GPU_TLB_NUM_REG_WAIT *8 +8 +/* jpeg_v4_0_3_dec_ring_emit_vm_flush */ -22 +22 +/* jpeg_v4_0_3_dec_ring_emit_fence x2 vm fence */ +18 +18 +/* jpeg_v4_0_3_dec_ring_emit_fence x2 vm fence */ 8 + 16, .emit_ib_size = 22, /* jpeg_v4_0_3_dec_ring_emit_ib */ .emit_ib = jpeg_v4_0_3_dec_ring_emit_ib,
Signature · 1 line
2.34.1
Quoted 2 lines · Jane Jian
write OP of
HDP_DEBUG1(0x3fbc)is no longer functional, so remove it.
You may copy the title/description from the one I shared -
Subj: Remove unneeded write in JPEG v4.0.3
Desc:
HDP_DEBUG1(offset = 0x3fbc) is no longer functional, remove the redundant write.
Quoted 1 line
Signed-off-by Jane Jian <[email protected]>
Reviewed-by Lijo Lazar <[email protected]>
Thanks,
Lijo
Quoted 32 lines
--- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-)drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c +1
-9@@ -743,14 +743,6 @@ void jpeg_v4_0_3_dec_ring_emit_fence(struct amdgpu_ring *ring, u64 addr, u64 seqamdgpu_ring_write (ring,PACKETJ (0 ,0 ,0 ,PACKETJ_TYPE6 ));amdgpu_ring_write (ring,0 ); -amdgpu_ring_write (ring,PACKETJ (regUVD_JRBC_EXTERNAL_REG_INTERNAL_OFFSET, -0 ,0 ,PACKETJ_TYPE0 )); -amdgpu_ring_write (ring,0x3fbc ); - -amdgpu_ring_write (ring,PACKETJ (JRBC_DEC_EXTERNAL_REG_WRITE_ADDR , -0 ,0 ,PACKETJ_TYPE0 )); -amdgpu_ring_write (ring,0x1 ); -amdgpu_ring_write (ring,PACKETJ (0 ,0 ,0 ,PACKETJ_TYPE6 ));amdgpu_ring_write (ring,0 );@@ -1088,7 +1080,7 @@ static const struct amdgpu_ring_funcs jpeg_v4_0_3_dec_ring_vm_funcs = {SOC15_FLUSH_GPU_TLB_NUM_WREG *6 +SOC15_FLUSH_GPU_TLB_NUM_REG_WAIT *8 +8 +/* jpeg_v4_0_3_dec_ring_emit_vm_flush */ -22 +22 +/* jpeg_v4_0_3_dec_ring_emit_fence x2 vm fence */ +18 +18 +/* jpeg_v4_0_3_dec_ring_emit_fence x2 vm fence */ 8 + 16, .emit_ib_size = 22, /* jpeg_v4_0_3_dec_ring_emit_ib */ .emit_ib = jpeg_v4_0_3_dec_ring_emit_ib,