diff options
author | Dave Airlie <airlied@linux.ie> | 2005-11-09 00:34:31 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 10:55:51 -0500 |
commit | d34d7ae266b23932809c43f115fda71fc5e5fcb1 (patch) | |
tree | 857be3fd86eca4456245bc881456e5ac1b46fd4e | |
parent | 969e9afd489514252a680914c6d8b9322c713eb4 (diff) |
[PATCH] drm fixup pci gart settings
Fix the PCIGART increment and add a cpu_to_le32 for ppc (untested)
Paulus was unsure if we need to cpu_to_le32 but the old code was definitely
wrong, so make it consistent and let the PPC guys figure it out later.
Signed-off-by: Dave Airlie <airlied@linux.ie>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Dave Jones <davej@codemonkey.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | drivers/char/drm/ati_pcigart.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/drm/ati_pcigart.c b/drivers/char/drm/ati_pcigart.c index 6d3fec160bff..efff0eec618c 100644 --- a/drivers/char/drm/ati_pcigart.c +++ b/drivers/char/drm/ati_pcigart.c | |||
@@ -203,10 +203,10 @@ int drm_ati_pcigart_init(drm_device_t * dev, drm_ati_pcigart_info * gart_info) | |||
203 | 203 | ||
204 | for (j = 0; j < (PAGE_SIZE / ATI_PCIGART_PAGE_SIZE); j++) { | 204 | for (j = 0; j < (PAGE_SIZE / ATI_PCIGART_PAGE_SIZE); j++) { |
205 | if (gart_info->is_pcie) | 205 | if (gart_info->is_pcie) |
206 | *pci_gart = (cpu_to_le32(page_base) >> 8) | 0xc; | 206 | *pci_gart = cpu_to_le32((page_base >> 8) | 0xc); |
207 | else | 207 | else |
208 | *pci_gart = cpu_to_le32(page_base); | 208 | *pci_gart = cpu_to_le32(page_base); |
209 | *pci_gart++; | 209 | pci_gart++; |
210 | page_base += ATI_PCIGART_PAGE_SIZE; | 210 | page_base += ATI_PCIGART_PAGE_SIZE; |
211 | } | 211 | } |
212 | } | 212 | } |