Skip to content

Commit 8a84d2a

Browse files
Jane Jianalexdeucher
authored andcommitted
drm/amdgpu: Remove unneeded write in JPEG v4.0.3
HDP_DEBUG1(offset = 0x3fbc) is no longer functional, remove the redundant write. Signed-off-by: Jane Jian <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 8c50bf9 commit 8a84d2a

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -745,14 +745,6 @@ void jpeg_v4_0_3_dec_ring_emit_fence(struct amdgpu_ring *ring, u64 addr, u64 seq
745745
amdgpu_ring_write(ring, PACKETJ(0, 0, 0, PACKETJ_TYPE6));
746746
amdgpu_ring_write(ring, 0);
747747

748-
amdgpu_ring_write(ring, PACKETJ(regUVD_JRBC_EXTERNAL_REG_INTERNAL_OFFSET,
749-
0, 0, PACKETJ_TYPE0));
750-
amdgpu_ring_write(ring, 0x3fbc);
751-
752-
amdgpu_ring_write(ring, PACKETJ(JRBC_DEC_EXTERNAL_REG_WRITE_ADDR,
753-
0, 0, PACKETJ_TYPE0));
754-
amdgpu_ring_write(ring, 0x1);
755-
756748
amdgpu_ring_write(ring, PACKETJ(0, 0, 0, PACKETJ_TYPE6));
757749
amdgpu_ring_write(ring, 0);
758750

@@ -1090,7 +1082,7 @@ static const struct amdgpu_ring_funcs jpeg_v4_0_3_dec_ring_vm_funcs = {
10901082
SOC15_FLUSH_GPU_TLB_NUM_WREG * 6 +
10911083
SOC15_FLUSH_GPU_TLB_NUM_REG_WAIT * 8 +
10921084
8 + /* jpeg_v4_0_3_dec_ring_emit_vm_flush */
1093-
22 + 22 + /* jpeg_v4_0_3_dec_ring_emit_fence x2 vm fence */
1085+
18 + 18 + /* jpeg_v4_0_3_dec_ring_emit_fence x2 vm fence */
10941086
8 + 16,
10951087
.emit_ib_size = 22, /* jpeg_v4_0_3_dec_ring_emit_ib */
10961088
.emit_ib = jpeg_v4_0_3_dec_ring_emit_ib,

0 commit comments

Comments
 (0)