Skip to content

Commit

Permalink
drm/amdgpu/vcn: fix mmsch ctx table size
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Jane Jian authored and alexdeucher committed Apr 18, 2023
1 parent e82c98f commit 4de867f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4de867f

Please sign in to comment.