projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e82c98f
)
drm/amdgpu/vcn: fix mmsch ctx table size
author
Jane Jian
<Jane.Jian@amd.com>
Thu, 13 Apr 2023 02:49:06 +0000
(10:49 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Tue, 18 Apr 2023 20:28:50 +0000
(16:28 -0400)
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>
drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c
b/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c
index
a6ad678
..
77e1e64
100644
(file)
--- 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;