diff options
author | FUJITA Tomonori <tomof@acm.org> | 2008-02-05 01:28:08 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-05 12:44:11 -0500 |
commit | fb3475e9b6bfa666107512fbd6006c26014f04b8 (patch) | |
tree | d845a940c7a118539f58c4f52337d4b49a1222ba /arch/powerpc/platforms/iseries | |
parent | 0291df8cc9dac09c303d21d5bcd2ad73762c836a (diff) |
iommu sg: powerpc: convert iommu to use the IOMMU helper
This patch converts PPC's IOMMU to use the IOMMU helper functions. The IOMMU
doesn't allocate a memory area spanning LLD's segment boundary anymore.
iseries_hv_alloc and iseries_hv_map don't have proper device
struct. 4GB boundary is used for them.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: Jeff Garzik <jeff@garzik.org>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/powerpc/platforms/iseries')
-rw-r--r-- | arch/powerpc/platforms/iseries/iommu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/iseries/iommu.c b/arch/powerpc/platforms/iseries/iommu.c index 6a0c6f6675cd..11fa3c772ed5 100644 --- a/arch/powerpc/platforms/iseries/iommu.c +++ b/arch/powerpc/platforms/iseries/iommu.c | |||
@@ -199,7 +199,7 @@ static struct iommu_table vio_iommu_table; | |||
199 | 199 | ||
200 | void *iseries_hv_alloc(size_t size, dma_addr_t *dma_handle, gfp_t flag) | 200 | void *iseries_hv_alloc(size_t size, dma_addr_t *dma_handle, gfp_t flag) |
201 | { | 201 | { |
202 | return iommu_alloc_coherent(&vio_iommu_table, size, dma_handle, | 202 | return iommu_alloc_coherent(NULL, &vio_iommu_table, size, dma_handle, |
203 | DMA_32BIT_MASK, flag, -1); | 203 | DMA_32BIT_MASK, flag, -1); |
204 | } | 204 | } |
205 | EXPORT_SYMBOL_GPL(iseries_hv_alloc); | 205 | EXPORT_SYMBOL_GPL(iseries_hv_alloc); |
@@ -213,7 +213,7 @@ EXPORT_SYMBOL_GPL(iseries_hv_free); | |||
213 | dma_addr_t iseries_hv_map(void *vaddr, size_t size, | 213 | dma_addr_t iseries_hv_map(void *vaddr, size_t size, |
214 | enum dma_data_direction direction) | 214 | enum dma_data_direction direction) |
215 | { | 215 | { |
216 | return iommu_map_single(&vio_iommu_table, vaddr, size, | 216 | return iommu_map_single(NULL, &vio_iommu_table, vaddr, size, |
217 | DMA_32BIT_MASK, direction); | 217 | DMA_32BIT_MASK, direction); |
218 | } | 218 | } |
219 | 219 | ||