On Wed, Jul 02, 2003 at 02:22:44AM +0200, Andi Kleen wrote:
> > What do you mean? You map only one 4K chunk, and this is used
> > for all the sub-1K mappings.
>
> How should this work when the 1K mappings are spread all over memory?
It couldn't merge in this case.
> Maybe I'm missing something but from James description it sounds like the
> block layer assumes that it can pass in a sglist with arbitary elements
> and get it back remapped to continuous DMA addresses.
In the x86-64 case, If the 1k elements are not physically contigous,
I think most of them would get their own mapping.
For x86-64, if an entry ends on a 4k alignment and the next one starts
on a 4k alignment, could those be merged into one DMA segment that uses
two adjacent mapping entries?
Anyway, using a 4k FS block size (eg ext2) would be more efficient
by allowing a 1:1 of SG elements and DMA mappings.
grant
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Mon Jul 07 2003 - 22:00:16 EST