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

=?koi8-r?b?68/O09TBztTJziDk1c7Bxdc=?= (kostya.nipi@naftogaz.net)
Tue, 10 Jun 2003 11:01:23 +0300


Hello!
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
empyrical.

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
mailto: kostya.nipi@naftogaz.net
-
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/