diff options
author | Cédric Cano <ccano@interfaceconcept.com> | 2011-04-19 11:07:13 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-04-19 20:45:21 -0400 |
commit | 204ae24dc71f794aaad4df48a0083dfedc711afb (patch) | |
tree | 1a16b51fbddad44ccdcfac2b9db17d1b930e78b3 /drivers/gpu/drm | |
parent | 5785e53ffa73f77fb19e378c899027afc07272bc (diff) |
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')
-rw-r--r-- | drivers/gpu/drm/radeon/evergreen.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/r600.c | 2 |
2 files changed, 2 insertions, 2 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) | |||
2580 | u32 wptr, tmp; | 2580 | u32 wptr, tmp; |
2581 | 2581 | ||
2582 | if (rdev->wb.enabled) | 2582 | if (rdev->wb.enabled) |
2583 | wptr = rdev->wb.wb[R600_WB_IH_WPTR_OFFSET/4]; | 2583 | wptr = le32_to_cpu(rdev->wb.wb[R600_WB_IH_WPTR_OFFSET/4]); |
2584 | else | 2584 | else |
2585 | wptr = RREG32(IH_RB_WPTR); | 2585 | wptr = RREG32(IH_RB_WPTR); |
2586 | 2586 | ||
diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c index 15d58292677a..6f27593901c7 100644 --- a/drivers/gpu/drm/radeon/r600.c +++ b/drivers/gpu/drm/radeon/r600.c | |||
@@ -3231,7 +3231,7 @@ static inline u32 r600_get_ih_wptr(struct radeon_device *rdev) | |||
3231 | u32 wptr, tmp; | 3231 | u32 wptr, tmp; |
3232 | 3232 | ||
3233 | if (rdev->wb.enabled) | 3233 | if (rdev->wb.enabled) |
3234 | wptr = rdev->wb.wb[R600_WB_IH_WPTR_OFFSET/4]; | 3234 | wptr = le32_to_cpu(rdev->wb.wb[R600_WB_IH_WPTR_OFFSET/4]); |
3235 | else | 3235 | else |
3236 | wptr = RREG32(IH_RB_WPTR); | 3236 | wptr = RREG32(IH_RB_WPTR); |
3237 | 3237 | ||