From: Pavel Machek <pavel@ucw.cz>
To: Randy Dunlap <randy.dunlap@oracle.com>
Cc: kernel list <linux-kernel@vger.kernel.org>,
Linux-pm mailing list <linux-pm@lists.osdl.org>
Subject: Re: [linux-pm] [demo patch/RFC] sleepy linux
Date: Thu, 28 Feb 2008 19:13:57 +0100 [thread overview]
Message-ID: <20080228181357.GA6050@elf.ucw.cz> (raw)
In-Reply-To: <20080226085422.6408fc4a.randy.dunlap@oracle.com>
Hi!
> Is this limited to UP and only one disk?
Yes... for now.
> [comments below]
Thanks!
> > --- /dev/null
> > +++ b/Documentation/power/sleepy.txt
> > @@ -0,0 +1,55 @@
> > + Sleepy Linux
> > + ~~~~~~~~~~~~
> > +
> > +Copyright 2007 Pavel Machek <pavel@suse.cz>
> > + GPLv2
> > +
> > +Current Linux versions can enter suspend-to-RAM just fine, but only
> > +can do it on explicit request. But suspend-to-RAM is important, eating
>
> Usually "can only do it" AFAIK.
>
> > +something like 10% of power needed for idle system. Starting suspend
> > +manually is not too convinient; it is not an option on multiuser
>
> convenient;
Spelling applied.
> > +Then, enable SCSI powersave by something like:
> > +
> > +mount /sys
>
> Isn't /sys auto-mounted by kernel?
No.
> > +/* The host and its devices are all idle so we can autosuspend */
> > +static int autosuspend(struct Scsi_Host *host)
> > +{
> > + if (my_pdev && autosuspend_enabled) {
> > + printk("ahci: should autosuspend\n");
>
> Use printk() KERN_* levels (multiple places).
Well, code obviously needs a lot of work... I said it was ugly ;-).
> > @@ -1820,6 +1858,10 @@ static void ahci_thaw(struct ata_port *a
> >
> > static void ahci_error_handler(struct ata_port *ap)
> > {
> > + struct ata_host *host = ap->host;
> > + int rc;
> > + extern int slept;
>
> Eh?
Pavel in hack mode ;-). Yes, I'll clean it up once I fix the
fundamental issues -- like UP only etc...
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
prev parent reply other threads:[~2008-02-28 18:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-26 10:26 [demo patch/RFC] sleepy linux Pavel Machek
2008-02-26 16:54 ` [linux-pm] " Randy Dunlap
2008-02-28 18:13 ` Pavel Machek [this message]
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=20080228181357.GA6050@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.osdl.org \
--cc=randy.dunlap@oracle.com \
/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