aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJane Jian <Jane.Jian@amd.com>2023-04-13 10:49:06 +0800
committerAlex Deucher <alexander.deucher@amd.com>2023-04-18 16:28:50 -0400
commit4de867fc237487ce2951a8231d7390237d3f3be8 (patch)
treec0092d1ac2554f720117688260aa069c33ad358e
parentMerge tag 'amd-drm-next-6.4-2023-04-14' of https://gitlab.freedesktop.org/agd5f/linux into drm-next (diff)
downloadwireguard-linux-4de867fc237487ce2951a8231d7390237d3f3be8.tar.xz
wireguard-linux-4de867fc237487ce2951a8231d7390237d3f3be8.zip
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 <Jane.Jian@amd.com> Reviewed-by: JingWen Chen <JingWen.Chen2@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-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;