]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: Fix DMUB meta offset for new load method
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Wed, 22 Apr 2020 22:07:49 +0000 (18:07 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Apr 2020 20:17:17 +0000 (16:17 -0400)
commitd561754132e1ea4bc275977d5164719bb1b876f9
tree63924f4f06c90d6bbf52c740455f58b75abd147b
parent1dfedb39d38f813357885e19badd1971c17f79a7
drm/amd/display: Fix DMUB meta offset for new load method

[Why]
The new metadata offset is located at the end of the firmware binary
without any additional padding.

Firmware state is currently larger than 1024 bytes so new firmware state
will hang when trying to access any data above 1024 bytes.

[How]
Specify the correct offset based on legacy vs new loading method.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Yongqiang Sun <yongqiang.sun@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c