PROBLEM: ide driver in 2.4.20 discards DMA on my CD-ROM

From: Константин Дунае (
Date: Tue Jun 10 2003 - 03:01:23 EST

I have recently compiled kernel 2.4.20 and my Liteon 222 CD-ROM drive
doesn't work stable with this kernel. Problem is that in older kernels
(2.2.13, 2.2.15, 2.4.2, 2.4.18, 2.4.19) it works only when DMA is enabled
(hdparm -d1).

In PIO mode it produces a lot of messages "hdX: lost interrupt" (i have tried
on /dev/hdb and /dev/hdc )and hangs sometimes when reading files >1 MB.

echo file_readahead:512000 >/proc/ide/hdX/settings
echo max_kb_per_request:120 >/proc/ide/hdX/settings

helps a little(doesn't hang, but some data was broken). The figures are

In DMA mode it has worked well up to 2.4.19. No hangs, no data loss.

With 2.4.20 produces message "DMA interrupt recovery, hdx:lost interrupt" and
discards DMA mode on mount and each time, when I try to enable DMA and read
something from CD.

gcc, that was used to compile :gcc-3.2
(2.4.18 & 2.4.19 were compiled with it too)

IDE: PIIX3 (430VX motherboard)
CD-ROM: Liteon LTN222A

kernel 2.4.20, that I have compiled by gcc-3.2 on some other computer with
other CD-ROM drive works well and DMA works with that drive

Help me, please!
Sorry for bad English

Best regards
Mr. Constantin Dunayev, Ukraine
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sun Jun 15 2003 - 22:00:22 EST