public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Recent 2.6 kernels can't read an entire ATAPI CD or DVD
@ 2004-07-28  4:30 Bryan O'Sullivan
  2004-07-28  5:31 ` Jens Axboe
  0 siblings, 1 reply; 23+ messages in thread
From: Bryan O'Sullivan @ 2004-07-28  4:30 UTC (permalink / raw)
  To: axboe, linux-kernel

Hi, Jens -

I'm having trouble reading a DVD or CD image from an ATAPI drive that
identifies itself as a 'LITEON DVD-ROM LTD163D'.  This is with vanilla
2.6.7 on a system running Fedora Core 2.

Regardless of what I do, I get the same errors:

        Jul 27 21:18:30 camp4 kernel: hdc: command error: status=0x51 { DriveReady SeekComplete Error }
        Jul 27 21:18:30 camp4 kernel: hdc: command error: error=0x54
        Jul 27 21:18:30 camp4 kernel: end_request: I/O error, dev hdc, sector 837264
        Jul 27 21:18:30 camp4 kernel: Buffer I/O error on device hdc, logical block 104658

I have ide-cd compiled as a module.  This occurs whether or not ide-cd
is loaded (I don't have ide-scsi enabled), and whether or not I have DMA
turned on.

I don't believe there is anything wrong with the drive, as it used to
work OK on 2.4, 2.5, and early 2.6 kernels, and I believe the media to
be fine, as the disk in question plays back on a Mac and a DVD player.

Googling for "error=0x54", I see a lot of reports of this kind of
problem, but never with any resolutions, so I'm stumped.  Is there any
information I can give you that would help?

Thanks,

	<b


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Recent 2.6 kernels can't read an entire ATAPI CD or DVD
  2004-07-28  4:30 Recent 2.6 kernels can't read an entire ATAPI CD or DVD Bryan O'Sullivan
@ 2004-07-28  5:31 ` Jens Axboe
  2004-07-28  6:51   ` Edward Angelo Dayao
  0 siblings, 1 reply; 23+ messages in thread
From: Jens Axboe @ 2004-07-28  5:31 UTC (permalink / raw)
  To: Bryan O'Sullivan; +Cc: linux-kernel

On Tue, Jul 27 2004, Bryan O'Sullivan wrote:
> Hi, Jens -
> 
> I'm having trouble reading a DVD or CD image from an ATAPI drive that
> identifies itself as a 'LITEON DVD-ROM LTD163D'.  This is with vanilla
> 2.6.7 on a system running Fedora Core 2.
> 
> Regardless of what I do, I get the same errors:
> 
>         Jul 27 21:18:30 camp4 kernel: hdc: command error: status=0x51 { DriveReady SeekComplete Error }
>         Jul 27 21:18:30 camp4 kernel: hdc: command error: error=0x54
>         Jul 27 21:18:30 camp4 kernel: end_request: I/O error, dev hdc, sector 837264
>         Jul 27 21:18:30 camp4 kernel: Buffer I/O error on device hdc, logical block 104658
> 
> I have ide-cd compiled as a module.  This occurs whether or not ide-cd
> is loaded (I don't have ide-scsi enabled), and whether or not I have DMA
> turned on.
> 
> I don't believe there is anything wrong with the drive, as it used to
> work OK on 2.4, 2.5, and early 2.6 kernels, and I believe the media to
> be fine, as the disk in question plays back on a Mac and a DVD player.
> 
> Googling for "error=0x54", I see a lot of reports of this kind of
> problem, but never with any resolutions, so I'm stumped.  Is there any
> information I can give you that would help?

When does this happen - during kernel load, or during run of init
scripts?

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Recent 2.6 kernels can't read an entire ATAPI CD or DVD
  2004-07-28  5:31 ` Jens Axboe
@ 2004-07-28  6:51   ` Edward Angelo Dayao
  2004-07-28  6:53     ` Jens Axboe
  0 siblings, 1 reply; 23+ messages in thread
From: Edward Angelo Dayao @ 2004-07-28  6:51 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Bryan O'Sullivan, linux-kernel

yeah i get this kind of error in my logs as well from my liteon
dvd-rom at home. thats like 6 months old and happened on fc2 when i
had that installed on it. haven't noticed anything on mandrake 10 (the
current distro i use at home) with 2.6.7.

i got the same error on my old notebook, a compaq presario... that was
prior to the drive being sent to that big junk yard in the sky.  i
forget what model that was.  but i was running then...  rh9.

hope this bit helps guys resolve this. 

-cocoy

On Wed, 28 Jul 2004 07:31:08 +0200, Jens Axboe <axboe@suse.de> wrote:
> On Tue, Jul 27 2004, Bryan O'Sullivan wrote:
> > Hi, Jens -
> >
> > I'm having trouble reading a DVD or CD image from an ATAPI drive that
> > identifies itself as a 'LITEON DVD-ROM LTD163D'.  This is with vanilla
> > 2.6.7 on a system running Fedora Core 2.
> >
> > Regardless of what I do, I get the same errors:
> >
> >         Jul 27 21:18:30 camp4 kernel: hdc: command error: status=0x51 { DriveReady SeekComplete Error }
> >         Jul 27 21:18:30 camp4 kernel: hdc: command error: error=0x54
> >         Jul 27 21:18:30 camp4 kernel: end_request: I/O error, dev hdc, sector 837264
> >         Jul 27 21:18:30 camp4 kernel: Buffer I/O error on device hdc, logical block 104658
> >
> > I have ide-cd compiled as a module.  This occurs whether or not ide-cd
> > is loaded (I don't have ide-scsi enabled), and whether or not I have DMA
> > turned on.
> >
> > I don't believe there is anything wrong with the drive, as it used to
> > work OK on 2.4, 2.5, and early 2.6 kernels, and I believe the media to
> > be fine, as the disk in question plays back on a Mac and a DVD player.
> >
> > Googling for "error=0x54", I see a lot of reports of this kind of
> > problem, but never with any resolutions, so I'm stumped.  Is there any
> > information I can give you that would help?
> 
> When does this happen - during kernel load, or during run of init
> scripts?
> 
> --
> Jens Axboe
> 
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 


--

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Recent 2.6 kernels can't read an entire ATAPI CD or DVD
  2004-07-28  6:51   ` Edward Angelo Dayao
@ 2004-07-28  6:53     ` Jens Axboe
  2004-07-28 14:52       ` Dave Jones
  0 siblings, 1 reply; 23+ messages in thread
From: Jens Axboe @ 2004-07-28  6:53 UTC (permalink / raw)
  To: Edward Angelo Dayao; +Cc: Bryan O'Sullivan, linux-kernel

On Wed, Jul 28 2004, Edward Angelo Dayao wrote:
> yeah i get this kind of error in my logs as well from my liteon
> dvd-rom at home. thats like 6 months old and happened on fc2 when i
> had that installed on it. haven't noticed anything on mandrake 10 (the
> current distro i use at home) with 2.6.7.
> 
> i got the same error on my old notebook, a compaq presario... that was
> prior to the drive being sent to that big junk yard in the sky.  i
> forget what model that was.  but i was running then...  rh9.
> 
> hope this bit helps guys resolve this. 

(dont top post!)

Sounds like something fc2 is doing, I'd suggest filing a bug report with
them.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Recent 2.6 kernels can't read an entire ATAPI CD or DVD
  2004-07-28  6:53     ` Jens Axboe
@ 2004-07-28 14:52       ` Dave Jones
  2004-07-28 14:55         ` Arjan van de Ven
  2004-07-28 16:53         ` Claudio Martins
  0 siblings, 2 replies; 23+ messages in thread
From: Dave Jones @ 2004-07-28 14:52 UTC (permalink / raw)
  To: Jens Axboe
  Cc: Edward Angelo Dayao, Bryan O'Sullivan, linux-kernel, arjanv

On Wed, Jul 28, 2004 at 08:53:19AM +0200, Jens Axboe wrote:
 > On Wed, Jul 28 2004, Edward Angelo Dayao wrote:
 > > yeah i get this kind of error in my logs as well from my liteon
 > > dvd-rom at home. thats like 6 months old and happened on fc2 when i
 > > had that installed on it. haven't noticed anything on mandrake 10 (the
 > > current distro i use at home) with 2.6.7.
 > > 
 > > i got the same error on my old notebook, a compaq presario... that was
 > > prior to the drive being sent to that big junk yard in the sky.  i
 > > forget what model that was.  but i was running then...  rh9.
 > > 
 > > hope this bit helps guys resolve this. 
 > 
 > (dont top post!)
 > 
 > Sounds like something fc2 is doing, I'd suggest filing a bug report with
 > them.

Curious. The relevant code should match mainline 1:1 there unless I'm
mistaken. Arjan ?

		Dave

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Recent 2.6 kernels can't read an entire ATAPI CD or DVD
  2004-07-28 14:52       ` Dave Jones
@ 2004-07-28 14:55         ` Arjan van de Ven
  2004-07-28 16:33           ` Jens Axboe
  2004-07-28 16:53         ` Claudio Martins
  1 sibling, 1 reply; 23+ messages in thread
From: Arjan van de Ven @ 2004-07-28 14:55 UTC (permalink / raw)
  To: Dave Jones, Jens Axboe, Edward Angelo Dayao, Bryan O'Sullivan,
	linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1019 bytes --]

On Wed, Jul 28, 2004 at 03:52:28PM +0100, Dave Jones wrote:
> On Wed, Jul 28, 2004 at 08:53:19AM +0200, Jens Axboe wrote:
>  > On Wed, Jul 28 2004, Edward Angelo Dayao wrote:
>  > > yeah i get this kind of error in my logs as well from my liteon
>  > > dvd-rom at home. thats like 6 months old and happened on fc2 when i
>  > > had that installed on it. haven't noticed anything on mandrake 10 (the
>  > > current distro i use at home) with 2.6.7.
>  > > 
>  > > i got the same error on my old notebook, a compaq presario... that was
>  > > prior to the drive being sent to that big junk yard in the sky.  i
>  > > forget what model that was.  but i was running then...  rh9.
>  > > 
>  > > hope this bit helps guys resolve this. 
>  > 
>  > (dont top post!)
>  > 
>  > Sounds like something fc2 is doing, I'd suggest filing a bug report with
>  > them.
> 
> Curious. The relevant code should match mainline 1:1 there unless I'm
> mistaken. Arjan ?

we don't patch the ide layer, ide-cd or isofs... so really curious.


[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Recent 2.6 kernels can't read an entire ATAPI CD or DVD
  2004-07-28 14:55         ` Arjan van de Ven
@ 2004-07-28 16:33           ` Jens Axboe
  2004-07-28 17:05             ` Jens Axboe
  0 siblings, 1 reply; 23+ messages in thread
From: Jens Axboe @ 2004-07-28 16:33 UTC (permalink / raw)
  To: Arjan van de Ven
  Cc: Dave Jones, Edward Angelo Dayao, Bryan O'Sullivan,
	linux-kernel

On Wed, Jul 28 2004, Arjan van de Ven wrote:
> On Wed, Jul 28, 2004 at 03:52:28PM +0100, Dave Jones wrote:
> > On Wed, Jul 28, 2004 at 08:53:19AM +0200, Jens Axboe wrote:
> >  > On Wed, Jul 28 2004, Edward Angelo Dayao wrote:
> >  > > yeah i get this kind of error in my logs as well from my liteon
> >  > > dvd-rom at home. thats like 6 months old and happened on fc2 when i
> >  > > had that installed on it. haven't noticed anything on mandrake 10 (the
> >  > > current distro i use at home) with 2.6.7.
> >  > > 
> >  > > i got the same error on my old notebook, a compaq presario... that was
> >  > > prior to the drive being sent to that big junk yard in the sky.  i
> >  > > forget what model that was.  but i was running then...  rh9.
> >  > > 
> >  > > hope this bit helps guys resolve this. 
> >  > 
> >  > (dont top post!)
> >  > 
> >  > Sounds like something fc2 is doing, I'd suggest filing a bug report with
> >  > them.
> > 
> > Curious. The relevant code should match mainline 1:1 there unless I'm
> > mistaken. Arjan ?
> 
> we don't patch the ide layer, ide-cd or isofs... so really curious.

I meant that something from userspace is triggering these errors, it's
not necessarily a kernel issue.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Recent 2.6 kernels can't read an entire ATAPI CD or DVD
  2004-07-28 14:52       ` Dave Jones
  2004-07-28 14:55         ` Arjan van de Ven
@ 2004-07-28 16:53         ` Claudio Martins
  1 sibling, 0 replies; 23+ messages in thread
From: Claudio Martins @ 2004-07-28 16:53 UTC (permalink / raw)
  To: linux-kernel
  Cc: Dave Jones, Jens Axboe, Edward Angelo Dayao, Bryan O'Sullivan,
	arjanv


On Wednesday 28 July 2004 15:52, Dave Jones wrote:
> On Wed, Jul 28, 2004 at 08:53:19AM +0200, Jens Axboe wrote:
>  > On Wed, Jul 28 2004, Edward Angelo Dayao wrote:
>  > > yeah i get this kind of error in my logs as well from my liteon
>  > > dvd-rom at home. thats like 6 months old and happened on fc2 when i
>  > > had that installed on it. haven't noticed anything on mandrake 10 (the
>  > > current distro i use at home) with 2.6.7.
>  > >
>  > > i got the same error on my old notebook, a compaq presario... that was
>  > > prior to the drive being sent to that big junk yard in the sky.  i
>  > > forget what model that was.  but i was running then...  rh9.
>  > >
>  > > hope this bit helps guys resolve this.
>  >
>  > (dont top post!)
>  >
>  > Sounds like something fc2 is doing, I'd suggest filing a bug report with
>  > them.
>
> Curious. The relevant code should match mainline 1:1 there unless I'm
> mistaken. Arjan ?

  I'm having similar problems running vanilla 2.6.7 with Debian-amd64 on an 
Athlon 64 using a Philips DVDR824P. It refuses to read some of my dvd+r discs 
to the end, while some may even refuse to mount. In both cases the errors are 
of the "attempting to access beyond end of device" type. 

Interestingly the same discs on my laptop with 2.6.7 and an LG GCA-4040N 
dvd+rw writer read fine. After some time (and some cd burns later) one of the 
discs which used to give errors on the Philips writer started to read fine 
again, which left me a bit confused.

  Sorry for not being too detailed about system configuration at this time. If 
you have interest in this, I can give more detailed system info and try to 
report as soon as this happens again with the exact error messages. 
Unfortunately I have not yet managed to create a test iso image or similar 
which would reproduce the problem reliably, but I can add that something 
similar also happenned with cdroms.

Best regards

Claudio



^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Recent 2.6 kernels can't read an entire ATAPI CD or DVD
  2004-07-28 16:33           ` Jens Axboe
@ 2004-07-28 17:05             ` Jens Axboe
  2004-07-28 21:57               ` Bryan O'Sullivan
  0 siblings, 1 reply; 23+ messages in thread
From: Jens Axboe @ 2004-07-28 17:05 UTC (permalink / raw)
  To: Arjan van de Ven
  Cc: Dave Jones, Edward Angelo Dayao, Bryan O'Sullivan,
	linux-kernel

On Wed, Jul 28 2004, Jens Axboe wrote:
> On Wed, Jul 28 2004, Arjan van de Ven wrote:
> > On Wed, Jul 28, 2004 at 03:52:28PM +0100, Dave Jones wrote:
> > > On Wed, Jul 28, 2004 at 08:53:19AM +0200, Jens Axboe wrote:
> > >  > On Wed, Jul 28 2004, Edward Angelo Dayao wrote:
> > >  > > yeah i get this kind of error in my logs as well from my liteon
> > >  > > dvd-rom at home. thats like 6 months old and happened on fc2 when i
> > >  > > had that installed on it. haven't noticed anything on mandrake 10 (the
> > >  > > current distro i use at home) with 2.6.7.
> > >  > > 
> > >  > > i got the same error on my old notebook, a compaq presario... that was
> > >  > > prior to the drive being sent to that big junk yard in the sky.  i
> > >  > > forget what model that was.  but i was running then...  rh9.
> > >  > > 
> > >  > > hope this bit helps guys resolve this. 
> > >  > 
> > >  > (dont top post!)
> > >  > 
> > >  > Sounds like something fc2 is doing, I'd suggest filing a bug report with
> > >  > them.
> > > 
> > > Curious. The relevant code should match mainline 1:1 there unless I'm
> > > mistaken. Arjan ?
> > 
> > we don't patch the ide layer, ide-cd or isofs... so really curious.
> 
> I meant that something from userspace is triggering these errors, it's
> not necessarily a kernel issue.

Sorry, I mixed up two different threads. On this thread, I agree it's
probably a kernel issue. Can you check what capacity isosize gives you
on the device, and what /proc/ide/hdc/capacity tells you?

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Recent 2.6 kernels can't read an entire ATAPI CD or DVD
  2004-07-28 17:05             ` Jens Axboe
@ 2004-07-28 21:57               ` Bryan O'Sullivan
  2004-07-29  8:49                 ` Jens Axboe
  0 siblings, 1 reply; 23+ messages in thread
From: Bryan O'Sullivan @ 2004-07-28 21:57 UTC (permalink / raw)
  To: Jens Axboe
  Cc: Arjan van de Ven, Dave Jones, Edward Angelo Dayao, linux-kernel

On Wed, 2004-07-28 at 19:05 +0200, Jens Axboe wrote:

> On this thread, I agree it's
> probably a kernel issue. Can you check what capacity isosize gives you
> on the device, and what /proc/ide/hdc/capacity tells you?

This is a basically unpatched 2.6.7 kernel:

~ # uname -a
Linux abcd.serpentine.com 2.6.7-1.1791-up #1 Sat Jul 10 14:22:15 PDT
2004 i686 athlon i386 GNU/Linux

~ # isosize /dev/hdc
8164939776

~ # cat /proc/ide/hdc/capacity
15947148

	<b


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Recent 2.6 kernels can't read an entire ATAPI CD or DVD
  2004-07-28 21:57               ` Bryan O'Sullivan
@ 2004-07-29  8:49                 ` Jens Axboe
  2004-07-30  5:49                   ` Robert Love
  0 siblings, 1 reply; 23+ messages in thread
From: Jens Axboe @ 2004-07-29  8:49 UTC (permalink / raw)
  To: Bryan O'Sullivan
  Cc: Arjan van de Ven, Dave Jones, Edward Angelo Dayao, linux-kernel

On Wed, Jul 28 2004, Bryan O'Sullivan wrote:
> On Wed, 2004-07-28 at 19:05 +0200, Jens Axboe wrote:
> 
> > On this thread, I agree it's
> > probably a kernel issue. Can you check what capacity isosize gives you
> > on the device, and what /proc/ide/hdc/capacity tells you?
> 
> This is a basically unpatched 2.6.7 kernel:
> 
> ~ # uname -a
> Linux abcd.serpentine.com 2.6.7-1.1791-up #1 Sat Jul 10 14:22:15 PDT
> 2004 i686 athlon i386 GNU/Linux
> 
> ~ # isosize /dev/hdc
> 8164939776
> 
> ~ # cat /proc/ide/hdc/capacity
> 15947148

Looks pretty perfect, maybe it's read-ahead screwing it up. Try if
setting hdparm -a0 /dev/hdc makes a difference.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Recent 2.6 kernels can't read an entire ATAPI CD or DVD
  2004-07-29  8:49                 ` Jens Axboe
@ 2004-07-30  5:49                   ` Robert Love
  2004-07-30  5:53                     ` Jens Axboe
  0 siblings, 1 reply; 23+ messages in thread
From: Robert Love @ 2004-07-30  5:49 UTC (permalink / raw)
  To: Jens Axboe
  Cc: Bryan O'Sullivan, Arjan van de Ven, Dave Jones,
	Edward Angelo Dayao, linux-kernel

On Thu, 2004-07-29 at 10:49 +0200, Jens Axboe wrote:

> Looks pretty perfect, maybe it's read-ahead screwing it up. Try if
> setting hdparm -a0 /dev/hdc makes a difference.

I am seeing similar errors[1] on later 2.6, too, with about 50% of my
audio CD collection.  Some work, some do not.  I see no pattern.

Already tried disabling read-ahead, does not matter.  Also tried a
different drive.

	Robert Love

[1] 
hdc: command error: status=0x51 { DriveReady SeekComplete Error }
hdc: command error: error=0x54
end_request: I/O error, dev hdc, sector 8
Buffer I/O error on device hdc, logical block 1
...


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Recent 2.6 kernels can't read an entire ATAPI CD or DVD
  2004-07-30  5:49                   ` Robert Love
@ 2004-07-30  5:53                     ` Jens Axboe
  2004-07-30  5:57                       ` Robert Love
  2004-08-01  5:29                       ` Bryan O'Sullivan
  0 siblings, 2 replies; 23+ messages in thread
From: Jens Axboe @ 2004-07-30  5:53 UTC (permalink / raw)
  To: Robert Love
  Cc: Bryan O'Sullivan, Arjan van de Ven, Dave Jones,
	Edward Angelo Dayao, linux-kernel

On Fri, Jul 30 2004, Robert Love wrote:
> On Thu, 2004-07-29 at 10:49 +0200, Jens Axboe wrote:
> 
> > Looks pretty perfect, maybe it's read-ahead screwing it up. Try if
> > setting hdparm -a0 /dev/hdc makes a difference.
> 
> I am seeing similar errors[1] on later 2.6, too, with about 50% of my
> audio CD collection.  Some work, some do not.  I see no pattern.
> 
> Already tried disabling read-ahead, does not matter.  Also tried a
> different drive.

read-ahead doesn't matter on ripping audio, just for fs work.

The audio problems might be fixed in 2.6.8-rc1-mm1 + the bounce patch
posted a few times (unfortunately 2.6.8-rc2-mm1 drops the patch for some
reason).

> 	Robert Love
> 
> [1] 
> hdc: command error: status=0x51 { DriveReady SeekComplete Error }
> hdc: command error: error=0x54
> end_request: I/O error, dev hdc, sector 8
> Buffer I/O error on device hdc, logical block 1

So this happens during ripping, or? The problem with the errors like the
above is that they don't indicate a specific problem. I can't just look
at the error and see what causes it, it could be a million things.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Recent 2.6 kernels can't read an entire ATAPI CD or DVD
  2004-07-30  5:53                     ` Jens Axboe
@ 2004-07-30  5:57                       ` Robert Love
  2004-07-30  6:10                         ` Jens Axboe
  2004-08-01  5:29                       ` Bryan O'Sullivan
  1 sibling, 1 reply; 23+ messages in thread
From: Robert Love @ 2004-07-30  5:57 UTC (permalink / raw)
  To: Jens Axboe
  Cc: Bryan O'Sullivan, Arjan van de Ven, Dave Jones,
	Edward Angelo Dayao, linux-kernel

On Fri, 2004-07-30 at 07:53 +0200, Jens Axboe wrote:

> read-ahead doesn't matter on ripping audio, just for fs work.

This isn't ripping, just playing.

> The audio problems might be fixed in 2.6.8-rc1-mm1 + the bounce patch
> posted a few times (unfortunately 2.6.8-rc2-mm1 drops the patch for some
> reason).

Yah, I will retest with 2.6.8-rc2-mm1.

> > [1] 
> > hdc: command error: status=0x51 { DriveReady SeekComplete Error }
> > hdc: command error: error=0x54
> > end_request: I/O error, dev hdc, sector 8
> > Buffer I/O error on device hdc, logical block 1
> 
> So this happens during ripping, or?

During playback.  Or any poking of the drive whatsoever, actually.

There will be multiple errors on different blocks, until ultimately IDE
times out and does an ATAPI reset.

> The problem with the errors like the above is that they don't
> indicate a specific problem. I can't just look at the error and see
> what causes it, it could be a million things.

I know :P

	Robert Love





^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Recent 2.6 kernels can't read an entire ATAPI CD or DVD
  2004-07-30  5:57                       ` Robert Love
@ 2004-07-30  6:10                         ` Jens Axboe
  2004-07-30  6:26                           ` Prakash K. Cheemplavam
  2004-07-30  6:28                           ` Robert Love
  0 siblings, 2 replies; 23+ messages in thread
From: Jens Axboe @ 2004-07-30  6:10 UTC (permalink / raw)
  To: Robert Love
  Cc: Bryan O'Sullivan, Arjan van de Ven, Dave Jones,
	Edward Angelo Dayao, linux-kernel

On Fri, Jul 30 2004, Robert Love wrote:
> On Fri, 2004-07-30 at 07:53 +0200, Jens Axboe wrote:
> 
> > read-ahead doesn't matter on ripping audio, just for fs work.
> 
> This isn't ripping, just playing.

Strange, something else must be accessing the drive at the same time.

> > The audio problems might be fixed in 2.6.8-rc1-mm1 + the bounce patch
> > posted a few times (unfortunately 2.6.8-rc2-mm1 drops the patch for some
> > reason).
> 
> Yah, I will retest with 2.6.8-rc2-mm1.

If it's just playback, don't bother.

> > > [1] 
> > > hdc: command error: status=0x51 { DriveReady SeekComplete Error }
> > > hdc: command error: error=0x54
> > > end_request: I/O error, dev hdc, sector 8
> > > Buffer I/O error on device hdc, logical block 1
> > 
> > So this happens during ripping, or?
> 
> During playback.  Or any poking of the drive whatsoever, actually.
> 
> There will be multiple errors on different blocks, until ultimately IDE
> times out and does an ATAPI reset.

So the question is - what else is accessing the drive?

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Recent 2.6 kernels can't read an entire ATAPI CD or DVD
  2004-07-30  6:10                         ` Jens Axboe
@ 2004-07-30  6:26                           ` Prakash K. Cheemplavam
  2004-07-30  6:30                             ` Robert Love
  2004-07-30  6:28                           ` Robert Love
  1 sibling, 1 reply; 23+ messages in thread
From: Prakash K. Cheemplavam @ 2004-07-30  6:26 UTC (permalink / raw)
  To: Jens Axboe
  Cc: Robert Love, Bryan O'Sullivan, Arjan van de Ven, Dave Jones,
	Edward Angelo Dayao, linux-kernel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jens Axboe wrote:
| On Fri, Jul 30 2004, Robert Love wrote:
|
|>On Fri, 2004-07-30 at 07:53 +0200, Jens Axboe wrote:
|>
|>
|>>read-ahead doesn't matter on ripping audio, just for fs work.
|>
|>This isn't ripping, just playing.
|
|
| Strange, something else must be accessing the drive at the same time.
|
| So the question is - what else is accessing the drive?

Could it be famd?

Prakash
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBCen4xU2n/+9+t5gRAks0AKDxR4217lUGmNNDznYZU6VOWdE1IQCeKNou
2njaepIb6XS11k/7Imj8zto=
=KRNO
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Recent 2.6 kernels can't read an entire ATAPI CD or DVD
  2004-07-30  6:10                         ` Jens Axboe
  2004-07-30  6:26                           ` Prakash K. Cheemplavam
@ 2004-07-30  6:28                           ` Robert Love
  2004-07-30  6:38                             ` Jens Axboe
  1 sibling, 1 reply; 23+ messages in thread
From: Robert Love @ 2004-07-30  6:28 UTC (permalink / raw)
  To: Jens Axboe
  Cc: Bryan O'Sullivan, Arjan van de Ven, Dave Jones,
	Edward Angelo Dayao, linux-kernel

On Fri, 2004-07-30 at 08:10 +0200, Jens Axboe wrote:

> Strange, something else must be accessing the drive at the same time.

Don't see anything.

> If it's just playback, don't bother.

Did not work anyhow.

> So the question is - what else is accessing the drive?

Nothing but the CD player - it is doing CDDB, though, so that is where
the reads are coming from.

It works/fails consistently - for example, I have one CD that never
works and one CD that does, as if the CD is physically damaged.  Works
elsewhere, though.

	Robert Love



^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Recent 2.6 kernels can't read an entire ATAPI CD or DVD
  2004-07-30  6:26                           ` Prakash K. Cheemplavam
@ 2004-07-30  6:30                             ` Robert Love
  2004-07-30  6:39                               ` Jens Axboe
  0 siblings, 1 reply; 23+ messages in thread
From: Robert Love @ 2004-07-30  6:30 UTC (permalink / raw)
  To: Prakash K. Cheemplavam
  Cc: Jens Axboe, Bryan O'Sullivan, Arjan van de Ven, Dave Jones,
	Edward Angelo Dayao, linux-kernel

On Fri, 2004-07-30 at 08:26 +0200, Prakash K. Cheemplavam wrote:

> Could it be famd?

I thought about that, killed it, still happens.

The only "something is poking the drive" theory does not make sense,
though, since it consistently works with some CD's and not others.

	Robert Love



^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Recent 2.6 kernels can't read an entire ATAPI CD or DVD
  2004-07-30  6:28                           ` Robert Love
@ 2004-07-30  6:38                             ` Jens Axboe
  2004-07-30 15:33                               ` Robert Love
  0 siblings, 1 reply; 23+ messages in thread
From: Jens Axboe @ 2004-07-30  6:38 UTC (permalink / raw)
  To: Robert Love
  Cc: Bryan O'Sullivan, Arjan van de Ven, Dave Jones,
	Edward Angelo Dayao, linux-kernel

On Fri, Jul 30 2004, Robert Love wrote:
> On Fri, 2004-07-30 at 08:10 +0200, Jens Axboe wrote:
> 
> > Strange, something else must be accessing the drive at the same time.
> 
> Don't see anything.

There must be something if you have the buffer io errors and matching
sector number.

> > If it's just playback, don't bother.
> 
> Did not work anyhow.
> 
> > So the question is - what else is accessing the drive?
> 
> Nothing but the CD player - it is doing CDDB, though, so that is where
> the reads are coming from.

CDDB lookups don't generate io to the drive (apart from that it already
grabbed to show you the toc).

> It works/fails consistently - for example, I have one CD that never
> works and one CD that does, as if the CD is physically damaged.  Works
> elsewhere, though.

And the CD that never works, is that consistent across different drives?

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Recent 2.6 kernels can't read an entire ATAPI CD or DVD
  2004-07-30  6:30                             ` Robert Love
@ 2004-07-30  6:39                               ` Jens Axboe
  0 siblings, 0 replies; 23+ messages in thread
From: Jens Axboe @ 2004-07-30  6:39 UTC (permalink / raw)
  To: Robert Love
  Cc: Prakash K. Cheemplavam, Bryan O'Sullivan, Arjan van de Ven,
	Dave Jones, Edward Angelo Dayao, linux-kernel

On Fri, Jul 30 2004, Robert Love wrote:
> On Fri, 2004-07-30 at 08:26 +0200, Prakash K. Cheemplavam wrote:
> 
> > Could it be famd?
> 
> I thought about that, killed it, still happens.
> 
> The only "something is poking the drive" theory does not make sense,
> though, since it consistently works with some CD's and not others.

Well, your io error doesn't correlate that story :-)

But I'm just puzzled. I guess I could re-rip my entire CD collection and
see what happens here.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Recent 2.6 kernels can't read an entire ATAPI CD or DVD
  2004-07-30  6:38                             ` Jens Axboe
@ 2004-07-30 15:33                               ` Robert Love
  0 siblings, 0 replies; 23+ messages in thread
From: Robert Love @ 2004-07-30 15:33 UTC (permalink / raw)
  To: Jens Axboe
  Cc: Bryan O'Sullivan, Arjan van de Ven, Dave Jones,
	Edward Angelo Dayao, linux-kernel

On Fri, 2004-07-30 at 08:38 +0200, Jens Axboe wrote:

> And the CD that never works, is that consistent across different drives?

Yes.  So in this machine I have two drives (a CD-RW and a DVD-ROM) and
the same disk works in neither.

I think I should do a binary search backward to find where it started
failing.

	Robert Love



^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Recent 2.6 kernels can't read an entire ATAPI CD or DVD
  2004-07-30  5:53                     ` Jens Axboe
  2004-07-30  5:57                       ` Robert Love
@ 2004-08-01  5:29                       ` Bryan O'Sullivan
  1 sibling, 0 replies; 23+ messages in thread
From: Bryan O'Sullivan @ 2004-08-01  5:29 UTC (permalink / raw)
  To: Jens Axboe
  Cc: Robert Love, Arjan van de Ven, Dave Jones, Edward Angelo Dayao,
	linux-kernel

On Fri, 2004-07-30 at 07:53 +0200, Jens Axboe wrote:

> read-ahead doesn't matter on ripping audio, just for fs work.

When I tried using dd with readahead off, I got the same error almost
immediately, instead of after a number of seconds.  In other words, it
made the problem worse.

	<b


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Recent 2.6 kernels can't read an entire ATAPI CD or DVD
@ 2004-08-01 17:30 Lukas Hejtmanek
  0 siblings, 0 replies; 23+ messages in thread
From: Lukas Hejtmanek @ 2004-08-01 17:30 UTC (permalink / raw)
  To: linux-kernel

Hello,

I have the same problem with dvd+rw medium that my sony dvd-rom does not read.

I have dvd with some vob files on it and with kernel 2.4.x it could be read
pretty fine but with 2.6.7-bk17 or 2.6.8-rc1-bk3 it results with that errors.

There is an interesting thing. If I burn on that disc different vobs then 
the same files could not be read. (In the mean of naming of files VTS_01_0.BUP
and last two VOBs)

Reading means mount disc and with midnight commander to copy files..

-- 
Lukáš Hejtmánek

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2004-08-01 17:30 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-28  4:30 Recent 2.6 kernels can't read an entire ATAPI CD or DVD Bryan O'Sullivan
2004-07-28  5:31 ` Jens Axboe
2004-07-28  6:51   ` Edward Angelo Dayao
2004-07-28  6:53     ` Jens Axboe
2004-07-28 14:52       ` Dave Jones
2004-07-28 14:55         ` Arjan van de Ven
2004-07-28 16:33           ` Jens Axboe
2004-07-28 17:05             ` Jens Axboe
2004-07-28 21:57               ` Bryan O'Sullivan
2004-07-29  8:49                 ` Jens Axboe
2004-07-30  5:49                   ` Robert Love
2004-07-30  5:53                     ` Jens Axboe
2004-07-30  5:57                       ` Robert Love
2004-07-30  6:10                         ` Jens Axboe
2004-07-30  6:26                           ` Prakash K. Cheemplavam
2004-07-30  6:30                             ` Robert Love
2004-07-30  6:39                               ` Jens Axboe
2004-07-30  6:28                           ` Robert Love
2004-07-30  6:38                             ` Jens Axboe
2004-07-30 15:33                               ` Robert Love
2004-08-01  5:29                       ` Bryan O'Sullivan
2004-07-28 16:53         ` Claudio Martins
  -- strict thread matches above, loose matches on Subject: below --
2004-08-01 17:30 Lukas Hejtmanek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox