Bug 11423 - usb-storage device based on Rockchip 2706 is being disconnected and thus not mountable.
usb-storage device based on Rockchip 2706 is being disconnected and thus not ...
Status: CLOSED CODE_FIX
Product: Drivers
Classification: Unclassified
Component: USB
All Linux
: P1 normal
Assigned To: Greg Kroah-Hartman
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-08-25 08:38 UTC by Adrian Pilchowiec
Modified: 2008-09-29 08:47 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.25, 2.6.26, 2.6.27-rc2 and probably others
Tree: Mainline
Regression: ---


Attachments
dmesg output (78.67 KB, text/plain)
2008-08-25 21:45 UTC, Adrian Pilchowiec
Details
Patch for Rockchip MP3 (777 bytes, patch)
2008-09-03 07:23 UTC, Alan Stern
Details | Diff
dmesg output (30.07 KB, text/plain)
2008-09-08 20:03 UTC, Mohammad Bahathir Hashim
Details
lsusb -v -d 071b:3203 (2.59 KB, text/plain)
2008-09-08 20:10 UTC, Mohammad Bahathir Hashim
Details

Description Adrian Pilchowiec 2008-08-25 08:38:50 UTC
Distribution: Fedora
Hardware Environment: Asus F3Sc -> http://www.smolts.org/show?uuid=pub_7bfb182b-dee4-4154-bf48-57bf02e363c6

Problem Description:
When trying to plug PMP Eon Slide-R TC, device is being immediately disconnected, so there's no chance to mount and browse the device, even if it should be working with kernels > 2.4.4 (as declared by producer). I've tried already to add udev rules for this PMP, reformatting the device and few different cables to exclude cabling problem, but all without luck. I don't have also usb hub. On Windows it's just working. Here's what i get from dmesg output:

usb 5-1: new full speed USB device using uhci_hcd and address 3                                                  
usb 5-1: configuration #1 chosen from 1 choice                                                                   
scsi7 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
usb 5-1: New USB device found, idVendor=071b, idProduct=3203
usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 5-1: Product: Eon  MP3
usb 5-1: Manufacturer: EonSlide
usb 5-1: SerialNumber: USBV1.00
usb-storage: device scan complete
scsi 7:0:0:0: Direct-Access     Eon        Slide-R        1.00 PQ: 0 ANSI: 0
sd 7:0:0:0: [sdb] Attached SCSI removable disk
sd 7:0:0:0: Attached scsi generic sg2 type 0
sd 7:0:0:0: [sdb] 16011264 512-byte hardware sectors (8198 MB)
usb 5-1: reset full speed USB device using uhci_hcd and address 3
usb 5-1: reset full speed USB device using uhci_hcd and address 3
sd 7:0:0:0: [sdb] Write Protect is off
sd 7:0:0:0: [sdb] Mode Sense: 03 00 00 00
sd 7:0:0:0: [sdb] Assuming drive cache: write through
usb 5-1: USB disconnect, address 3
sd 7:0:0:0: [sdb] READ CAPACITY failed
sd 7:0:0:0: [sdb] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK,SUGGEST_OK
sd 7:0:0:0: [sdb] Sense not available.
sd 7:0:0:0: [sdb] Write Protect is off
sd 7:0:0:0: [sdb] Mode Sense: 00 00 00 00
sd 7:0:0:0: [sdb] Assuming drive cache: write through

lsusb before disconnecting gives:

Bus 002 Device 124: ID 071b:3203 Domain Technologies, Inc
 
And finally lspci:

00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 03)
00:01.0 PCI bridge: Intel Corporation Mobile PM965/GM965/GL960 PCI Express Root Port (rev 03) 
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 03)
00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 (rev 03)
00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 (rev 03)
00:1c.5 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 6 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3)
00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 03)
00:1f.2 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA IDE Controller (rev 03)
01:00.0 VGA compatible controller: nVidia Corporation GeForce 8400M G (rev a1)
02:00.0 Ethernet controller: Attansic Technology Corp. L1 Gigabit Ethernet Adapter (rev b0)
03:00.0 Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN Network Connection (rev 61)
05:00.0 Memory controller: Intel Corporation Turbo Memory Controller (rev 01)
09:01.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05)
09:01.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22)
09:01.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 12)
09:01.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 12)
09:01.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev ff)

Problem similar to bug #11159, but none of suggestions from there helped.
Comment 1 Anonymous Emailer 2008-08-25 10:55:44 UTC
Reply-To: akpm@linux-foundation.org


(switched to email.  Please respond via emailed reply-to-all, not via the
bugzilla web interface).

On Mon, 25 Aug 2008 08:38:52 -0700 (PDT) bugme-daemon@bugzilla.kernel.org wrote:

> http://bugzilla.kernel.org/show_bug.cgi?id=11423
> 
>            Summary: usb-storage device based on Rockchip 2706 is being
>                     disconnected and thus not mountable.
>            Product: Drivers
>            Version: 2.5
>      KernelVersion: 2.6.25, 2.6.26, 2.6.27-rc2 and probably others
>           Platform: All
>         OS/Version: Linux
>               Tree: Mainline
>             Status: NEW
>           Severity: normal
>           Priority: P1
>          Component: USB
>         AssignedTo: greg@kroah.com
>         ReportedBy: adi1981@epf.pl
> 
> 
> Distribution: Fedora
> Hardware Environment: Asus F3Sc ->
> http://www.smolts.org/show?uuid=pub_7bfb182b-dee4-4154-bf48-57bf02e363c6
> 
> Problem Description:
> When trying to plug PMP Eon Slide-R TC, device is being immediately
> disconnected, so there's no chance to mount and browse the device, even if it
> should be working with kernels > 2.4.4 (as declared by producer). I've tried
> already to add udev rules for this PMP, reformatting the device and few
> different cables to exclude cabling problem, but all without luck. I don't have
> also usb hub. On Windows it's just working. Here's what i get from dmesg
> output:
> 
> usb 5-1: new full speed USB device using uhci_hcd and address 3                 
> usb 5-1: configuration #1 chosen from 1 choice                                  
> scsi7 : SCSI emulation for USB Mass Storage devices
> usb-storage: device found at 3
> usb-storage: waiting for device to settle before scanning
> usb 5-1: New USB device found, idVendor=071b, idProduct=3203
> usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
> usb 5-1: Product: Eon  MP3
> usb 5-1: Manufacturer: EonSlide
> usb 5-1: SerialNumber: USBV1.00
> usb-storage: device scan complete
> scsi 7:0:0:0: Direct-Access     Eon        Slide-R        1.00 PQ: 0 ANSI: 0
> sd 7:0:0:0: [sdb] Attached SCSI removable disk
> sd 7:0:0:0: Attached scsi generic sg2 type 0
> sd 7:0:0:0: [sdb] 16011264 512-byte hardware sectors (8198 MB)
> usb 5-1: reset full speed USB device using uhci_hcd and address 3
> usb 5-1: reset full speed USB device using uhci_hcd and address 3
> sd 7:0:0:0: [sdb] Write Protect is off
> sd 7:0:0:0: [sdb] Mode Sense: 03 00 00 00
> sd 7:0:0:0: [sdb] Assuming drive cache: write through
> usb 5-1: USB disconnect, address 3
> sd 7:0:0:0: [sdb] READ CAPACITY failed
> sd 7:0:0:0: [sdb] Result: hostbyte=DID_NO_CONNECT
> driverbyte=DRIVER_OK,SUGGEST_OK
> sd 7:0:0:0: [sdb] Sense not available.
> sd 7:0:0:0: [sdb] Write Protect is off
> sd 7:0:0:0: [sdb] Mode Sense: 00 00 00 00
> sd 7:0:0:0: [sdb] Assuming drive cache: write through
> 
> lsusb before disconnecting gives:
> 
> Bus 002 Device 124: ID 071b:3203 Domain Technologies, Inc
> 
> And finally lspci:
> 
> 00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory
> Controller Hub (rev 03)
> 00:01.0 PCI bridge: Intel Corporation Mobile PM965/GM965/GL960 PCI Express Root
> Port (rev 03) 
> 00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI
> Controller #4 (rev 03)
> 00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI
> Controller #5 (rev 03)
> 00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI
> Controller #2 (rev 03)
> 00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio
> Controller (rev 03)
> 00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1
> (rev 03)
> 00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2
> (rev 03)
> 00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3
> (rev 03)
> 00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4
> (rev 03)
> 00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5
> (rev 03)
> 00:1c.5 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 6
> (rev 03)
> 00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI
> Controller #1 (rev 03)
> 00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI
> Controller #2 (rev 03)
> 00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI
> Controller #3 (rev 03)
> 00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI
> Controller #1 (rev 03)
> 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3)
> 00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller
> (rev 03)
> 00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE
> Controller (rev 03)
> 00:1f.2 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA IDE
> Controller (rev 03)
> 01:00.0 VGA compatible controller: nVidia Corporation GeForce 8400M G (rev a1)
> 02:00.0 Ethernet controller: Attansic Technology Corp. L1 Gigabit Ethernet
> Adapter (rev b0)
> 03:00.0 Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN
> Network Connection (rev 61)
> 05:00.0 Memory controller: Intel Corporation Turbo Memory Controller (rev 01)
> 09:01.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05)
> 09:01.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host
> Adapter (rev 22)
> 09:01.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 12)
> 09:01.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter
> (rev 12)
> 09:01.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev ff)
> 
> Problem similar to bug #11159, but none of suggestions from there helped.
> 

Comment 2 Alan Stern 2008-08-25 11:41:46 UTC
On Mon, 25 Aug 2008, Andrew Morton wrote:

> > http://bugzilla.kernel.org/show_bug.cgi?id=11423
> > 
> >            Summary: usb-storage device based on Rockchip 2706 is being
> >                     disconnected and thus not mountable.

> > When trying to plug PMP Eon Slide-R TC, device is being immediately
> > disconnected, so there's no chance to mount and browse the device, even if it
> > should be working with kernels > 2.4.4 (as declared by producer). I've tried
> > already to add udev rules for this PMP, reformatting the device and few
> > different cables to exclude cabling problem, but all without luck. I don't have
> > also usb hub. On Windows it's just working. Here's what i get from dmesg
> > output:

Please build a kernel with CONFIG_USB_STORAGE_DEBUG enabled and attach 
the resulting dmesg log to the bug report.

Alan Stern

Comment 3 Adrian Pilchowiec 2008-08-25 21:45:52 UTC
Created attachment 17450 [details]
dmesg output
Comment 4 Adrian Pilchowiec 2008-08-25 21:51:25 UTC
Comment on attachment 17450 [details]
dmesg output

Finally I'd managed to attach output from dmesg, I had some problems with BZ's internal error earlier.
Comment 5 Alan Stern 2008-08-27 09:21:25 UTC
There's a bug in the USB chip on your device; it doesn't respond 
correctly to MODE SENSE requests.  The patch below should work around 
the problem.

Alan Stern


Index: usb-2.6/drivers/usb/storage/unusual_devs.h
===================================================================
--- usb-2.6.orig/drivers/usb/storage/unusual_devs.h
+++ usb-2.6/drivers/usb/storage/unusual_devs.h
@@ -987,6 +987,13 @@ UNUSUAL_DEV(  0x069b, 0x3004, 0x0001, 0x
 		US_SC_DEVICE, US_PR_DEVICE, NULL,
 		US_FL_FIX_CAPACITY ),
 
+/* Reported by Adrian Pilchowiec <adi1981@epf.pl> */
+UNUSUAL_DEV(  0x071b, 0x3203, 0x0000, 0x0000,
+		"RockChip",
+		"MP3",
+		US_SC_DEVICE, US_PR_DEVICE, NULL,
+		US_FL_NO_WP_DETECT),
+
 /* Reported by Massimiliano Ghilardi <massimiliano.ghilardi@gmail.com>
  * This USB MP3/AVI player device fails and disconnects if more than 128
  * sectors (64kB) are read/written in a single command, and may be present

Comment 6 Adrian Pilchowiec 2008-08-27 13:09:37 UTC
On Wednesday 27 of August 2008 18:21:25 bugme-daemon@bugzilla.kernel.org 
wrote:
> http://bugzilla.kernel.org/show_bug.cgi?id=11423
>
>
> ------- Comment #5 from stern@rowland.harvard.edu  2008-08-27 09:21 -------
> There's a bug in the USB chip on your device; it doesn't respond
> correctly to MODE SENSE requests.  The patch below should work around
> the problem.
>
> Alan Stern
>
>
> Index: usb-2.6/drivers/usb/storage/unusual_devs.h
> ===================================================================
> --- usb-2.6.orig/drivers/usb/storage/unusual_devs.h
> +++ usb-2.6/drivers/usb/storage/unusual_devs.h
> @@ -987,6 +987,13 @@ UNUSUAL_DEV(  0x069b, 0x3004, 0x0001, 0x
>                 US_SC_DEVICE, US_PR_DEVICE, NULL,
>                 US_FL_FIX_CAPACITY ),
>
> +/* Reported by Adrian Pilchowiec <adi1981@epf.pl> */
> +UNUSUAL_DEV(  0x071b, 0x3203, 0x0000, 0x0000,
> +               "RockChip",
> +               "MP3",
> +               US_SC_DEVICE, US_PR_DEVICE, NULL,
> +               US_FL_NO_WP_DETECT),
> +
>  /* Reported by Massimiliano Ghilardi <massimiliano.ghilardi@gmail.com>
>   * This USB MP3/AVI player device fails and disconnects if more than 128
>   * sectors (64kB) are read/written in a single command, and may be present

Thanks Alan, now it's working almost perfectly.
But now I see a lot of messages like: 

sd 4:0:0:0: [sdb] Result: hostbyte=DID_ERROR 
driverbyte=DRIVER_OK,SUGGEST_RETRY
end_request: I/O error, dev sdb, sector 7422792
sd 4:0:0:0: [sdb] Result: hostbyte=DID_ERROR 
driverbyte=DRIVER_OK,SUGGEST_RETRY
end_request: I/O error, dev sdb, sector 7423032
sd 4:0:0:0: [sdb] Result: hostbyte=DID_ERROR 
driverbyte=DRIVER_OK,SUGGEST_RETRY
end_request: I/O error, dev sdb, sector 7423272
sd 4:0:0:0: [sdb] Result: hostbyte=DID_ERROR 
driverbyte=DRIVER_OK,SUGGEST_RETRY
end_request: I/O error, dev sdb, sector 7423512
sd 4:0:0:0: [sdb] Result: hostbyte=DID_ERROR 
driverbyte=DRIVER_OK,SUGGEST_RETRY
end_request: I/O error, dev sdb, sector 7423752

Is it some real problem or it just can be ignored ?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">On Wednesday 27 of August 2008 18:21:25 bugme-daemon@bugzilla.kernel.org wrote:</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; http://bugzilla.kernel.org/show_bug.cgi?id=11423</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; ------- Comment #5 from stern@rowland.harvard.edu  2008-08-27 09:21 -------</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; There's a bug in the USB chip on your device; it doesn't respond</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; correctly to MODE SENSE requests.  The patch below should work around</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; the problem.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; Alan Stern</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; Index: usb-2.6/drivers/usb/storage/unusual_devs.h</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; ===================================================================</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; --- usb-2.6.orig/drivers/usb/storage/unusual_devs.h</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; +++ usb-2.6/drivers/usb/storage/unusual_devs.h</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; @@ -987,6 +987,13 @@ UNUSUAL_DEV(  0x069b, 0x3004, 0x0001, 0x</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt;                 US_SC_DEVICE, US_PR_DEVICE, NULL,</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt;                 US_FL_FIX_CAPACITY ),</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; +/* Reported by Adrian Pilchowiec &lt;adi1981@epf.pl&gt; */</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; +UNUSUAL_DEV(  0x071b, 0x3203, 0x0000, 0x0000,</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; +               "RockChip",</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; +               "MP3",</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; +               US_SC_DEVICE, US_PR_DEVICE, NULL,</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; +               US_FL_NO_WP_DETECT),</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; +</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt;  /* Reported by Massimiliano Ghilardi &lt;massimiliano.ghilardi@gmail.com&gt;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt;   * This USB MP3/AVI player device fails and disconnects if more than 128</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt;   * sectors (64kB) are read/written in a single command, and may be present</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Thanks Alan, now it's working almost perfectly.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">But now I see a lot of messages like: </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">sd 4:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK,SUGGEST_RETRY</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">end_request: I/O error, dev sdb, sector 7422792</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">sd 4:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK,SUGGEST_RETRY</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">end_request: I/O error, dev sdb, sector 7423032</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">sd 4:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK,SUGGEST_RETRY</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">end_request: I/O error, dev sdb, sector 7423272</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">sd 4:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK,SUGGEST_RETRY</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">end_request: I/O error, dev sdb, sector 7423512</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">sd 4:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK,SUGGEST_RETRY</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">end_request: I/O error, dev sdb, sector 7423752</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Is it some real problem or it just can be ignored ?</p></body></html>
Comment 7 Adrian Pilchowiec 2008-08-27 13:15:20 UTC
uhhh again problem with formatting, sorry for that :/ I don't know what's wrong with my mail client :/ Probably it's some problem with signing messages. I will use web interface until I will fix this issue.
Comment 8 Mohammad Bahathir Hashim 2008-08-28 00:39:47 UTC
The patch works. But, I got errors during file transfer to the device. To solve the problem, I did

# echo 64 > /sys/block/sdb/device/max_sectors

/dev/sdb is the MP3/4 device.

I tried with 128 but not working.

-Mohmammad Bahathir Hashim
Comment 9 Adrian Pilchowiec 2008-08-29 16:27:47 UTC
On Thursday 28 of August 2008 09:39:47 bugme-daemon@bugzilla.kernel.org wrote:
> http://bugzilla.kernel.org/show_bug.cgi?id=11423
>
>
>
>
>
> ------- Comment #8 from bahathir@gmail.com  2008-08-28 00:39 -------
> The patch works. But, I got errors during file transfer to the device. To
> solve the problem, I did
>
> # echo 64 > /sys/block/sdb/device/max_sectors
>
> /dev/sdb is the MP3/4 device.
>
> I tried with 128 but not working.
>
> -Mohmammad Bahathir Hashim

Confirmed. Adding those lines 

+
+UNUSUAL_DEV(  0x071b, 0x3203, 0x0000, 0x0000,
+               "RockChip",
+               "ROCK MP3",
+               US_SC_DEVICE, US_PR_DEVICE, NULL,
+               US_FL_MAX_SECTORS_64 ),
+

to patch proposed by Alan solved problem for me. Now everything works just 
perfect.

---------------------
Panorama Internetu - prognoza pogody, poczta e-mail, SMS, wyszukiwarki: Gooru, Anonser, serwisy: randki, ogl
Comment 10 Alan Stern 2008-09-03 07:23:39 UTC
Created attachment 17594 [details]
Patch for Rockchip MP3

Just to confirm, is this the patch that works?  If it is, I will submit it.
Comment 11 Adrian Pilchowiec 2008-09-04 02:50:12 UTC
Yes, that's this one. Everything works with it.
Comment 12 Mohammad Bahathir Hashim 2008-09-07 22:56:03 UTC
(In reply to comment #11)
> Yes, that's this one. Everything works with it.
> 

(In reply to comment #10)
> Created an attachment (id=17594) [details]
> Patch for Rockchip MP3
> 
> Just to confirm, is this the patch that works?  If it is, I will submit it.
> 


It does not work on my GNU/Linux :(

But the previous patch in comment #5 works, but have add script to change max_sectors to 64 in udev script.

Comment 13 Alan Stern 2008-09-08 07:58:08 UTC
Mohammad, I don't understand.  The patch in comment #10 is exactly the same as the patch in comment #5 except that it also sets max_sectors to 64.

So what's going wrong?
Comment 14 Mohammad Bahathir Hashim 2008-09-08 19:22:26 UTC
Yes, but, with patch #10, my GNU/Linux system can detect the device but cannot mount it, and disconnected from USB system. Also /sys/block/%k/device/max_sectors value still 240 and did not change to 64.
I will send debug result in short while.

TQ.
 
Comment 15 Mohammad Bahathir Hashim 2008-09-08 20:03:48 UTC
Created attachment 17693 [details]
dmesg output

Here is the dmesg, after applying patch #10 and mount the device.
Comment 16 Mohammad Bahathir Hashim 2008-09-08 20:10:04 UTC
Created attachment 17694 [details]
lsusb -v -d 071b:3203

lsusb output.

My system configuration

GNU/Linux distro: Slamd64 
Kernel : Linux v2.6.26 vanilla, x86_64, SMP, vT
gcc : gcc-4.4.0

HW: Lenovo Thinkpad T61, 4GB RAM.
Comment 17 Alan Stern 2008-09-09 08:33:35 UTC
The dmesg log in #15 indicates that you did not have patch #10 installed.  You can confirm this by looking at the file in /proc/scsi/usb-storage.
Comment 18 Mohammad Bahathir Hashim 2008-09-09 20:17:05 UTC
Confirmed! Patch #10 works. I forgot to changed 0x0100,0x0100 portion from the original code. I did the patches manually, and sometime I missed it... My bad... Sorry.

From  
>> UNUSUAL_DEV(  0x071b, 0x3203, 0x0100, 0x0100,
to
>> UNUSUAL_DEV(  0x071b, 0x3203, 0x0000, 0x0000,

Thanks you very much.
Comment 19 Artem Sereda 2008-09-27 14:02:07 UTC
patch submitted?
Comment 20 Alan Stern 2008-09-28 08:32:24 UTC
Not only has it been submitted, it has been accepted and is already in Linus's current tree.  It will appear in 2.6.27-rc8.  This bug report can be closed.
Comment 21 Greg Kroah-Hartman 2008-09-29 08:47:38 UTC
ok, closing out.

Note You need to log in before you can comment on or make changes to this bug.