diff options
author | Cédric Cano <ccano@interfaceconcept.com> | 2011-04-19 11:07:13 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-04-20 10:45:21 +1000 |
commit | 204ae24dc71f794aaad4df48a0083dfedc711afb (patch) | |
tree | 1a16b51fbddad44ccdcfac2b9db17d1b930e78b3 /drivers/gpu/drm/radeon/evergreen.c | |
parent | 5785e53ffa73f77fb19e378c899027afc07272bc (diff) | |
download | lwn-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.c | 2 |
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); |