bianbu-linux-6.6/drivers/gpu/drm/amd/display
Wyatt Wood 1db1469592 drm/amd/display: Fix ABM memory alignment issue
[Why]
Due to packing of abm_config_table, memory addresses aren't aligned to
32 bit boundary dmcub prefers.  Therefore when using pointers to this
structure, it's possible that dmcub will automatically align the data
read from that address, yielding incorrect values.

[How]
Instead of packing 1 byte boundary, explicitly pack values to 4 byte
boundary. Since there is a dependency on the existing iram table
structure on driver side, we must copy to a second structure, which is
aligned correctly, before passing to fw.

Signed-off-by: Wyatt Wood <wyatt.wood@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2020-05-28 14:00:48 -04:00
..
amdgpu_dm drm/amd/display: Don't pass invalid fw_bss_data pointer into DMUB srv 2020-05-28 14:00:48 -04:00
dc drm/amd/display: FW release 1.0.10 2020-05-28 14:00:48 -04:00
dmub drm/amd/display: FW release 1.0.10 2020-05-28 14:00:48 -04:00
include drm/amd/display: query hdcp capability during link detect 2020-04-09 10:43:17 -04:00
modules drm/amd/display: Fix ABM memory alignment issue 2020-05-28 14:00:48 -04:00
Kconfig drm: amd/display: fix Kconfig help text 2020-04-23 15:06:41 -04:00
Makefile drm/amd/display: Drop CONFIG_DRM_AMD_DC_DMUB guards 2019-11-13 15:29:42 -05:00
TODO drm/amd/display: Convert remaining loggers off dc_logger 2018-07-13 14:48:42 -05:00