linux/drivers/gpu/drm/amd/display/modules
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
..
color drm/amd/display: Internal refactoring to abstract color caps 2020-04-28 16:19:48 -04:00
freesync drm/amd/display: Change infopacket type programming 2020-04-22 18:11:47 -04:00
hdcp drm/amd/display: fix typo 2020-04-09 10:43:16 -04:00
inc drm/amd/display: Handle persistence in DM 2020-05-28 14:00:47 -04:00
info_packet drm/amd/display: move location of dmub_srv.h file 2020-05-05 13:12:33 -04:00
power drm/amd/display: Fix ABM memory alignment issue 2020-05-28 14:00:48 -04:00
vmid drm/amd/display: correct rn NUM_VMID 2020-05-21 12:48:43 -04:00