public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Zdenek Kabelac <zkabelac@redhat.com>,
	LKML <linux-kernel@vger.kernel.org>,
	dianders@chromium.org, gregkh@linuxfoundation.org
Subject: Re: USB disk speed regression WD Elements - with bisect result 22547c4cc4fe20698a6a85a55b8788859134b8e4
Date: Mon, 24 Jul 2017 14:03:58 -0700	[thread overview]
Message-ID: <20170724210358.GC31959@roeck-us.net> (raw)
In-Reply-To: <Pine.LNX.4.44L0.1707241039210.1739-100000@iolanthe.rowland.org>

On Mon, Jul 24, 2017 at 10:41:12AM -0400, Alan Stern wrote:
> On Mon, 24 Jul 2017, Zdenek Kabelac wrote:
> 
> > Hi
> > 
> > I've problem with my USB storage devices:  WD Elements 1TB.
> > (Bus 004 Device 002: ID 1058:10a8 Western Digital Technologies, Inc. Elements 
> > Portable (WDBUZG))
> > 
> > 
> > After kernel >4.9  when disk is attached via cable it has very low speed 
> > (less then 1MB/s).
> > 
> > It can run at full speed (>22MB/s) when the Linux kernel is fully rebooted (so 
> > disk is attached during the reboot of Lenovo T61, C2D, Fedora Rawhide).
> > 
> > However when >4.9 kernel is running and disk is just attached it's very slow.
> > 
> > I've played a bisect game - and the clean result has been:
> > 
> > 22547c4cc4fe20698a6a85a55b8788859134b8e4
> > 
> > When I just revert this patch with 4.13-rc1 - it's again running with full 
> > speed even when disk is attached (thus no reboot is needed for full speed).
> > 
> > 
> > So while I've no idea what 22547c4cc4fe20698... is doing, it seems to have 
> > some unpleasant side-effect on regular USB devices.
> > 
> > So what else is needed to get this properly working ?
> > (assuming plain revert of  22547c4cc4fe20698 is unwanted).
> > 
> > What more info can I provide to get this storage 'normally' usable without 
> > rebooting the machine.
> 
> Please post the dmesg logs showing what happens when the disk is 
> first attached and operates slowly, and what happens when the disk is 
> attached following a reboot and operates normally.
> 

Only idea I came up with is that some device may require more than one
port reset. Agreed, dmesg logs should give us an idea if this is the case.

I ordered one of those drives; maybe I can reproduce the problem.

Guenter

  reply	other threads:[~2017-07-24 21:04 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-24 12:03 USB disk speed regression WD Elements - with bisect result 22547c4cc4fe20698a6a85a55b8788859134b8e4 Zdenek Kabelac
2017-07-24 14:41 ` Alan Stern
2017-07-24 21:03   ` Guenter Roeck [this message]
2017-07-25 10:06   ` Zdenek Kabelac
2017-07-25 14:25     ` Alan Stern
2017-07-25 14:34       ` Zdenek Kabelac
2017-07-25 15:03         ` Zdenek Kabelac
2017-07-25 17:02           ` Alan Stern
2017-07-25 17:46             ` Zdenek Kabelac
2017-07-25 19:50               ` Alan Stern
2017-07-26  2:33                 ` Guenter Roeck
2017-07-26 14:28                   ` Alan Stern
2017-07-26 14:36                     ` Zdenek Kabelac
2017-07-26 15:04                       ` Alan Stern
2017-07-26 17:49                 ` Zdenek Kabelac
2017-07-27  1:03                   ` Alan Stern
2017-07-27  9:11                     ` Zdenek Kabelac
2017-07-28 18:33                       ` Alan Stern
     [not found] <49a43034-9330-e48d-f0d5-896b23ecb552@redhat.com>
2017-07-29  2:09 ` 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=20170724210358.GC31959@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=dianders@chromium.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stern@rowland.harvard.edu \
    --cc=zkabelac@redhat.com \
    /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