From: "Michel Dänzer" <michel@daenzer.net>
To: "Cédric Cano" <ccano@interfaceconcept.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] radeon: Fix KMS CP writeback on big endian machines.
Date: Tue, 19 Apr 2011 16:53:21 +0200 [thread overview]
Message-ID: <1303224801.19141.46.camel@thor.local> (raw)
In-Reply-To: <4DAD9E7C.10501@interfaceconcept.com>
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@daenzer.net>
--
Earthling Michel Dänzer | http://www.vmware.com
Libre software enthusiast | Debian, X and DRI developer
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2011-04-19 14:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-19 8:23 [PATCH] radeon: Fix KMS CP writeback on big endian machines Cédric Cano
2011-04-19 8:54 ` Michel Dänzer
2011-04-19 10:06 ` Cédric Cano
2011-04-19 14:38 ` Cédric Cano
2011-04-19 14:53 ` Michel Dänzer [this message]
2011-04-19 15:07 ` [PATCH] drm/radeon/kms: fix IH writeback on r6xx+ " Alex Deucher
-- strict thread matches above, loose matches on Subject: below --
2011-04-07 14:17 [PATCH] radeon: Fix KMS CP writeback " Michel Dänzer
2011-04-07 14:33 ` Alex Deucher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1303224801.19141.46.camel@thor.local \
--to=michel@daenzer.net \
--cc=ccano@interfaceconcept.com \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.