mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Jiri Slaby <jirislaby@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Zan Lynx <zlynx@acm.org>, Thomas Gleixner <tglx@linutronix.de>,
	"Rafael J. Wysocki" <rjw@sisk.pl>, Len Brown <lenb@kernel.org>,
	linux-kernel@vger.kernel.org
Subject: Re: echo mem > /sys/power/state
Date: Fri, 18 Jan 2008 09:51:39 +0100	[thread overview]
Message-ID: <20080118085139.GB19792@elte.hu> (raw)
In-Reply-To: <478FCD1F.4090704@gmail.com>


* Jiri Slaby <jirislaby@gmail.com> wrote:

> On 01/17/2008 08:13 PM, Andrew Morton wrote:
>> On Thu, 17 Jan 2008 10:36:51 -0700 Zan Lynx <zlynx@acm.org> wrote:
>>> Heh.  Laptop suspend to anything has been so broken for so long in the
>>> -mm series on my Compaq R3000 that I didn't even know it was ever
>>> supposed to work.
>>
>> It gets broken more often than anything else.  I do test each release on
>> two laptops and I get to do a lot of bisection searching and
>> grumpygramming as a result.
>>
>> Probably it would be more efficient to have the people who wrote the code
>> also test it.
>
> Big fat ACK from here. Suspend issues in past few -mms were *very* 
> hard (and time consuming) to track down.

it's really all a matter of reducing latencies. Testing suspend/resume 
is manual work currently (it either needs me hit a key on the laptop or 
necessiates the use of a test-script that might or might not work 
depending on whether the new /dev/rtc driver is enabled). So few people 
besides those that rely on it will do it. The more a patch that breaks 
suspend is out in the open unidentified, the more damage it does: it 
gets into more trees, gets harder to bisect, etc.

So please give us overworked maintainers an easy to use .config option 
dependent on CONFIG_DEBUG_KERNEL=y that automatically triggers a simple 
suspend+resume sequence 60 seconds after bootup. It would be godsent. 
(dont worry about proper gx resume) I compile and boot up every patch i 
add to x86.git, so this would catch crap the moment we add it to the 
tree.

The other, more long-term trick is to make rarely used functionality 
more widely used. Consolidate code. Try to merge as much of 
suspend/resume with bootup/module-insert/shutdown sequences as possible. 
Suspend unused devices more agressively - such as non-mounted block 
devices or downed networking ports. Try create more network effects with 
other functionality, suspend and resume is not just about suspending 
laptops, it can/could be used for so much more stuff. Try to get Pavel's 
"Sleepy Linux" concept to work reasonably well - so that more people 
(including developers) would use it in a daily basis.

Test coverage of a given piece of code is a direct function of its 
utility and of its ease of testing. Decreeing "this is important" really 
wont get more testing done. What you should realize i think is that this 
is not a social/mindset problem (so no need to get frustrated about it), 
this is a mostly technology problem: you can gradually _code_ your way 
into people's test efforts.

	Ingo

  reply	other threads:[~2008-01-18  8:52 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-17  6:24 Andrew Morton
2008-01-17 17:36 ` Zan Lynx
2008-01-17 19:13   ` Andrew Morton
2008-01-17 21:38     ` Rafael J. Wysocki
2008-01-17 21:45       ` Nigel Cunningham
2008-01-17 22:27         ` Rafael J. Wysocki
2008-01-18  8:36       ` Ingo Molnar
2008-01-18  8:47         ` Andrew Morton
2008-01-18  9:04           ` Harvey Harrison
2008-01-18 12:18           ` Ingo Molnar
2008-01-18 14:26             ` Rafael J. Wysocki
2008-01-20 23:39             ` Pavel Machek
2008-01-20 23:42               ` Ingo Molnar
2008-01-21  0:31                 ` Pavel Machek
2008-01-21  2:13                   ` Johannes Weiner
2008-01-21 22:37                     ` Pavel Machek
2008-01-22 14:42                       ` Ingo Molnar
2008-01-23 21:27                         ` Pavel Machek
2008-01-17 21:48     ` Jiri Slaby
2008-01-18  8:51       ` Ingo Molnar [this message]
2008-01-17 18:22 ` Rafael J. Wysocki

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=20080118085139.GB19792@elte.hu \
    --to=mingo@elte.hu \
    --cc=akpm@linux-foundation.org \
    --cc=jirislaby@gmail.com \
    --cc=lenb@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rjw@sisk.pl \
    --cc=tglx@linutronix.de \
    --cc=zlynx@acm.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

all inboxes | Powered by JetHome®