libata (pata_via) timeouts causing unusable device: the famous DRDY issue?

From: Andras Mantia
Date: Fri May 23 2008 - 15:29:56 EST


Hi,

since my upgrade to openSUSE 11.0, which comes with 2.6.25.4, soon
after I start using my DVD player, I get the following in the log:

May 23 21:34:04 stein klogd: ata1.00: exception Emask 0x0 SAct 0x0 SErr
0x0 action 0x2 frozen
May 23 21:34:04 stein klogd: ata1.00: cmd
a0/01:00:00:00:08/00:00:00:00:00/a0 tag 0 dma 2048 in
May 23 21:34:04 stein klogd: cdb 28 00 00 00 01 b3 00 00 01 00
00 00 00 00 00 00
May 23 21:34:04 stein klogd: res
40/00:02:00:08:00/00:00:00:00:00/a0 Emask 0x4 (timeout)
May 23 21:34:04 stein klogd: ata1.00: status: { DRDY }
May 23 21:34:04 stein klogd: ata1: soft resetting link
May 23 21:34:04 stein klogd: ata1.00: configured for UDMA/33
May 23 21:34:04 stein klogd: ata1: EH complete

[...]

May 23 21:52:53 stein klogd: ata1.00: exception Emask 0x0 SAct 0x0 SErr
0x0 action 0x2 frozen
May 23 21:52:53 stein klogd: ata1.00: cmd
a0/00:00:00:00:00/00:00:00:00:00/a0 tag 0
May 23 21:52:53 stein klogd: cdb 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00
May 23 21:52:53 stein klogd: res
40/00:02:00:08:00/00:00:00:00:00/a0 Emask 0x4 (timeout)
May 23 21:52:53 stein klogd: ata1.00: status: { DRDY }
May 23 21:52:53 stein klogd: ata1: soft resetting link
May 23 21:52:54 stein klogd: ata1.00: configured for PIO0
May 23 21:52:54 stein klogd: ata1: EH complete

and this one repeats until I reboot and the drive becomes unusable. The
process accessing the drive is stuck and not killable. I also cannot
eject the drive.


The system is an ASUS A8V Deluxe, with the following controller:
00:0f.1 IDE interface: VIA Technologies, Inc.
VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)

The drive is a Lite-On/JLMS dvd reader on first channel as master:
ata1: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xfc00 irq 14
ata2: PATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0xfc08 irq 15
ata1.00: ATAPI: JLMS XJ-HD163, GH5Y, max UDMA/33

It seems to be related to the drive as if I put a Plextor CDRW instead
of it, I could not see the error.
Neverthless looks to be a regression as I could use this drive without
any problem under openSUSE 10.3, with kernel 2.6.22.17 (and many earlier
versions as I have this drive for years).

Google gave me lot of hits for similar problem, but no solution. :(

Any hint what I could do (including testing patches) is welcome.

Andras

--

Quanta Plus developer - http://quanta.kdewebdev.org
K Desktop Environment - http://www.kde.org
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/