mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
iommu sg merging: ppc: make iommu respect the segment size limits
This patch makes iommu respect segment size limits when merging sg lists. Signed-off-by: FUJITA Tomonori <[email protected]> Cc: Jeff Garzik <[email protected]> Cc: James Bottomley <[email protected]> Acked-by: Jens Axboe <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
42d00284e1
commit
740c3ce667
3 changed files with 8 additions and 4 deletions
|
|
@ -79,7 +79,7 @@ extern void iommu_free_table(struct iommu_table *tbl, const char *node_name);
|
|||
extern struct iommu_table *iommu_init_table(struct iommu_table * tbl,
|
||||
int nid);
|
||||
|
||||
extern int iommu_map_sg(struct iommu_table *tbl, struct scatterlist *sglist,
|
||||
extern int iommu_map_sg(struct device *dev, struct scatterlist *sglist,
|
||||
int nelems, unsigned long mask,
|
||||
enum dma_data_direction direction);
|
||||
extern void iommu_unmap_sg(struct iommu_table *tbl, struct scatterlist *sglist,
|
||||
|
|
|
|||
Loading…
Reference in a new issue