Evgeni Golov wrote: > On Fri, Nov 07, 2008 at 01:08:29PM +0900, Tejun Heo wrote: >>> This suggests to me that hdparm --idle-unload does indeed trigger a phy >>> event, but the interrupt handler clears SError. Issuing the unload >>> command in EH, on the other hand, does not result in a phy event because >>> event notification is disabled. That way, phyrdy and commwake don't get >>> cleared in SError in will indicate a hotplug event next time SError is >>> checked. Does that make sense? If so, what's to be done about it? >> Hmmm... if ALPM is enabled, it could explain all. Enabling ALPM does >> inhibit event notifications but it doesn't prevent autopsy from >> interpreting SError as if ALPM is not enabled. >> >> Evgeni, is ALPM enabled? > > You mean Aggressive Link Power Management? As patches from here: > http://www.kernel.org/pub/linux/kernel/people/kristen/patches/SATA/alpm/ > ? > Unless they got merged into 2.6.27 and autoenabled, no, I dont use ALPM :) Heh... I'm fresh out of ideas. Somehow SError is being set on the initial EH head unload. In general, what EH is doing is harmless in itself but EH reset can delay head unloading defeating the purpose of unloading. Is the phy event before or after head unloading? Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html