diff options
| author | Olof Johansson <olof@austin.ibm.com> | 2005-01-07 21:40:27 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@evo.osdl.org> | 2005-01-07 21:40:27 -0800 |
| commit | e6617020d82e7d17ee3eb9bbf9afa5cc0a572fa8 (patch) | |
| tree | 70a28fc5e977a9d6d8316e38499e6a2c63c72c35 /drivers/misc/ibmasm/module.c | |
| parent | 670e1a68e7112327a891705ee63b6deb5d4a432e (diff) | |
[PATCH] ppc64: IOMMU cleanups: Main cleanup patch
Earlier cleanup efforts of the ppc64 IOMMU code have mostly been targeted
at simplifying the allocation schemes and modularising things for the
various platforms. The IOMMU init functions are still a mess. This is an
attempt to clean them up and make them somewhat easier to follow.
The new rules are:
1. iommu_init_early_<arch> is called before any PCI/VIO init is done
2. The pcibios fixup routines will call the iommu_{bus,dev}_setup functions
appropriately as devices are added.
TCE space allocation has changed somewhat:
* On LPARs, nothing is really different. ibm,dma-window properties are still
used to determine table sizes.
* On pSeries SMP-mode (non-LPAR), the full TCE space per PHB is split up
in 256MB chunks, each handed out to one child bus/slot as needed. This
makes current max 7 child buses per PHB, something we're currently below
on all machine models I'm aware of.
* Exception to the above: Pre-POWER4 machines with Python PHBs have a full
GB of DMA space allocated at the PHB level, since there are no EADS-level
tables on such systems.
* PowerMac and Maple still work like before: all buses/slots share one table.
* VIO works like before, ibm,my-dma-window is used like before.
* iSeries has not been touched much at all, besides the changed unit of
the it_size variable in struct iommu_table.
Other things changed:
* Powermac and maple PCI/IOMMU inits have been changed a bit to conform to
the new init structure
* pci_dma_direct.c has been renamed pci_direct_iommu.c to match
pci_iommu.c (see separate patch)
* Likewise, a couple of the pci direct init functions have been renamed.
Signed-off-by: Olof Johansson <olof@austin.ibm.com>
Acked-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/misc/ibmasm/module.c')
0 files changed, 0 insertions, 0 deletions
