drm: fix for non-coherent DMA PowerPC
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 28 Mar 2008 21:23:07 +0000 (14:23 -0700)
committerDave Airlie <airlied@linux.ie>
Sat, 29 Mar 2008 21:57:57 +0000 (07:57 +1000)
commit6876b3bacaaa4c73fb8752b47c84b2b7fad5422a
treeb3f0a1795a3c0c66de99642ba0e1c233c872823c
parent2b46278b6af0a4df43016f01a0741d8e0a76bfd4
drm: fix for non-coherent DMA PowerPC

This patch fixes bits of the DRM so to make the radeon DRI work on
non-cache coherent PCI DMA variants of the PowerPC processors.

It moves the few places that needs change to wrappers to that
other architectures with similar issues can easily add their
own changes to those wrappers, at least until we have more useful
generic kernel API.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: "Luck, Tony" <tony.luck@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/ati_pcigart.c
drivers/char/drm/drm_scatter.c
drivers/char/drm/drm_vm.c