2002-11-15 16:41:59

by Alan Willis

[permalink] [raw]
Subject: CD IO error


I've been getting these messages since about 2.5.45. I can't mount any
cds at all. Elvtune (util-linux-2.11r) also fails on /dev/hda which I'm
running on, and /dev/hdc, my cdrom.

Any further info needed?

-alan

end_request: I/O error, dev hdc, sector 0
hdc: ATAPI 48X CD-ROM drive, 120kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
end_request: I/O error, dev hdc, sector 0

# hdparm /dev/hdc

/dev/hdc:
HDIO_GET_MULTCOUNT failed: Inappropriate ioctl for device
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 1 (on)
readahead = 256 (on)
HDIO_GETGEO failed: Inappropriate ioctl for device




2002-11-15 16:58:50

by Brian Jackson

[permalink] [raw]
Subject: Re: CD IO error

Alan Willis writes:

>
> I've been getting these messages since about 2.5.45. I can't mount any
> cds at all. Elvtune (util-linux-2.11r) also fails on /dev/hda which I'm
> running on, and /dev/hdc, my cdrom.
>
> Any further info needed?

Distribution
IDE controller/motherboard
a few more lines before and after the error from dmesg


>
> -alan
>
> end_request: I/O error, dev hdc, sector 0
> hdc: ATAPI 48X CD-ROM drive, 120kB Cache, UDMA(33)
> Uniform CD-ROM driver Revision: 3.12
> end_request: I/O error, dev hdc, sector 0
>
> # hdparm /dev/hdc
>
> /dev/hdc:
> HDIO_GET_MULTCOUNT failed: Inappropriate ioctl for device
> IO_support = 0 (default 16-bit)
> unmaskirq = 0 (off)
> using_dma = 1 (on)
> keepsettings = 0 (off)
> readonly = 1 (on)
> readahead = 256 (on)
> HDIO_GETGEO failed: Inappropriate ioctl for device
>
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/

2002-11-15 17:18:46

by Alan Willis

[permalink] [raw]
Subject: Re: CD IO error

> Distribution
> IDE controller/motherboard
> a few more lines before and after the error from dmesg

Duh, my apologies.

Redhat 8.0, running kernel 2.5.47-mm3 at present.
Intel i810 chipset. Full dmesg is attached.

Relevant sections below.


Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 66MHz system bus speed for PIO modes
ICH: IDE controller at PCI slot 00:1f.1
ICH: chipset revision 2
ICH: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:DMA, hdb:pio
ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:DMA, hdd:pio
hda: Maxtor 2B020H1, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hdc: Lite-On LTN486 48x Max, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hda: host protected area => 1
hda: 39062500 sectors (20000 MB) w/2048KiB Cache, CHS=2431/255/63, UDMA(66)
hda: hda1 hda2 hda3 hda4 < hda5 hda6 >
end_request: I/O error, dev hdc, sector 0
hdc: ATAPI 48X CD-ROM drive, 120kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
end_request: I/O error, dev hdc, sector 0



Attachments:
dmesg (9.74 kB)

2002-11-15 17:23:40

by Alan

[permalink] [raw]
Subject: Re: CD IO error

On Fri, 2002-11-15 at 16:42, Alan Willis wrote:
>
> I've been getting these messages since about 2.5.45. I can't mount any
> cds at all. Elvtune (util-linux-2.11r) also fails on /dev/hda which I'm
> running on, and /dev/hdc, my cdrom.
>
> Any further info needed?

The log before the I/O error line

> HDIO_GET_MULTCOUNT failed: Inappropriate ioctl for device

This is the right behaviour for a CD

> HDIO_GETGEO failed: Inappropriate ioctl for device

Ditto

- so the hdparm is fine, but the I/O error probably isnt


2002-11-15 17:46:13

by Alan Willis

[permalink] [raw]
Subject: Re: CD IO error

> On Fri, 2002-11-15 at 16:42, Alan Willis wrote:
>>
>> I've been getting these messages since about 2.5.45. I can't mount
>> any
>> cds at all. Elvtune (util-linux-2.11r) also fails on /dev/hda which
>> I'm running on, and /dev/hdc, my cdrom.
>>
>> Any further info needed?
>
> The log before the I/O error line

That was at boot, in the dmesg. Full dmesg is posted already.

-alan


2002-11-15 18:13:55

by Alan Willis

[permalink] [raw]
Subject: Re: CD IO error

> - so the hdparm is fine, but the I/O error probably isnt

More info, if it helps.

/proc/ide/hdc/model
Lite-On LTN486 48x Max

/proc/ide/hdc/driver
ide-cdrom version 4.59

/proc/ide/hdc/identify
85a0 0000 0000 0000 0000 0000 0000 0000
0000 0000 2020 2020 2020 2020 2020 2020
2020 2020 2020 2020 0000 0000 0000 5944
3031 2020 2020 4c69 7465 2d4f 6e20 4c54
4e34 3836 2020 3438 7820 4d61 7820 2020
2020 2020 2020 2020 2020 2020 2020 0000
0000 0f00 0000 0200 0200 0006 0000 0000
0000 0000 0000 0000 0000 0000 0007 0007
0003 0078 0078 0078 0078 0000 0000 0000
0000 0002 0009 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0407 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000

/proc/ide/hdc/settings
name value min max mode
---- ----- --- --- ----
current_speed 66 0 70 rw
dsc_overlap 0 0 1 rw
ide-scsi 0 0 1 rw
init_speed 66 0 70 rw
io_32bit 0 0 3 rw
keepsettings 0 0 1 rw
nice1 1 0 1 rw
number 2 0 3 rw
pio_mode write-only 0 255 w
slow 0 0 1 rw
unmaskirq 0 0 1 rw
using_dma 1 0 1 rw

It's on ide1

/proc/ide/ide1/config
pci bus 00 device f9 vendor 8086 device 2411 channel 1
86 80 11 24 05 00 80 22 02 80 01 01 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a1 ff 00 00 00 00 00 00 00 00 00 00 86 80 11 24
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
07 e3 07 e3 00 00 00 00 05 00 02 02 00 00 00 00
00 00 00 00 11 04 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 3a 04 00 00 00 00 00 00

/proc/ide/piix

Controller: 0

Intel PIIX4 Ultra 66 Chipset.
--------------- Primary Channel ---------------- Secondary Channel
-------------
enabled enabled
--------------- drive0 --------- drive1 -------- drive0 ---------- drive1
------
DMA enabled: yes no yes no
UDMA enabled: yes no yes no
UDMA enabled: 4 X 2 X
UDMA
DMA
PIO




2002-11-15 18:24:30

by Leopold Gouverneur

[permalink] [raw]
Subject: Re: CD IO error

On Fri, Nov 15, 2002 at 11:42:07AM -0500, Alan Willis wrote:
>
> I've been getting these messages since about 2.5.45. I can't mount any
> cds at all. Elvtune (util-linux-2.11r) also fails on /dev/hda which I'm
> running on, and /dev/hdc, my cdrom.
>
> Any further info needed?
>
> -alan
>
> end_request: I/O error, dev hdc, sector 0
> hdc: ATAPI 48X CD-ROM drive, 120kB Cache, UDMA(33)
> Uniform CD-ROM driver Revision: 3.12
> end_request: I/O error, dev hdc, sector 0
Same here. I have disabled DMA for cdrom(CONFIG_IDEDMA_ONLYDISK=y)
and things are working again, perhaps with a loss operformance?
Hope it helps.

2002-11-15 18:58:59

by Alan Willis

[permalink] [raw]
Subject: Re: CD IO error


> Same here. I have disabled DMA for cdrom(CONFIG_IDEDMA_ONLYDISK=y) and
> things are working again, perhaps with a loss operformance?
> Hope it helps.

Unfortunately it doesnt, I still get the err with DMA disabled on hdc.

-alan

ide: Assuming 66MHz system bus speed for PIO modes
ICH: IDE controller at PCI slot 00:1f.1
ICH: chipset revision 2
ICH: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:DMA, hdb:pio
ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:DMA, hdd:pio
hda: Maxtor 2B020H1, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hdc: Lite-On LTN486 48x Max, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hda: host protected area => 1
hda: 39062500 sectors (20000 MB) w/2048KiB Cache, CHS=2431/255/63, UDMA(66)
hda: hda1 hda2 hda3 hda4 < hda5 hda6 >
hdc: DMA disabled
end_request: I/O error, dev hdc, sector 0
hdc: ATAPI 48X CD-ROM drive, 120kB Cache
Uniform CD-ROM driver Revision: 3.12
end_request: I/O error, dev hdc, sector 0