Re: ata2: SATA link down (SStatus 611 SControl 300)

From: Tejun Heo
Date: Tue Apr 15 2008 - 18:27:21 EST


Hello, Paul.

Paul Collins wrote:
Tejun Heo <htejun@xxxxxxxxx> writes:

ata2: XXX about to resume
ata2: SATA link down (SStatus 611 SControl 0)
The link is already in slumber mode before the driver doing anything
to it. Is there any related setting in BIOS?

I found a setting labelled "SATA Power Management". It was set to
"Enable". When I set it to "Disable", 2.6.25-rc9 detected the optical
drive.

This can't be something changed between 2.6.24 and 2.6.25-rc9. Can you please double check that?

Also, can you please give a shot at the attached patch?

I tried this patch with "SATA Power Management" on both settings. In
each case it detected the optical drive.

Good, so it seems later ich's need its SPM fields written or link reset to get out of powersave mode. Inhibiting PM modes via IPM isn't enough, which BTW is sane.

Jeff, this one looks like another rationale for favoring hardreset over softreset && I don't see how we can fix this for 2.6.25. We can try to write to SPM from link_resume() but the field being newly added in SATA 2.5, I don't feel comfortable about it.

Thanks.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/