linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Jeffrey W. Baker" <jwbaker@gmail.com>
To: Grant Grundler <grundler@google.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: SATA ALPM min_power causes > 10s delay on resume
Date: Mon, 25 Aug 2008 21:04:55 -0700	[thread overview]
Message-ID: <1219723495.19838.1.camel@stinkpad> (raw)
In-Reply-To: <1219720475.18172.3.camel@stinkpad>

On Mon, 2008-08-25 at 20:14 -0700, Jeffrey W. Baker wrote:
> On Mon, 2008-08-25 at 17:14 -0700, Grant Grundler wrote:
> > On Sun, Aug 24, 2008 at 10:27 AM, Jeffrey W. Baker <jwbaker@gmail.com> wrote:
> > > I started using the min_power ALPM setting on my ThinkPad to save power
> > > (which works great, thanks!) but it causes a small problem.  When the
> > > machine resumes from suspend-to-ram it hangs for about 10s and then
> > > prints this on the console:
> > >
> > > ata1: COMRESET failed (errno=-16)
> > >
> > > It then proceeds normally.  The full messages are:
> > >
> > > ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
> > > ata1.00: configured for UDMA/100
> > > ata1: failed to recover some devices, retrying in 5 secs
> > > ata1: soft resetting link
> > > ata1: SATA link down (SStatus 611 SControl 300)
> > > ata1: failed to recover some devices, retrying in 5 secs
> > > ata1: hard resetting link
> > > ata1: port is slow to respond, please be patient (Status 0x80)
> > > ata1: COMRESET failed (errno=-16)
> > > ata1: hard resetting link
> > > ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
> > 
> > Can you enable CONFIG_PRINTK_TIME in your kernel?
> 
> Output follows ...
> 
> > It sounds like the ahci driver is having problems spinning up
> > the disk after putting it into a "low power state" (which I
> > have no clue might be). Getting more accurate time
> > stamps might be a useful additional clue.
> 
> The disk is an SSD so there's no need for delay to allow it to spin
> up.

I just did an experiment, and a workaround for this problem is to enable
max_performance immediately before sleep and return to min_power during
resume.

-jwb


  reply	other threads:[~2008-08-26  4:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-24 17:27 SATA ALPM min_power causes > 10s delay on resume Jeffrey W. Baker
2008-08-26  0:14 ` Grant Grundler
2008-08-26  3:14   ` Jeffrey W. Baker
2008-08-26  4:04     ` Jeffrey W. Baker [this message]
2008-08-30 11:02 ` Tejun Heo
2008-08-30 18:01   ` Jeffrey W. Baker
     [not found]   ` <fd145f7d0808301059y20e91ba7w22b9ddd6c54d9554@mail.gmail.com>
2008-08-31  9:35     ` Tejun Heo
2008-09-30  0:20       ` Jeffrey W. Baker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1219723495.19838.1.camel@stinkpad \
    --to=jwbaker@gmail.com \
    --cc=grundler@google.com \
    --cc=linux-ide@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).