mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
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>
This commit is contained in:
parent
5785e53ffa
commit
204ae24dc7
@ -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);
|
||||
|
||||
|
@ -3231,7 +3231,7 @@ static inline u32 r600_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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user