Skip to content

Commit f74f19c

Browse files
Lin.Caoalexdeucher
authored andcommitted
drm/amdgpu: save VCN instances init info before jpeg init
JPEG init header will overwirte vcn init header info which will loss some debug information Signed-off-by: Lin.Cao <lincao12@amd.com> Reviewed-by: Jingwen Chen <Jingwen.Chen2@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 029f9f8 commit f74f19c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,10 @@ static int jpeg_v4_0_start_sriov(struct amdgpu_device *adev)
431431
end.cmd_header.command_type =
432432
MMSCH_COMMAND__END;
433433

434+
size = sizeof(struct mmsch_v4_0_init_header);
435+
table_loc = (uint32_t *)table->cpu_addr;
436+
memcpy(&header, (void *)table_loc, size);
437+
434438
header.version = MMSCH_VERSION;
435439
header.total_size = RREG32_SOC15(VCN, 0, regMMSCH_VF_CTX_SIZE);
436440

0 commit comments

Comments
 (0)