drm/radeon: fix endian swap on hawaii clear state buffer setup
Subsystems (2)
PATCH 1/1 drm/radeon: fix endian swap on hawaii clear state buffer setup
Need to swap on BE.
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/radeon/cik.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/radeon/cik.c +2 -2
@@ -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 );
Signature · 1 line
1.8.3.1
PATCH 1/1 drm/radeon: fix typo in spectre_golden_registers
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/radeon/cik.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/radeon/cik.c +1 -1
@@ -1095,7 +1095,7 @@ static const u32 spectre_golden_registers[] =0x8a14 ,0xf000003f ,0x00000007 ,0x8b24 ,0xffffffff ,0x00ffffff ,0x28350 ,0x3f3f3fff ,0x00000082 , -0x28355 ,0x0000003f ,0x00000000 , +0x28354 ,0x0000003f ,0x00000000 ,0x3e78 ,0x00000001 ,0x00000002 ,0x913c ,0xffff03df ,0x00000004 , 0xc768, 0x00000008, 0x00000008,
Signature · 1 line
1.8.3.1