Re: [PATCH] radeon: Fix KMS CP writeback on big endian machines.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Die, 2011-04-19 at 16:38 +0200, CÃdric Cano wrote:
> 
> Sorry, I've done a patch in reverse mode :(.

I can recommend using Git. :)


> 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);

Reviewed-by: Michel DÃnzer <michel@xxxxxxxxxxx>


-- 
Earthling Michel DÃnzer           |                http://www.vmware.com
Libre software enthusiast         |          Debian, X and DRI developer
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel



[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux