mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 20:46:48 +02:00
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>
This commit is contained in:
parent
029f9f8ae5
commit
f74f19c440
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user