Re: [PATCH 2.6.21-mm1 1/2] sata_promise: fix another error decode regression

2007-05-09 Thread Jeff Garzik

Mikael Pettersson wrote:

The sata_promise error decode update changed pdc_host_intr()
to return and not complete the qc after detecting an error.
Unfortunately not completing the qc:s causes them to always
time out on error, which is wrong and has nasty side-effects.

This patch updates pdc_error_intr() to call ata_port_abort(),
similar to ahci and sata_sil24. Doing this is important as it
makes EH see the original error and not a bogus timeout.

Signed-off-by: Mikael Pettersson [EMAIL PROTECTED]
---
Thanks to Tejun for educating me about the significance of
ata_port_abort()/ata_port_freeze() in ahci and sata_sil24's
error intr paths.

 drivers/ata/sata_promise.c |4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)


applied 1-2...
-
To unsubscribe from this list: send the line unsubscribe linux-ide in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 2.6.21-mm1 1/2] sata_promise: fix another error decode regression

2007-05-06 Thread Mikael Pettersson
The sata_promise error decode update changed pdc_host_intr()
to return and not complete the qc after detecting an error.
Unfortunately not completing the qc:s causes them to always
time out on error, which is wrong and has nasty side-effects.

This patch updates pdc_error_intr() to call ata_port_abort(),
similar to ahci and sata_sil24. Doing this is important as it
makes EH see the original error and not a bogus timeout.

Signed-off-by: Mikael Pettersson [EMAIL PROTECTED]
---
Thanks to Tejun for educating me about the significance of
ata_port_abort()/ata_port_freeze() in ahci and sata_sil24's
error intr paths.

 drivers/ata/sata_promise.c |4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

--- linux-2.6.21-mm1/drivers/ata/sata_promise.c.~1~ 2007-05-06 
20:29:01.0 +0200
+++ linux-2.6.21-mm1/drivers/ata/sata_promise.c 2007-05-06 20:29:28.0 
+0200
@@ -45,7 +45,7 @@
 #include sata_promise.h
 
 #define DRV_NAME   sata_promise
-#define DRV_VERSION2.05
+#define DRV_VERSION2.06
 
 
 enum {
@@ -653,6 +653,8 @@ static void pdc_error_intr(struct ata_po
qc-err_mask |= ac_err_mask;
 
pdc_reset_port(ap);
+
+   ata_port_abort(ap);
 }
 
 static inline unsigned int pdc_host_intr( struct ata_port *ap,
-
To unsubscribe from this list: send the line unsubscribe linux-ide in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html