Skip to content

Commit 485432d

Browse files
Lijo Lazaralexdeucher
authored andcommitted
drm/amdgpu: Add empty HDP flush function to VCN v4.0.3
VCN 4.0.3 does not HDP flush with RRMT enabled. Instead, mmsch will do the HDP flush. This change is necessary for VCN v4.0.3, no need for backward compatibility Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Signed-off-by: Jane Jian <Jane.Jian@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 49cfaeb)
1 parent 23df349 commit 485432d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1375,6 +1375,13 @@ static uint64_t vcn_v4_0_3_unified_ring_get_wptr(struct amdgpu_ring *ring)
13751375
regUVD_RB_WPTR);
13761376
}
13771377

1378+
static void vcn_v4_0_3_ring_emit_hdp_flush(struct amdgpu_ring *ring)
1379+
{
1380+
/* VCN engine access for HDP flush doesn't work when RRMT is enabled.
1381+
* This is a workaround to avoid any HDP flush through VCN ring.
1382+
*/
1383+
}
1384+
13781385
/**
13791386
* vcn_v4_0_3_unified_ring_set_wptr - set enc write pointer
13801387
*
@@ -1415,6 +1422,7 @@ static const struct amdgpu_ring_funcs vcn_v4_0_3_unified_ring_vm_funcs = {
14151422
.emit_ib = vcn_v2_0_enc_ring_emit_ib,
14161423
.emit_fence = vcn_v2_0_enc_ring_emit_fence,
14171424
.emit_vm_flush = vcn_v2_0_enc_ring_emit_vm_flush,
1425+
.emit_hdp_flush = vcn_v4_0_3_ring_emit_hdp_flush,
14181426
.test_ring = amdgpu_vcn_enc_ring_test_ring,
14191427
.test_ib = amdgpu_vcn_unified_ring_test_ib,
14201428
.insert_nop = amdgpu_ring_insert_nop,

0 commit comments

Comments
 (0)