diff options
author | Roman Kapl <rka@sysgo.com> | 2017-10-30 11:56:13 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-10-31 18:24:59 -0400 |
commit | 4f626a4ac8f57ddabf06d03870adab91e463217f (patch) | |
tree | 96f38adcabc68d8934f4235ebe7bf77f6db400c3 /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | |
parent | bbb4d8d9ee81714b98c25df39a1ed90fa075e90a (diff) |
drm/radeon: fix atombios on big endian
The function for byteswapping the data send to/from atombios was buggy for
num_bytes not divisible by four. The function must be aware of the fact
that after byte-swapping the u32 units, valid bytes might end up after the
num_bytes boundary.
This patch was tested on kernel 3.12 and allowed us to sucesfully use
DisplayPort on and Radeon SI card. Namely it fixed the link training and
EDID readout.
The function is patched both in radeon and amd drivers, since the functions
and the fixes are identical.
Signed-off-by: Roman Kapl <rka@sysgo.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c')
0 files changed, 0 insertions, 0 deletions