From: Alex Deucher Date: Wed, 2 Apr 2014 12:42:48 +0000 (-0400) Subject: drm/radeon: fix endian swap on hawaii clear state buffer setup X-Git-Tag: firefly_0821_release~176^2~4105^2~17^2~1 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a8947f576728a66bd3aac629bd8ca021a010c808;p=firefly-linux-kernel-4.4.55.git drm/radeon: fix endian swap on hawaii clear state buffer setup Need to swap on BE. Signed-off-by: Alex Deucher Reviewed-by: Christian König Cc: stable@vger.kernel.org --- diff --git a/drivers/gpu/drm/radeon/cik.c b/drivers/gpu/drm/radeon/cik.c index 62fefbbaf263..581f9e06d354 100644 --- a/drivers/gpu/drm/radeon/cik.c +++ b/drivers/gpu/drm/radeon/cik.c @@ -6542,8 +6542,8 @@ void cik_get_csb_buffer(struct radeon_device *rdev, volatile u32 *buffer) buffer[count++] = cpu_to_le32(0x00000000); break; case CHIP_HAWAII: - buffer[count++] = 0x3a00161a; - buffer[count++] = 0x0000002e; + buffer[count++] = cpu_to_le32(0x3a00161a); + buffer[count++] = cpu_to_le32(0x0000002e); break; default: buffer[count++] = cpu_to_le32(0x00000000);