Skip to contentSkip to conversation

libata: hardreset on SERR_INTERNAL

PATCH Applied Tejun Heo 2 participants 4 messages Mar 13, 2007 – Apr 4, 2007 libata

lore
Share & tools
lore

Tejun Heo

author
#0 lore raw

PATCH 1/1 libata: hardreset on SERR_INTERNAL

There was a rare report where SB600 reported SERR_INTERNAL and SRST couldn't get it out of the failure mode. Hardreset on SERR_INTERNAL. As the problem is intermittent, whether this fixes the problem or not hasn't been verified yet, but hardresetting the channel on internal error is a good idea anyway.

drivers/ata/libata-eh.c +1 -1
index 7349c3d..fc11bb3 100644
@@ -1055,7 +1055,7 @@ static void ata_eh_analyze_serror(struct ata_port *ap)
 	}
 	if (serror & SERR_INTERNAL) {
 		err_mask |= AC_ERR_SYSTEM;
-		action |= ATA_EH_SOFTRESET;
+		action |= ATA_EH_HARDRESET;
 	}
 	if (serror & (SERR_PHYRDY_CHG | SERR_DEV_XCHG))
 		ata_ehi_hotplugged(&ehc->i);
#1 lore raw
Quoted 13 lines · Tejun Heo

There was a rare report where SB600 reported SERR_INTERNAL and SRST couldn't get it out of the failure mode. Hardreset on SERR_INTERNAL. As the problem is intermittent, whether this fixes the problem or not hasn't been verified yet, but hardresetting the channel on internal error is a good idea anyway.

drivers/ata/libata-eh.c +0 -0
index 7349c3d..fc11bb3 100644

drivers/ata/libata-eh.c static void ata_eh_analyze_serror(struct ata_port *ap) · line 1058

Quoted 5 lines
drivers/ata/libata-eh.c +1 -1
@@ -1055,7 +1055,7 @@ static void ata_eh_analyze_serror(struct ata_port *ap)
 	}
 	if (serror & SERR_INTERNAL) {
 		err_mask |= AC_ERR_SYSTEM;
-		action |= ATA_EH_SOFTRESET;
+		action |= ATA_EH_HARDRESET;

How does this interact with the patch ATI just posted, which prefers to treat the SB600 SERR_INTERNAL differently?

Jeff

author
#2 lore raw
Quoted 9 lines · Jeff Garzik
Quoted 5 lines · Tejun Heo

There was a rare report where SB600 reported SERR_INTERNAL and SRST couldn't get it out of the failure mode. Hardreset on SERR_INTERNAL. As the problem is intermittent, whether this fixes the problem or not hasn't been verified yet, but hardresetting the channel on internal error is a good idea anyway.

How does this interact with the patch ATI just posted, which prefers to treat the SB600 SERR_INTERNAL differently?

Gee... That looks like the correct fix. Raising SERR_INTERNAL on ATAPI CC never occurred to me. I still think hardresetting on SERR_INTERNAL is better than softresetting tho.

Signature · 1 line
tejun
Applied
#3 lore raw
In reply to Tejun Heo
Quoted 13 lines · Tejun Heo

There was a rare report where SB600 reported SERR_INTERNAL and SRST couldn't get it out of the failure mode. Hardreset on SERR_INTERNAL. As the problem is intermittent, whether this fixes the problem or not hasn't been verified yet, but hardresetting the channel on internal error is a good idea anyway.

drivers/ata/libata-eh.c +0 -0
index 7349c3d..fc11bb3 100644

drivers/ata/libata-eh.c static void ata_eh_analyze_serror(struct ata_port *ap) · line 1058

Quoted 5 lines
drivers/ata/libata-eh.c +1 -1
@@ -1055,7 +1055,7 @@ static void ata_eh_analyze_serror(struct ata_port *ap)
 	}
 	if (serror & SERR_INTERNAL) {
 		err_mask |= AC_ERR_SYSTEM;
-		action |= ATA_EH_SOFTRESET;
+		action |= ATA_EH_HARDRESET;

applied to #upstream