Re: cmpci: dma buffer crosses 64k boundaryyd

Alan Cox (alan@lxorguk.ukuu.org.uk)
Mon, 27 Dec 1999 22:46:36 +0000 (GMT)


> > I think we must continue to guarantee that x-byte allocations are aligned on
> > x-byte boundaries.
>
> Isn't that wasteful if not required? For example my Via audio chip
> only needs dword alignment for the addresses passed to it in the
> scatter-gather DMA table.

Since we use a buddy allocator its an implied property if the base is set to
a boundary as big as your largest allocation you want the feature for. Since
you can align arbitarily and then drop in partially used indicators to cover
the area that isnt really free its basically zero cost

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/