From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org
Subject: Re: swiotlb default size (64 MB) too small?
Date: Wed, 21 Jan 2009 08:56:31 +0100 [thread overview]
Message-ID: <4976D52F.5090109@s5r6.in-berlin.de> (raw)
In-Reply-To: <20090121074339N.fujita.tomonori@lab.ntt.co.jp>
FUJITA Tomonori wrote:
> The bug reporter said that copying stooped but it should not
> happen. It doesn't happen with SCSI (copying can continue a bit
> slowly). dma mapping errors are transient so SCSI retries.
...
> If the bug report is true, then the FireWire stack or the driver (or
> both) has problems. Make sure that FireWire can work even with dma
> mapping failures.
sbp2_scsi_queuecommand returns SCSI_MLQUEUE_HOST_BUSY if DMA mapping
failed. Isn't this what should happen?
However, both usb-storage and firewire-sbp2 currently have a queudepth
of only 1; if there are no DMA resources to map just this one SCSI
request, how should the system be able to recover? It can wait, but it
can't lower the part of the workload which is related to this particular
copying operation (which, as the reporter wrote, ultimately stopped). I
suppose there is something else* on the reporter's system which tied up
too much swiotlb resources the whole time; and then just waiting a bit
until the next queucommand won't get things going.
*) The report does not sound like there was a DMA mappig leak caused by
copying between usb-storage and firewire-sbp2. Else he would have hit
the problem again even with increased swiotlb default size.
> My dma mapping debug patchset might be useful:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/tomo/linux-2.6-misc.git dmafault
>
> You can inject dma mapping failures per device:
>
> vine:/debug/pci/0000:00:1d.1# ls
> interval probability space task-filter times verbose
This could be handy, thanks.
--
Stefan Richter
-=====-==--= ---= =-=-=
http://arcgraph.de/sr/
next prev parent reply other threads:[~2009-01-21 7:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-20 20:10 swiotlb default size (64 MB) too small? Stefan Richter
2009-01-20 22:44 ` FUJITA Tomonori
2009-01-21 7:56 ` Stefan Richter [this message]
2009-01-27 7:54 ` FUJITA Tomonori
2009-01-27 9:36 ` FUJITA Tomonori
2009-01-27 17:03 ` Stefan Richter
2009-01-27 23:31 ` FUJITA Tomonori
2009-01-27 23:46 ` Stefan Richter
2009-01-27 23:57 ` FUJITA Tomonori
2009-01-28 0:03 ` Stefan Richter
2009-01-28 0:35 ` FUJITA Tomonori
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=4976D52F.5090109@s5r6.in-berlin.de \
--to=stefanr@s5r6.in-berlin.de \
--cc=fujita.tomonori@lab.ntt.co.jp \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox