From: Jens Axboe <jens.axboe@oracle.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: AntonioLin <antonio.lin@alcormicro.com>,
David Vrabel <david.vrabel@csr.com>,
USB list <linux-usb@vger.kernel.org>,
Kernel development list <linux-kernel@vger.kernel.org>
Subject: Re: [S] Re: [linux-uwb] packet size problem
Date: Wed, 11 Jun 2008 16:53:52 +0200 [thread overview]
Message-ID: <20080611145349.GD20851@kernel.dk> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0806111032330.2459-100000@iolanthe.rowland.org>
On Wed, Jun 11 2008, Alan Stern wrote:
> On Wed, 11 Jun 2008, AntonioLin wrote:
>
> > Hi All,
> >
> > I checked srb->device->request_queue->dma_alignment in usb_stor_bulk_Bulk_transport() routine. , the value is 1023.
> >
> > But in usb_stor_bulk_transfer_sglist, the length of first element in sg array is 3584 which is not divisible by 1024.
> >
> >
> > Can you post your /proc/bus/usb/devices ?
> >
> > I don't know how to do this, could you descript moe about it ?
> > (Sorry,I have few experience about Linux.)
>
> All you have to do is:
>
> cat /proc/bus/usb/devices
>
> Or even just tell your email client to include /proc/bus/usb/devices as
> an attachment. However some Linux distributions don't automatically
> mount /proc/bus/usb. If yours doesn't, you will have to do (as root):
>
> mount -t usbfs none /proc/bus/usb
>
> before you can access /proc/bus/usb/devices. But in any case it
> doesn't matter, since you have checked that the value of dma_alignment
> really is 1023.
>
> 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?
--
Jens Axboe
next prev parent reply other threads:[~2008-06-11 14:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <00b401c8cbc1$ebd48800$5108a8c0@alcormicro.com>
2008-06-11 14:39 ` [S] Re: [linux-uwb] packet size problem Alan Stern
2008-06-11 14:53 ` Jens Axboe [this message]
2008-06-11 15:16 ` Alan Stern
2008-06-12 21:14 ` Alan Stern
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080611145349.GD20851@kernel.dk \
--to=jens.axboe@oracle.com \
--cc=antonio.lin@alcormicro.com \
--cc=david.vrabel@csr.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=stern@rowland.harvard.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.