linux/arch/powerpc/platforms/ps3
Mark Nelson f9226d572d powerpc: Update remaining dma_mapping_ops to use map/unmap_page
After the merge of the 32 and 64bit DMA code, dma_direct_ops lost
their map/unmap_single() functions but gained map/unmap_page().  This
caused a problem for Cell because Cell's dma_iommu_fixed_ops called
the dma_direct_ops if the fixed linear mapping was to be used or the
iommu ops if the dynamic window was to be used.  So in order to fix
this problem we need to update the 64bit DMA code to use
map/unmap_page.

First, we update the generic IOMMU code so that iommu_map_single()
becomes iommu_map_page() and iommu_unmap_single() becomes
iommu_unmap_page().  Then we propagate these changes up through all
the callers of these two functions and in the process update all the
dma_mapping_ops so that they have map/unmap_page rahter than
map/unmap_single.  We can do this because on 64bit there is no HIGHMEM
memory so map/unmap_page ends up performing exactly the same function
as map/unmap_single, just taking different arguments.

This has no affect on drivers because the dma_map_single_attrs() just
ends up calling the map_page() function of the appropriate
dma_mapping_ops and similarly the dma_unmap_single_attrs() calls
unmap_page().

This fixes an oops on Cell blades, which oops on boot without this
because they call dma_direct_ops.map_single, which is NULL.

Signed-off-by: Mark Nelson <markn@au1.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2008-10-31 16:13:48 +11:00
..
device-init.c powerpc/ps3: Add a sub-match id to ps3_system_bus 2008-07-22 10:39:33 +10:00
exports.c [POWERPC] ps3: add lv1 hvcalls 2006-12-04 20:40:44 +11:00
htab.c powerpc/ps3: Rework htab code to remove ioremap 2008-08-26 10:24:46 +10:00
hvcall.S [POWERPC] ps3: add lv1 hvcalls 2006-12-04 20:40:44 +11:00
interrupt.c [POWERPC] PS3: Make ps3_virq_setup and ps3_virq_destroy static 2008-05-02 15:00:44 +10:00
Kconfig powerpc: pci config cleanup 2008-07-16 17:57:34 -05:00
Makefile [POWERPC] PS3: Device registration routines. 2007-06-28 19:16:43 +10:00
mm.c [POWERPC] PS3: Fix memory hotplug 2008-05-23 16:15:29 +10:00
os-area.c [POWERPC] Add include of linux/of.h to os-area.c 2008-04-24 20:57:33 +10:00
platform.h [POWERPC] PS3: Add logical performance monitor repository routines 2008-01-25 22:52:52 +11:00
repository.c [POWERPC] PS3: Add logical performance monitor repository routines 2008-01-25 22:52:52 +11:00
setup.c powerpc/ps3: Rework htab code to remove ioremap 2008-08-26 10:24:46 +10:00
smp.c powerpc: convert to generic helpers for IPI function calls 2008-06-26 11:22:13 +02:00
spu.c powerpc/ps3: Fix ioremap of spu shadow regs 2008-08-26 10:24:46 +10:00
system-bus.c powerpc: Update remaining dma_mapping_ops to use map/unmap_page 2008-10-31 16:13:48 +11:00
time.c [POWERPC] PS3: Add os-area rtc_diff set/get routines 2007-10-09 21:01:58 +10:00