From: Matthias Schwarzott <zzam@gentoo.org>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: linux-usb@vger.kernel.org, usb-storage@lists.one-eyed-alien.net,
hirofumi@mail.parknet.co.jp
Subject: Re: Amazon Kindle disconnect after Synchronize Cache
Date: Sun, 7 Mar 2021 06:58:10 +0100 [thread overview]
Message-ID: <2a1f6636-6b57-ccc5-76b3-7eae5e80e7d3@gentoo.org> (raw)
In-Reply-To: <20210305191437.GC48113@rowland.harvard.edu>
Am 05.03.21 um 20:14 schrieb Alan Stern:
> On Fri, Mar 05, 2021 at 05:54:43PM +0100, Matthias Schwarzott wrote:
>> One major difference I noticed looking at service answer time statistics:
>> Windows sends a lot more requests of type "Test Unit Ready".
>> * Windows: 6385 calls
>> * linux: 71 calls
>
> It's generally well known that Windows issues lots and lots of redundant
> commands to USB storage drives.
>
>
> Unless the Kindle advertises removable media, there doesn't seem to be
> any real point to all those TEST UNIT READY commands. Unless they are
> what prevents the disconnections...
>
This is kernel log from connecting:
[41709.248006] usb 3-4: new high-speed USB device number 6 using xhci_hcd
[41709.380015] usb 3-4: New USB device found, idVendor=1949,
idProduct=0004, bcdDevice= 1.00
[41709.380019] usb 3-4: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[41709.380021] usb 3-4: Product: Amazon Kindle
[41709.380022] usb 3-4: Manufacturer: Amazon
[41709.380023] usb 3-4: SerialNumber: REMOVED
[41709.493988] usb-storage 3-4:1.0: USB Mass Storage device detected
[41709.494080] scsi host6: usb-storage 3-4:1.0
[41710.510122] scsi 6:0:0:0: Direct-Access Kindle Internal Storage
0100 PQ: 0 ANSI: 2
[41710.510245] sd 6:0:0:0: Attached scsi generic sg3 type 0
[41710.513059] sd 6:0:0:0: Power-on or device reset occurred
[41710.526331] sd 6:0:0:0: [sdc] Attached SCSI removable disk
[41712.629152] sd 6:0:0:0: [sdc] 6688768 512-byte logical blocks: (3.42
GB/3.19 GiB)
[41712.846353] sd 6:0:0:0: [sdc] Write cache: enabled, read cache:
enabled, doesn't support DPO or FUA
[41712.846357] sdc: detected capacity change from 0 to 6688768
[41712.849499] sdc: sdc1
As it prints "Attached SCSI removable disk" the device advertises
removable media.
>> How can I get further on this topic?
>
> Is runtime power management enabled? Maybe the Kindle disconnects
> whenever the computer tries to suspend it. This typically happens 2
> seconds after the last command was issued, which matches your
> observations. If runtime PM is enabled, you can try disabling it.
>
I assume this means autosuspend is not used:
# cat /sys/block/sde/device/power/control
on
# lsusb:
[...]
Bus 003 Device 017: ID 1949:0004 Lab126, Inc. Amazon Kindle 3/4/Paperwhite
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x1949 Lab126, Inc.
idProduct 0x0004 Amazon Kindle 3/4/Paperwhite
bcdDevice 1.00
iManufacturer 1 Amazon
iProduct 2 Amazon Kindle
iSerial 3 REMOVED....
bNumConfigurations 1
OTG Descriptor:
bLength 3
bDescriptorType 9
bmAttributes 0x03
SRP (Session Request Protocol)
HNP (Host Negotiation Protocol)
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0023
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 4 Self-powered
bmAttributes 0xc0
Self Powered
MaxPower 2mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 5 Mass Storage
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 1
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0001
Self Powered
Regards
Matthias
next prev parent reply other threads:[~2021-03-07 6:03 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-05 16:54 Amazon Kindle disconnect after Synchronize Cache Matthias Schwarzott
2021-03-05 19:14 ` Alan Stern
[not found] ` <CAL411-qf+c_CB4cL=2349QqCCYimOBCYxXbsOfLbvVYOg0294g@mail.gmail.com>
2021-03-06 16:07 ` Alan Stern
2021-03-07 5:58 ` Matthias Schwarzott [this message]
2021-03-07 15:52 ` Alan Stern
2021-03-07 16:52 ` Matthias Schwarzott
2021-03-07 16:58 ` Alan Stern
2021-03-08 21:59 ` Matthias Schwarzott
2021-03-09 15:50 ` [usb-storage] " Alan Stern
2021-03-10 20:56 ` Matthias Schwarzott
2021-03-10 21:46 ` Alan Stern
2021-03-11 6:05 ` Matthias Schwarzott
2021-03-11 14:39 ` Alan Stern
2021-03-16 5:26 ` Matthias Schwarzott
2021-03-16 16:26 ` Alan Stern
2021-03-16 16:43 ` [systemd-devel] " Hans de Goede
2021-03-16 17:04 ` Alan Stern
2021-03-16 21:52 ` Matthias Schwarzott
2021-03-17 12:21 ` Hans de Goede
2021-03-17 15:17 ` Alan Stern
2021-03-17 16:47 ` Lennart Poettering
[not found] ` <F279F9BC020000F5AE14D9EC@gwsmtp.uni-regensburg.de>
[not found] ` <C63C44570200006665972EEF@gwsmtp.uni-regensburg.de>
[not found] ` <B960C12A020000A667ECE9F9@gwsmtp.uni-regensburg.de>
[not found] ` <B72C58530200001565972EEF@gwsmtp.uni-regensburg.de>
[not found] ` <0F2319EB020000F567ECE9F9@gwsmtp.uni-regensburg.de>
[not found] ` <DE3F57520200009E65972EEF@gwsmtp.uni-regensburg.de>
[not found] ` <52CC0074020000A3D68BC3D5@gwsmtp.uni-regensburg.de>
2021-03-18 7:03 ` Antw: [EXT] " Ulrich Windl
2021-03-18 14:59 ` Alan Stern
[not found] ` <474C42CD02000091AE14D9EC@gwsmtp.uni-regensburg.de>
2021-03-18 7:04 ` Ulrich Windl
[not found] ` <D43A6F56020000F865972EEF@gwsmtp.uni-regensburg.de>
2021-03-18 7:10 ` Antw: [EXT] [systemd-devel] [PATCH] usb-storage: Add quirk to defeat Kindle's automatic unload Ulrich Windl
2021-03-18 15:03 ` Alan Stern
2021-03-17 17:56 ` [systemd-devel] [usb-storage] Re: Amazon Kindle disconnect after Synchronize Cache Matthias Schwarzott
2021-03-17 18:31 ` Hans de Goede
2021-03-17 19:06 ` [PATCH] usb-storage: Add quirk to defeat Kindle's automatic unload Alan Stern
2021-03-18 11:39 ` Hans de Goede
2021-03-18 13:50 ` [systemd-devel] " Tomasz Torcz
2021-03-18 15:07 ` Alan Stern
2021-03-16 21:43 ` [usb-storage] Re: Amazon Kindle disconnect after Synchronize Cache Matthias Schwarzott
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=2a1f6636-6b57-ccc5-76b3-7eae5e80e7d3@gentoo.org \
--to=zzam@gentoo.org \
--cc=hirofumi@mail.parknet.co.jp \
--cc=linux-usb@vger.kernel.org \
--cc=stern@rowland.harvard.edu \
--cc=usb-storage@lists.one-eyed-alien.net \
/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.