lkml.org 
[lkml]   [2008]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [S] Re: [linux-uwb] packet size problem
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.

Well then, put it this way: We don't care particularly about the
address alignment as such, but we do need the buffer length to be a
multiple of 1024 for all but the last element in the SG list. Is there
a better way to accomplish this?

> 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?

Both.

Alan Stern



\
 
 \ /
  Last update: 2008-06-11 17:19    [W:0.111 / U:0.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site