drm/amdgpu: save VCN instances init info before jpeg init
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c +4 -0
@@ -431,6 +431,10 @@ static int jpeg_v4_0_start_sriov(struct amdgpu_device *adev) end.cmd_header.command_type =MMSCH_COMMAND__END ; + size =sizeof (struct mmsch_v4_0_init_header ); + table_loc = (uint32_t *)table->cpu_addr; +memcpy (&header, (void *)table_loc, size); + header.version =MMSCH_VERSION ; header.total_size =RREG32_SOC15 (VCN ,0 , regMMSCH_VF_CTX_SIZE);
Signature · 1 line
2.25.1
Reviewed-by Jingwen Chen <[email protected]>
Best Regards,
JingWen Chen
Quoted 23 lines · Lin.Cao
JPEG init header will overwirte vcn init header info which will loss some debug information
Signed-off-by Lin.Cao <[email protected]>--- drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c +4
-0@@ -431,6 +431,10 @@ static int jpeg_v4_0_start_sriov(struct amdgpu_device *adev) end.cmd_header.command_type =MMSCH_COMMAND__END ; + size =sizeof (struct mmsch_v4_0_init_header ); + table_loc = (uint32_t *)table->cpu_addr; +memcpy (&header, (void *)table_loc, size); + header.version =MMSCH_VERSION ; header.total_size =RREG32_SOC15 (VCN ,0 , regMMSCH_VF_CTX_SIZE);