linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2.6.21-mm1 1/2] sata_promise: fix another error decode regression
@ 2007-05-06 20:12 Mikael Pettersson
  2007-05-10  0:16 ` Jeff Garzik
  0 siblings, 1 reply; 2+ messages in thread
From: Mikael Pettersson @ 2007-05-06 20:12 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: akpm, linux-ide

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 <mikpe@it.uu.se>
---
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.000000000 +0200
+++ linux-2.6.21-mm1/drivers/ata/sata_promise.c	2007-05-06 20:29:28.000000000 +0200
@@ -45,7 +45,7 @@
 #include "sata_promise.h"
 
 #define DRV_NAME	"sata_promise"
-#define DRV_VERSION	"2.05"
+#define DRV_VERSION	"2.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,

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 2.6.21-mm1 1/2] sata_promise: fix another error decode regression
  2007-05-06 20:12 [PATCH 2.6.21-mm1 1/2] sata_promise: fix another error decode regression Mikael Pettersson
@ 2007-05-10  0:16 ` Jeff Garzik
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2007-05-10  0:16 UTC (permalink / raw)
  To: Mikael Pettersson; +Cc: akpm, linux-ide

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 <mikpe@it.uu.se>
> ---
> 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...

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-05-10  0:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-06 20:12 [PATCH 2.6.21-mm1 1/2] sata_promise: fix another error decode regression Mikael Pettersson
2007-05-10  0:16 ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).