diff options
author | FUJITA Tomonori <tomof@acm.org> | 2008-02-05 01:28:02 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-05 12:44:10 -0500 |
commit | fde6a3c82d67f592eb587be4d12222b0ae6d4321 (patch) | |
tree | 33c79ecea87dc99a9c4961b6ab42d53c46f1f8f2 /arch/sparc64/kernel/iommu_common.h | |
parent | 7c53664dcd5df7349edb56f04c743bf66510a6f1 (diff) |
iommu sg merging: sparc64: make iommu respect the segment size limits
This patch makes iommu respect segment size limits when merging sg
lists.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: Jeff Garzik <jeff@garzik.org>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Acked-by: Jens Axboe <jens.axboe@oracle.com>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/sparc64/kernel/iommu_common.h')
-rw-r--r-- | arch/sparc64/kernel/iommu_common.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/sparc64/kernel/iommu_common.h b/arch/sparc64/kernel/iommu_common.h index 75b5a5814522..a90d046e8024 100644 --- a/arch/sparc64/kernel/iommu_common.h +++ b/arch/sparc64/kernel/iommu_common.h | |||
@@ -9,6 +9,7 @@ | |||
9 | #include <linux/sched.h> | 9 | #include <linux/sched.h> |
10 | #include <linux/mm.h> | 10 | #include <linux/mm.h> |
11 | #include <linux/scatterlist.h> | 11 | #include <linux/scatterlist.h> |
12 | #include <linux/device.h> | ||
12 | 13 | ||
13 | #include <asm/iommu.h> | 14 | #include <asm/iommu.h> |
14 | #include <asm/scatterlist.h> | 15 | #include <asm/scatterlist.h> |
@@ -46,4 +47,4 @@ extern void verify_sglist(struct scatterlist *sg, int nents, iopte_t *iopte, int | |||
46 | #define VCONTIG(__X, __Y) (((__X) == (__Y)) || \ | 47 | #define VCONTIG(__X, __Y) (((__X) == (__Y)) || \ |
47 | (((__X) | (__Y)) << (64UL - PAGE_SHIFT)) == 0UL) | 48 | (((__X) | (__Y)) << (64UL - PAGE_SHIFT)) == 0UL) |
48 | 49 | ||
49 | extern unsigned long prepare_sg(struct scatterlist *sg, int nents); | 50 | extern unsigned long prepare_sg(struct device *dev, struct scatterlist *sg, int nents); |