linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: "Sébastien Rey-Coyrehourcq" <sebastien.rey-coyrehourcq@univ-rouen.fr>
Cc: linux-usb@vger.kernel.org, hch@lst.de, stern@rowland.harvard.edu
Subject: Re: usb-storage & xhci_hcd & swiotlb buffer problem filling systemd with error during operation with SSD on USB3
Date: Fri, 30 Jul 2021 07:10:50 +0200	[thread overview]
Message-ID: <YQOJ2oW86EyV443A@kroah.com> (raw)
In-Reply-To: <20aaa89b-be31-6d30-2e27-47770bba328f@univ-rouen.fr>

On Thu, Jul 29, 2021 at 05:32:57PM +0200, Sébastien Rey-Coyrehourcq wrote:
>  Hi,
> 
> This is my first bug report on kernel, first crossposted here (https://www.reddit.com/r/NixOS/comments/omctp3/rpi4_nixos_native_2105_and_ssd_by_usb3/)
> and here on nixos github (https://github.com/NixOS/nixpkgs/issues/130499) :
> 
> [1.] One line summary of the problem:
> 
> Using an usb sata adaptater from Startech (USB312SAT3CB 3.1 firmware
> upgraded) on my RPI4B 8gb with the kernel 5.13.4, during any dd=/ operation
> on SSD on USB 3 port, my systemd logs finish full of errors of type :
> 
> juil. 29 14:38:52 Nostromo-sd kernel: xhci_hcd 0000:01:00.0: swiotlb buffer
> is full (sz: 512 bytes), total 32768 (slots), used 32768 (slots)
> 
> and
> 
> juil. 29 09:25:07 Nostromo-sd kernel: ------------[ cut here ]------------
> juil. 29 09:25:07 Nostromo-sd kernel: WARNING: CPU: 1 PID: 180 at
> drivers/mmc/host/sdhci.c:1142 sdhci_prepare_data.isra.0+0x298/0x700

Your problem is in the sdhci code, not the usb controller.

But even with this, does the operation succeed properly?

The rpi hardware is HORRID when it comes to the USB controller, so those
xhci messages might just be normal given the lack of irq handling that
the platform was known to have in the past (note, might be better now,
no idea, sorry.)

But again, is the operation failing?  Is your sd card working properly?
Does the problem go away with a new/better sd card?

thanks,

greg k-h

  reply	other threads:[~2021-07-30  5:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-29 15:32 usb-storage & xhci_hcd & swiotlb buffer problem filling systemd with error during operation with SSD on USB3 Sébastien Rey-Coyrehourcq
2021-07-30  5:10 ` Greg KH [this message]
2021-07-30  8:35   ` Sébastien Rey-Coyrehourcq

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=YQOJ2oW86EyV443A@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=hch@lst.de \
    --cc=linux-usb@vger.kernel.org \
    --cc=sebastien.rey-coyrehourcq@univ-rouen.fr \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).