summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/radeon/evergreen.c
diff options
context:
space:
mode:
authorCédric Cano <ccano@interfaceconcept.com>2011-04-19 11:07:13 -0400
committerDave Airlie <airlied@redhat.com>2011-04-20 10:45:21 +1000
commit204ae24dc71f794aaad4df48a0083dfedc711afb (patch)
tree1a16b51fbddad44ccdcfac2b9db17d1b930e78b3 /drivers/gpu/drm/radeon/evergreen.c
parent5785e53ffa73f77fb19e378c899027afc07272bc (diff)
downloadlwn-204ae24dc71f794aaad4df48a0083dfedc711afb.tar.gz
lwn-204ae24dc71f794aaad4df48a0083dfedc711afb.zip
drm/radeon/kms: fix IH writeback on r6xx+ on big endian machines
agd5f: fix commit message. Signed-off-by: Cedric Cano <ccano@interfaceconcept.com> Reviewed-by: Michel Dänzer <michel@daenzer.net> Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/evergreen.c')
-rw-r--r--drivers/gpu/drm/radeon/evergreen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c
index 43fd01674489..e9bc135d9189 100644
--- a/drivers/gpu/drm/radeon/evergreen.c
+++ b/drivers/gpu/drm/radeon/evergreen.c
@@ -2580,7 +2580,7 @@ static inline u32 evergreen_get_ih_wptr(struct radeon_device *rdev)
u32 wptr, tmp;
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
wptr = RREG32(IH_RB_WPTR);