]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
sata_sil24: freeze on non-dev errors reported via CERR
authorTejun Heo <htejun@gmail.com>
Sun, 13 Jan 2008 05:04:16 +0000 (14:04 +0900)
committerJeff Garzik <jeff@garzik.org>
Tue, 15 Jan 2008 02:11:02 +0000 (21:11 -0500)
commitc2e14f11120bbef0c883e795da8180b58f3cddae
tree3ecad039951b09fc7de9271d9f9b498402d99eb9
parent7293fa8fb74f17077a2ac7ccd5b58ae3225317d0
sata_sil24: freeze on non-dev errors reported via CERR

CERR reports errors detected during executing a command.  This doesn't
mean the error is tied to the command and can be recovered by just
issuing it again.  Many of the errors are fatal port-wide connditions
including HSM violation, host bus error and ATA bus error and require
freezing and port reset.

The freezing part wasn't implemented previously.  This used to be okay
because port resets were scheduled anyway and EH eventually resets and
recovers the port.  With PMP support added, this is no longer true.
The error condition and recover actions are attributed to the fan-out
port and the host port condition isn't properly recovered leading to
EH failures.

This patch makes CERR errors which require resets to freeze the port.
This will force host port reset and proper recovery.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: Andrew Ryder <tireman@shaw.ca>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/sata_sil24.c