Commit 204ae24d authored by Cédric Cano's avatar Cédric Cano Committed by Dave Airlie

drm/radeon/kms: fix IH writeback on r6xx+ on big endian machines

agd5f: fix commit message.
Signed-off-by: default avatarCedric Cano <ccano@interfaceconcept.com>
Reviewed-by: default avatarMichel Dänzer <michel@daenzer.net>
Signed-off-by: default avatarAlex Deucher <alexdeucher@gmail.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 5785e53f
...@@ -2580,7 +2580,7 @@ static inline u32 evergreen_get_ih_wptr(struct radeon_device *rdev) ...@@ -2580,7 +2580,7 @@ static inline u32 evergreen_get_ih_wptr(struct radeon_device *rdev)
u32 wptr, tmp; u32 wptr, tmp;
if (rdev->wb.enabled) if (rdev->wb.enabled)
wptr = rdev->wb.wb[R600_WB_IH_WPTR_OFFSET/4]; wptr = le32_to_cpu(rdev->wb.wb[R600_WB_IH_WPTR_OFFSET/4]);
else else
wptr = RREG32(IH_RB_WPTR); wptr = RREG32(IH_RB_WPTR);
......
...@@ -3231,7 +3231,7 @@ static inline u32 r600_get_ih_wptr(struct radeon_device *rdev) ...@@ -3231,7 +3231,7 @@ static inline u32 r600_get_ih_wptr(struct radeon_device *rdev)
u32 wptr, tmp; u32 wptr, tmp;
if (rdev->wb.enabled) if (rdev->wb.enabled)
wptr = rdev->wb.wb[R600_WB_IH_WPTR_OFFSET/4]; wptr = le32_to_cpu(rdev->wb.wb[R600_WB_IH_WPTR_OFFSET/4]);
else else
wptr = RREG32(IH_RB_WPTR); wptr = RREG32(IH_RB_WPTR);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment