Hi,

I have noticed an issue with writing to a USB mass storage device, which is
a flash-rom-based mp3 player.

I first noticed this issue with kernel 2.6.5 and the -mm6 patchset.  I have
verified that this issue still occurs with 2.6.6-rc1-bk4, as requested by
Andrew Morton.  This error was never noticed in any kernel v2.6.3 or less;
including v2.4.x kernels; both stock and with -wolk and -mm patchsets.

The errors occur similar to this in my kernel logs:

Apr 19 15:16:04 pc196344 kernel: usb 3-2: new full speed USB device using
address 2
Apr 19 15:16:04 pc196344 kernel: Initializing USB Mass Storage driver...
Apr 19 15:16:04 pc196344 kernel: scsi0 : SCSI emulation for USB Mass Storage
devices
Apr 19 15:16:05 pc196344 kernel:   Vendor: DIVA USB  Model: Media Reader
Rev: 2.22
Apr 19 15:16:05 pc196344 kernel:   Type:   Direct-Access
ANSI SCSI revision: 02
Apr 19 15:16:05 pc196344 kernel: Attached scsi generic sg0 at scsi0, channel
0, id 0, lun 0,  type 0
Apr 19 15:16:05 pc196344 kernel: USB Mass Storage device found at 2
Apr 19 15:16:05 pc196344 kernel: usbcore: registered new driver usb-storage
Apr 19 15:16:05 pc196344 kernel: USB Mass Storage support registered.
Apr 19 15:16:05 pc196344 kernel: SCSI device sda: 446976 512-byte hdwr
sectors (229 MB)
Apr 19 15:16:05 pc196344 kernel: sda: assuming Write Enabled
Apr 19 15:16:05 pc196344 kernel: sda: assuming drive cache: write through
Apr 19 15:16:05 pc196344 kernel:  /dev/scsi/host0/bus0/target0/lun0: p1
Apr 19 15:16:05 pc196344 kernel: Attached scsi removable disk sda at scsi0,
channel 0, id 0, lun 0
Apr 19 15:19:07 pc196344 kernel: SCSI error : <0 0 0 0> return code =
0x6000000
Apr 19 15:19:07 pc196344 kernel: end_request: I/O error, dev sda, sector 112
Apr 19 15:19:07 pc196344 kernel: Buffer I/O error on device sda1, logical
block 111
Apr 19 15:19:07 pc196344 kernel: lost page write due to I/O error on sda1
Apr 19 15:21:37 pc196344 kernel: SCSI error : <0 0 0 0> return code =
0x6000000
Apr 19 15:21:37 pc196344 kernel: end_request: I/O error, dev sda, sector 160
Apr 19 15:21:37 pc196344 kernel: Buffer I/O error on device sda1, logical
block 159
Apr 19 15:21:37 pc196344 kernel: lost page write due to I/O error on sda1

I have recompiled a kernel with usb-storage verbose logging and SCSI
logging; and can provide output from these logs upon request.

I'm using a Gentoo distribution.  The output from the "ver_linux" script in
the kernel tree is:

Linux pc196344 2.6.6-rc1-bk4 #1 Tue Apr 20 16:08:49 NZST 2004 i686 Intel(R)
Pentium(R) 4 CPU 2.00GHz GenuineIntel GNU/Linux

Gnu C                  3.3.2
Gnu make               3.80
binutils               2.14.90.0.7
util-linux             2.12
mount                  2.12
module-init-tools      3.0
e2fsprogs              1.34
xfsprogs               2.3.9
PPP                    2.4.1
nfs-utils              1.0.6
Linux C Library        2.3.3
Dynamic linker (ldd)   2.3.3
Procps                 3.1.15
Net-tools              1.60
Kbd                    1.08
Sh-utils               5.0.91
Modules Loaded         sd_mod usb_storage sg nfsd exportfs lockd sunrpc
vmnet parport_pc parport vmmon usbhid uhci_hcd ehci_hcd e100 mii
snd_intel8x0 snd_ac97_codec snd_mpu401_uart snd_rawmidi snd_seq_oss
snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss snd_pcm snd_page_alloc
snd_timer snd_mixer_oss snd soundcore rtc nvidia usbcore dm_mod st ide_cd
sr_mod scsi_mod cdrom

I don't know if it matters, but my glibc has been compiled with NPTL
support, thus:

GNU C Library stable release version 2.3.3, by Roland McGrath et al.
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5,
propolice-3.3-7).
Compiled on a Linux 2.6.2-jrt1 system on 2004-02-20.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        NPTL 0.60 by Ulrich Drepper
        BIND-8.2.3-T5B
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
Report bugs using the `glibcbug' script to <[EMAIL PROTECTED]>.

If there is any more information that can be of use, please let me know.

Thanks,

James Roberts-Thomson
Senior Systems Engineer DDI +64 4 494 4436
Infrastructure Projects Tel +64 4 494 4000
The National Bank of New Zealand Limited        Fax +64 4 802 8509
----------
Any simple idea will be worded in the most complicated way.


This communication is confidential and may contain privileged material.
If you are not the intended recipient you must not use, disclose, copy or retain it.
If you have received it in error please immediately notify me by return email
and delete the emails.
Thank you.


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to