iommu sg merging: swiotlb: respect the segment boundary limits
commit681cc5cd3efbeafca6386114070e0bfb5012e249
authorFUJITA Tomonori <tomof@acm.org>
Tue, 5 Feb 2008 06:28:16 +0000 (4 22:28 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 5 Feb 2008 17:44:12 +0000 (5 09:44 -0800)
tree21249148cf78175e1d099999784053a14dc2fc50
parent59fc67dedb46c29442989e52af39da67aea52512
iommu sg merging: swiotlb: respect the segment boundary limits

This patch makes swiotlb not allocate a memory area spanning LLD's segment
boundary.

is_span_boundary() judges whether a memory area spans LLD's segment boundary.
If map_single finds such a area, map_single tries to find the next available
memory area.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Cc: Greg KH <greg@kroah.com>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/swiotlb.c