Skip to contentSkip to conversation

ide-cd problem in 2.6.12-rc5 + todays snapshot

DISCUSSION Meelis Roos 3 participants 5 messages May 26, 2005 – May 27, 2005

lore
Share & tools
lore
#0 lore raw

Background: I have a Sony CDU5211 CD drive with Intel D815EEA2 mainboard (ICH2 IDE in 815 chipset). Since 2.4.21 timeframe IDE DMA for this CD drive is broken (see my post http://www.ussg.iu.edu/hypermail/linux/kernel/0410.3/0480.html). This happens on at least 2 identical machines. This is the first problem (that I have learned to live with).

Now, since ide-cd dma is broken, the first access to cd always gets DMA timeout and turns off DMA, then it works. I have hddtemp installed and it probes for drives on boot. In 2.6.12 (and I think I tested pristine 2.6.12-rc5 too) the cd works as before - dma timeout+disable on first access (by hddtemp).

Now, in 2.6.12-rc5 + todays git snapshot, it does not work any more. I suspect the DMA alignment change.

In 2.6.12-rc2 the dmesg from hddtemp was

hdc: DMA disabled
hdc: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
hdc: drive_cmd: error=0x04 { AbortedCommand }
ide: failed opcode was: 0xb0

In todays snapshot, the dmesg is

hdc: DMA interrupt recovery
hdc: lost interrupt
hdc: status timeout: status=0xd0 { Busy }
ide: failed opcode was: unknown
hdc: DMA disabled
hdc: drive not ready for command
hdc: ATAPI reset complete
cdrom_pc_intr, write: dev hdc: flags = REQ_STARTED REQ_PC REQ_QUIET sector 0, nr/cnr 0/0
bio 00000000, biotail 00000000, buffer 00000000, data 00000000, len 0
cdb: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
hdc: cdrom_pc_intr: The drive appears confused (ireason = 0x02)
hdc: lost interrupt
cdrom_pc_intr, write: dev hdc: flags = REQ_STARTED REQ_PC REQ_FAILED REQ_QUIET sector 0, nr/cnr 0/0
bio 00000000, biotail 00000000, buffer 00000000, data 00000000, len 0
cdb: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
hdc: cdrom_pc_intr: The drive appears confused (ireason = 0x02)
hdc: lost interrupt
cdrom_pc_intr, write: dev hdc: flags = REQ_STARTED REQ_PC REQ_FAILED REQ_QUIET sector 0, nr/cnr 0/0
bio 00000000, biotail 00000000, buffer 00000000, data 00000000, len 0
cdb: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
hdc: cdrom_pc_intr: The drive appears confused (ireason = 0x02)
hdc: lost interrupt
cdrom_pc_intr, write: dev hdc: flags = REQ_STARTED REQ_PC REQ_FAILED REQ_QUIET sector 0, nr/cnr 0/0
bio 00000000, biotail 00000000, buffer 00000000, data 00000000, len 0
cdb: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
hdc: cdrom_pc_intr: The drive appears confused (ireason = 0x02)

and so on ad infimum.

The messages are very similar to my earlier reported problems that were fixed:
http://www.ussg.iu.edu/hypermail/linux/kernel/0312.3/1003.html
http://www.ussg.iu.edu/hypermail/linux/kernel/0402.1/0459.html

Signature · 1 line
Meelis Roos ([email protected])
#1 lore raw
Quoted 7 lines · Meelis Roos

Background: I have a Sony CDU5211 CD drive with Intel D815EEA2 mainboard (ICH2 IDE in 815 chipset). Since 2.4.21 timeframe IDE DMA for this CD drive is broken (see my post
http://www.ussg.iu.edu/hypermail/linux/kernel/0410.3/0480.html). This happens on at least 2 identical machines. This is the first problem (that I have learned to live with).

Quoted 5 lines

Now, since ide-cd dma is broken, the first access to cd always gets DMA timeout and turns off DMA, then it works. I have hddtemp installed and it probes for drives on boot. In 2.6.12 (and I think I tested pristine 2.6.12-rc5 too) the cd works as before - dma timeout+disable on first access (by hddtemp).

Ok that one is very different to the end of media bugs.

#2 lore raw
In reply to Meelis Roos
Quoted 7 lines · Meelis Roos

Background: I have a Sony CDU5211 CD drive with Intel D815EEA2 mainboard (ICH2 IDE in 815 chipset). Since 2.4.21 timeframe IDE DMA for this CD drive is broken (see my post
http://www.ussg.iu.edu/hypermail/linux/kernel/0410.3/0480.html). This happens on at least 2 identical machines. This is the first problem (that I have learned to live with).

Quoted 8 lines

Now, since ide-cd dma is broken, the first access to cd always gets DMA timeout and turns off DMA, then it works. I have hddtemp installed and it probes for drives on boot. In 2.6.12 (and I think I tested pristine 2.6.12-rc5 too) the cd works as before - dma timeout+disable on first access (by hddtemp).

Now, in 2.6.12-rc5 + todays git snapshot, it does not work any more. I suspect the DMA alignment change.

It must be, thanks for reporting this so quickly. Linus, can you exclude that patch again? Rather miserably slow burning for some, than broken hardware for others.

Seems we do need finer granularity setting of alignment/length restrictions.

Signature · 1 line
Jens Axboe
#3 lore raw
Quoted 17 lines · Jens Axboe
Quoted 7 lines · Meelis Roos

Background: I have a Sony CDU5211 CD drive with Intel D815EEA2 mainboard (ICH2 IDE in 815 chipset). Since 2.4.21 timeframe IDE DMA for this CD drive is broken (see my post
http://www.ussg.iu.edu/hypermail/linux/kernel/0410.3/0480.html). This happens on at least 2 identical machines. This is the first problem (that I have learned to live with).

Quoted 8 lines

Now, since ide-cd dma is broken, the first access to cd always gets DMA timeout and turns off DMA, then it works. I have hddtemp installed and it probes for drives on boot. In 2.6.12 (and I think I tested pristine 2.6.12-rc5 too) the cd works as before - dma timeout+disable on first access (by hddtemp).

Now, in 2.6.12-rc5 + todays git snapshot, it does not work any more. I suspect the DMA alignment change.

Quoted 6 lines

It must be, thanks for reporting this so quickly. Linus, can you exclude that patch again? Rather miserably slow burning for some, than broken hardware for others.

Seems we do need finer granularity setting of alignment/length restrictions.

BTW Meelis, any chance you can change that 3 into a 15 for testing purposes?

Signature · 1 line
Jens Axboe
#4 lore raw
Quoted 5 lines
Quoted 2 lines

Seems we do need finer granularity setting of alignment/length restrictions.

BTW Meelis, any chance you can change that 3 into a 15 for testing purposes?

15 seems to work fine.

Signature · 1 line
Meelis Roos ([email protected])