diff options
author | 2023-10-10 16:58:31 +0800 | |
---|---|---|
committer | 2023-10-13 11:32:34 -0400 | |
commit | f74f19c4407f4ebd2a98a1d23eb75c7c4b05f272 (patch) | |
tree | 37f21ad9ab584980ed36ffec530ba456b6741254 /drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c | |
parent | Revert "drm/amd/display: Skip entire amdgpu_dm build if !CONFIG_DRM_AMD_DC" (diff) | |
download | wireguard-linux-f74f19c4407f4ebd2a98a1d23eb75c7c4b05f272.tar.xz wireguard-linux-f74f19c4407f4ebd2a98a1d23eb75c7c4b05f272.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c b/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c index a3768aefb6b6..bc38b90f8cf8 100644 --- a/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c +++ b/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c @@ -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); |