Re: [S] Re: [linux-uwb] packet size problem

From: Alan Stern
Date: Thu Jun 12 2008 - 17:15:00 EST


On Wed, 11 Jun 2008, Jens Axboe wrote:

> > Jens, this is a question for you. How come we're getting an SG element
> > whose lenth is 3584 when the request_queue's dma_alignment mask is set
> > to 1023? Is dma_alignment not the right parameter to set?
>
> dma_alignment mask is the buffer address alignment, so they are not
> completely the same. But it does sound odd, since you would then be
> spanning two pages for that sg element. Is this before or after dma
> mapping the sg table?

Any followup on this? Is there a different way to request that each SG
element (except the last) has length divisible by 1024, other than
setting the dma_alignment mask to 1023?

Alan Stern

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