Hi, Sorry, I've done a patch in reverse mode :(. I repost the patch for r600 and evergreen write back correction for big endian platforms. Cedric Signed-off-by: Cedric Cano <ccano at interfaceconcept.com> --- diff -Nuar linux-2.6.38.2/drivers/gpu/drm/radeon/evergreen.c linux-2.6.38.2/drivers/gpu/drm/radeon/evergreen.c --- linux-2.6.38.2/drivers/gpu/drm/radeon/evergreen.cÂÂÂ 2011-03-27 20:37:20.000000000 +0200 +++ linux-2.6.38.2/drivers/gpu/drm/radeon/evergreen.cÂÂÂ 2011-04-19 11:39:39.000000000 +0200 @@ -2587,7 +2587,7 @@ ÂÂÂÂ 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); Â diff -Nuar 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-03-27 20:37:20.000000000 +0200 +++ linux-2.6.38.2/drivers/gpu/drm/radeon/r600.cÂÂÂ 2011-04-19 09:52:13.000000000 +0200 @@ -3227,7 +3227,7 @@ ÂÂÂÂ 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); Â Le 19/04/2011 10:54, Michel DÃnzer a Ãcrit : > On Die, 2011-04-19 at 10:23 +0200, CÃdric Cano wrote: >> >> The following patch fixes interrupt acknowledge when write-back is >> enabled on big endian platform. >> >> The same should be applied on evergreen. > > Can you include that in the patch? I somehow managed to miss these in > my previous patch for older chips. :( > > |
_______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/dri-devel