OSDN Git Service

drm/amd/display: Convert memory from cpu to fw endianness correctly
authorWyatt Wood <wyatt.wood@amd.com>
Fri, 17 Apr 2020 18:10:23 +0000 (14:10 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 22 Apr 2020 22:11:48 +0000 (18:11 -0400)
commita42c1ed50aafc29efa54ddb0524c86b1697ff13a
tree539569a49ecd33eea51da6448c4579dc09a55ad2
parentaf031f078aeae3c6179a4618ce1aa8eda861ee10
drm/amd/display: Convert memory from cpu to fw endianness correctly

[Why]
Current code does not guarantee the correct endianness of memory being
copied to fw, specifically in the case where cpu isn't little endian.

[How]
Windows and Diags are always little endian, so we define a macro that
does nothing. Linux already defines this macro and will do the correct
endianness conversion.

Signed-off-by: Wyatt Wood <wyatt.wood@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Acked-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/power/power_helpers.c