linux-stable/arch/powerpc/platforms/iseries
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
..
call_hpt.h [POWERPC] Kill typedef-ed structs for hash PTEs and BATs 2007-06-14 22:30:16 +10:00
call_pci.h [PATCH] powerpc: reintroduce HvCallPci_configLoad32 2006-05-24 16:08:56 +10:00
call_sm.h merge filename and modify references to iseries/hv_types.h 2005-11-02 13:46:07 +11:00
dt.c [POWERPC] iSeries: Move viodasd probing 2007-10-11 20:40:48 +10:00
exception.h [POWERPC] Exception numbers are not relevant to iSeries 2007-08-22 16:48:36 +10:00
exception.S powerpc: Use LOAD_REG_IMMEDIATE only for constants on 64-bit 2008-09-15 11:08:35 -07:00
htab.c [POWERPC] Fix iSeries_hpte_insert prototype 2007-10-17 22:30:08 +10:00
hvcall.S
hvlog.c [PATCH] ppc64: support 64k pages 2005-11-06 16:56:47 -08:00
hvlpconfig.c [POWERPC] iseries: Move ItLpNaca into platforms/iseries 2006-07-13 18:42:52 +10:00
iommu.c powerpc: Update remaining dma_mapping_ops to use map/unmap_page 2008-10-31 16:13:48 +11:00
ipl_parms.h [POWERPC] iSeries: Localise and constify some iSeries data 2008-04-15 21:21:25 +10:00
irq.c [POWERPC] Invert null match behaviour for irq_hosts 2007-09-14 01:33:20 +10:00
irq.h [POWERPC] iSeries_init_IRQ non-PCI tidy 2007-11-08 14:15:33 +11:00
it_exp_vpd_panel.h [POWERPC] iseries: Make ItExtVpdPanel private to iSeries 2006-07-13 18:42:29 +10:00
it_lp_naca.h [POWERPC] Typo fixes interrrupt -> interrupt 2007-08-17 11:01:51 +10:00
Kconfig powerpc/iseries: remove the old viocons driver 2008-08-07 18:07:10 -07:00
ksyms.c [POWERPC] Lazy interrupt disabling for 64-bit machines 2006-10-16 16:31:36 +10:00
lpardata.c [POWERPC] iSeries: Localise and constify some iSeries data 2008-04-15 21:21:25 +10:00
lpevents.c powerpc: use non-racy method for proc entries creation 2008-04-29 08:06:22 -07:00
main_store.h [POWERPC] iseries: remove some gcc 4.1 warnings 2006-08-25 13:27:35 +10:00
Makefile [POWERPC] iSeries: Merge vpdinfo.c into pci.c 2007-12-11 13:46:11 +11:00
mf.c powerpc: Use bcd2bin/bin2bcd 2008-08-20 16:34:58 +10:00
misc.S [POWERPC] Lazy interrupt disabling for 64-bit machines 2006-10-16 16:31:36 +10:00
naca.h [POWERPC] iSeries: Localise and constify some iSeries data 2008-04-15 21:21:25 +10:00
pci.c [POWERPC] arch/powerpc/platforms/iseries/pci.c: Use time_* macros 2008-03-26 08:44:05 +11:00
pci.h [POWERPC] fix iSeries PCI resource management 2007-12-20 16:18:10 +11:00
proc.c powerpc: use non-racy method for proc entries creation 2008-04-29 08:06:22 -07:00
processor_vpd.h
release_data.h [POWERPC] iSeries: Localise and constify some iSeries data 2008-04-15 21:21:25 +10:00
setup.c nohz: prevent tick stop outside of the idle loop 2008-07-18 18:10:28 +02:00
setup.h [POWERPC] iSeries: Fix sparse warnings in setup.c 2007-12-03 13:56:27 +11:00
smp.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
smp.h [POWERPC] Fix iseries/smp.c for irq breakage 2006-10-07 10:10:30 +10:00
spcomm_area.h [POWERPC] iSeries: Localise and constify some iSeries data 2008-04-15 21:21:25 +10:00
vio.c [POWERPC] free_property() must not be __init 2008-02-14 22:11:02 +11:00
viopath.c powerpc: use non-racy method for proc entries creation 2008-04-29 08:06:22 -07:00
vpd_areas.h [POWERPC] iSeries: Localise and constify some iSeries data 2008-04-15 21:21:25 +10:00