aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJane Jian <[email protected]>2023-04-13 10:49:06 +0800
committerAlex Deucher <[email protected]>2023-04-18 16:28:50 -0400
commit4de867fc237487ce2951a8231d7390237d3f3be8 (patch)
treec0092d1ac2554f720117688260aa069c33ad358e
parente82c98f2ca439356d5595ba8c9cd782f993f6f8c (diff)
drm/amdgpu/vcn: fix mmsch ctx table size
add jpeg table size to ctx table size rather than override it Signed-off-by: Jane Jian <[email protected]> Reviewed-by: JingWen Chen <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c b/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c
index a6ad678fd507..77e1e64aa1d1 100644
--- a/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c
@@ -430,7 +430,7 @@ static int jpeg_v4_0_start_sriov(struct amdgpu_device *adev)
MMSCH_COMMAND__END;
header.version = MMSCH_VERSION;
- header.total_size = sizeof(struct mmsch_v4_0_init_header) >> 2;
+ header.total_size = RREG32_SOC15(VCN, 0, regMMSCH_VF_CTX_SIZE);
header.jpegdec.init_status = 0;
header.jpegdec.table_offset = 0;