[PATCH] radeon: Fix KMS CP writeback on big endian machines.
Cédric Cano
ccano at interfaceconcept.com
Tue Apr 19 01:23:53 PDT 2011
Hi,
The following patch fixes interrupt acknowledge when write-back is
enabled on big endian platform.
The same should be applied on evergreen.
Cedric
Signed-off-by: Cedric Cano<ccano at interfaceconcept.com>
---
diff -Naur linux-2.6.38.2/drivers/gpu/drm/radeon/r600.c
linux-2.6.38.2/drivers/gpu/drm/radeon/r600.c
--- linux-2.6.38.2/drivers/gpu/drm/radeon/r600.c 2011-04-19
09:52:13.000000000 +0200
+++ linux-2.6.38.2/drivers/gpu/drm/radeon/r600.c 2011-03-27
20:37:20.000000000 +0200
@@ -3227,7 +3227,7 @@
u32 wptr, tmp;
if (rdev->wb.enabled)
- wptr = le32_to_cpu(rdev->wb.wb[R600_WB_IH_WPTR_OFFSET/4]);
+ wptr = rdev->wb.wb[R600_WB_IH_WPTR_OFFSET/4];
else
wptr = RREG32(IH_RB_WPTR);
More information about the dri-devel
mailing list