LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* NIKON D50 problem
@ 2007-07-02 19:17 Ni@m
2007-07-02 22:59 ` Andrew Morton
0 siblings, 1 reply; 5+ messages in thread
From: Ni@m @ 2007-07-02 19:17 UTC (permalink / raw)
To: LKML
Hi! Recently I've found out that my camera NIKON D50 can't mount any more.
uname -a: "Linux niam 2.6.22-rc6-cfs-v18 #6 Mon Jul 2 20:19:25 EEST
2007 i686 Intel(R) Celeron(R) M processor 1.50GHz GenuineIntel
GNU/Linux"
dmesg:
scsi 2:0:0:0: Direct-Access NIKON D50 1.00 PQ: 0 ANSI: 2
sd 2:0:0:0: [sdb] 1984001 512-byte hardware sectors (1016 MB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Mode Sense: 0f 00 00 00
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] 1984001 512-byte hardware sectors (1016 MB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Mode Sense: 0f 00 00 00
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sdb: sdb1
sd 2:0:0:0: [sdb] Attached SCSI removable disk
sd 2:0:0:0: Attached scsi generic sg2 type 0
usb-storage: device scan complete
end_request: I/O error, dev sdb, sector 1984000
Buffer I/O error on device sdb, logical block 1984000
end_request: I/O error, dev sdb, sector 1984000
Buffer I/O error on device sdb, logical block 1984000
end_request: I/O error, dev sdb, sector 1983992
Buffer I/O error on device sdb, logical block 1983992
end_request: I/O error, dev sdb, sector 1983993
Buffer I/O error on device sdb, logical block 1983993
Buffer I/O error on device sdb, logical block 1983994
Buffer I/O error on device sdb, logical block 1983995
Buffer I/O error on device sdb, logical block 1983996
Buffer I/O error on device sdb, logical block 1983997
Buffer I/O error on device sdb, logical block 1983998
Buffer I/O error on device sdb, logical block 1983999
end_request: I/O error, dev sdb, sector 1983992
...................
Some time ago(I really can't remember version of the kernel)
everything was Ok. I'll try to find out the workable version of the
kernel ... but I've already tried 2.6.20 - the same =(.
I'm not sure, but It's possible that I've had ATA subsystem but not
libata ... I haven't tested this case yet.
PS. I can see photos on my camera ... flash card is Ok. I have this
problem even if I changed the flash card in this camera.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: NIKON D50 problem
2007-07-02 19:17 NIKON D50 problem Ni@m
@ 2007-07-02 22:59 ` Andrew Morton
2007-07-03 6:02 ` [linux-usb-devel] " Oliver Neukum
2007-07-03 6:44 ` Oliver Neukum
0 siblings, 2 replies; 5+ messages in thread
From: Andrew Morton @ 2007-07-02 22:59 UTC (permalink / raw)
To: Ni@m; +Cc: LKML, linux-usb-devel
On Mon, 2 Jul 2007 22:17:20 +0300
"Ni@m" <niam.niam@gmail.com> wrote:
> Hi! Recently I've found out that my camera NIKON D50 can't mount any more.
> uname -a: "Linux niam 2.6.22-rc6-cfs-v18 #6 Mon Jul 2 20:19:25 EEST
> 2007 i686 Intel(R) Celeron(R) M processor 1.50GHz GenuineIntel
> GNU/Linux"
>
> dmesg:
> scsi 2:0:0:0: Direct-Access NIKON D50 1.00 PQ: 0 ANSI: 2
> sd 2:0:0:0: [sdb] 1984001 512-byte hardware sectors (1016 MB)
> sd 2:0:0:0: [sdb] Write Protect is off
> sd 2:0:0:0: [sdb] Mode Sense: 0f 00 00 00
> sd 2:0:0:0: [sdb] Assuming drive cache: write through
> sd 2:0:0:0: [sdb] 1984001 512-byte hardware sectors (1016 MB)
> sd 2:0:0:0: [sdb] Write Protect is off
> sd 2:0:0:0: [sdb] Mode Sense: 0f 00 00 00
> sd 2:0:0:0: [sdb] Assuming drive cache: write through
> sdb: sdb1
> sd 2:0:0:0: [sdb] Attached SCSI removable disk
> sd 2:0:0:0: Attached scsi generic sg2 type 0
> usb-storage: device scan complete
> end_request: I/O error, dev sdb, sector 1984000
> Buffer I/O error on device sdb, logical block 1984000
> end_request: I/O error, dev sdb, sector 1984000
> Buffer I/O error on device sdb, logical block 1984000
> end_request: I/O error, dev sdb, sector 1983992
> Buffer I/O error on device sdb, logical block 1983992
> end_request: I/O error, dev sdb, sector 1983993
> Buffer I/O error on device sdb, logical block 1983993
> Buffer I/O error on device sdb, logical block 1983994
> Buffer I/O error on device sdb, logical block 1983995
> Buffer I/O error on device sdb, logical block 1983996
> Buffer I/O error on device sdb, logical block 1983997
> Buffer I/O error on device sdb, logical block 1983998
> Buffer I/O error on device sdb, logical block 1983999
> end_request: I/O error, dev sdb, sector 1983992
> ...................
>
> Some time ago(I really can't remember version of the kernel)
> everything was Ok. I'll try to find out the workable version of the
> kernel ... but I've already tried 2.6.20 - the same =(.
> I'm not sure, but It's possible that I've had ATA subsystem but not
> libata ... I haven't tested this case yet.
>
> PS. I can see photos on my camera ... flash card is Ok. I have this
> problem even if I changed the flash card in this camera.
It's more likely a usb-storage or scsi layer problem.
The device reports as having 1984001 sectors and the kernel is reporting IO
errors around the very end of the device. Presumably an IO is straddling
end-of-device and we're not handling that correctly.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [linux-usb-devel] NIKON D50 problem
2007-07-02 22:59 ` Andrew Morton
@ 2007-07-03 6:02 ` Oliver Neukum
2007-07-03 21:01 ` Alan Stern
2007-07-03 6:44 ` Oliver Neukum
1 sibling, 1 reply; 5+ messages in thread
From: Oliver Neukum @ 2007-07-03 6:02 UTC (permalink / raw)
To: linux-usb-devel; +Cc: Andrew Morton, Ni@m, LKML
Am Dienstag, 3. Juli 2007 schrieb Andrew Morton:
> > Some time ago(I really can't remember version of the kernel)
> > everything was Ok. I'll try to find out the workable version of the
> > kernel ... but I've already tried 2.6.20 - the same =(.
> > I'm not sure, but It's possible that I've had ATA subsystem but not
> > libata ... I haven't tested this case yet.
> >
> > PS. I can see photos on my camera ... flash card is Ok. I have this
> > problem even if I changed the flash card in this camera.
>
> It's more likely a usb-storage or scsi layer problem.
>
> The device reports as having 1984001 sectors and the kernel is reporting IO
> errors around the very end of the device. Presumably an IO is straddling
> end-of-device and we're not handling that correctly.
Now I remember. We recently had a report about a buggy device, that close
to the end of the medium could handle only requests for single sectors.
I'll look into the archive.
Regards
Oliver
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [linux-usb-devel] NIKON D50 problem
2007-07-02 22:59 ` Andrew Morton
2007-07-03 6:02 ` [linux-usb-devel] " Oliver Neukum
@ 2007-07-03 6:44 ` Oliver Neukum
1 sibling, 0 replies; 5+ messages in thread
From: Oliver Neukum @ 2007-07-03 6:44 UTC (permalink / raw)
To: linux-usb-devel; +Cc: Andrew Morton, Ni@m, LKML
> It's more likely a usb-storage or scsi layer problem.
>
> The device reports as having 1984001 sectors and the kernel is reporting IO
> errors around the very end of the device. Presumably an IO is straddling
> end-of-device and we're not handling that correctly.
Can you try the work around suggested here:
https://lists.one-eyed-alien.net/pipermail/usb-storage/2007-June/003053.html>
Regards
Oliver
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [linux-usb-devel] NIKON D50 problem
2007-07-03 6:02 ` [linux-usb-devel] " Oliver Neukum
@ 2007-07-03 21:01 ` Alan Stern
0 siblings, 0 replies; 5+ messages in thread
From: Alan Stern @ 2007-07-03 21:01 UTC (permalink / raw)
To: Ni@m; +Cc: Oliver Neukum, USB development list, Andrew Morton, LKML
On Tue, 3 Jul 2007, Oliver Neukum wrote:
> Am Dienstag, 3. Juli 2007 schrieb Andrew Morton:
> > > Some time ago(I really can't remember version of the kernel)
> > > everything was Ok. I'll try to find out the workable version of the
> > > kernel ... but I've already tried 2.6.20 - the same =(.
> > > I'm not sure, but It's possible that I've had ATA subsystem but not
> > > libata ... I haven't tested this case yet.
> > >
> > > PS. I can see photos on my camera ... flash card is Ok. I have this
> > > problem even if I changed the flash card in this camera.
> >
> > It's more likely a usb-storage or scsi layer problem.
> >
> > The device reports as having 1984001 sectors and the kernel is reporting IO
> > errors around the very end of the device. Presumably an IO is straddling
> > end-of-device and we're not handling that correctly.
>
> Now I remember. We recently had a report about a buggy device, that close
> to the end of the medium could handle only requests for single sectors.
> I'll look into the archive.
Most likely this device just needs an unusual_devs entry with
US_FL_FIX_CAPACITY. I could prepare a patch to add this if you send
the output from "lsusb -v" for the camera or its entry in
/proc/bus/usb/devices.
Alan Stern
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-07-03 21:02 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-02 19:17 NIKON D50 problem Ni@m
2007-07-02 22:59 ` Andrew Morton
2007-07-03 6:02 ` [linux-usb-devel] " Oliver Neukum
2007-07-03 21:01 ` Alan Stern
2007-07-03 6:44 ` Oliver Neukum
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).