All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: David Brownell <david-b@pacbell.net>
Cc: Pavel Machek <pavel@ucw.cz>,
	rjw@sisk.pl, linux-pm@lists.linux-foundation.org,
	linux-kernel@vger.kernel.org,
	Linus Torvalds <torvalds@linux-foundation.org>
Subject: Re: [patch] suspend/resume self-test
Date: Tue, 19 Feb 2008 15:40:05 +0100	[thread overview]
Message-ID: <20080219144005.GC21176@elte.hu> (raw)
In-Reply-To: <200802181216.25350.david-b@pacbell.net>


* David Brownell <david-b@pacbell.net> wrote:

> > And, at least to me, there seems to be a rather apparent correlation 
> > between "suspend/resume regressions caught as early as possible" and 
> > the future, desired state of: "STR working sanely on x86" ;-)
> 
> Thing is, this will catch not just regressions ... but cases where STR 
> never worked in the first place.  Video problems, etc.  Also various 
> system startup races, as in the PCMCIA and MMC/SD/SDIO cases I noted.

yes, but that's not your problem, that's the STR folks' problem.

> Right, and the best way to ensure that it's only *regressions* that 
> break things is to expect someone to have configured the kernel 
> command line appropriately (in grub or whatever).

a simple .config flag is perfectly fine for that, as long as it's 
default disabled and properly demarked. We have literally _dozens_ of 
"dangerous" test options and _nobody_ complains about them being 
dangerous ... They do their primary job of triggering bugs sooner, 
faster and harder, resulting in bugs getting fixed sooner, faster and 
harder.

> Another way to achieve that is to include the test code based on one 
> config option, and change the test *mode* based on another one.  That 
> way a distro could include that in standard kernels with "no test" 
> mode as the default, but it would be easy to enable only for oneshot 
> tests or field troubleshooting ... while developers could turn on the 
> more dangerous "always test STR" (or standby, or hibernate) mode, if 
> they were helping to find and fix problems surfaced by such tests.

no distro would enable this option, it just adds a needless 5-6 seconds 
delay to the bootup, and a needless "s2ram blows up sooner than it 
should" risk. _I_ want to enable this option, and want to see it trigger 
more often than just once out of a hundred randconfig setups.

really, you are making rookie mistakes in this area and you are doing 
injustice to the code you wrote and maintain :-) As i said it before, 
externally it looks like as if you intentionally avoided your code from 
being used, from people who _want_ to use your code. _I_ had to fight 
for almost an hour (!) until i figured out the zillions of .config 
variants that were finally able to get my test-system to boot-time 
suspend and resume all by itself. It's totally non-obvious. As far as 
the general Linux community goes, it's almost as if your code did not 
even exist, so well hidden and obscured it is.

	Ingo

  parent reply	other threads:[~2008-02-19 14:40 UTC|newest]

Thread overview: 102+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-30 13:17 sleepy linux self-test Pavel Machek
2008-01-30 16:35 ` Ingo Molnar
2008-01-30 16:35   ` Ingo Molnar
2008-01-30 16:39   ` Pavel Machek
2008-01-30 19:36 ` Ingo Molnar
2008-01-30 23:26   ` Pavel Machek
2008-02-01 14:22     ` Ingo Molnar
2008-02-02 12:45       ` Pavel Machek
2008-02-02 13:49         ` Ingo Molnar
2008-02-02 13:51         ` Ingo Molnar
2008-02-01  1:55 ` [linux-pm] " David Brownell
2008-02-02 12:47   ` Pavel Machek
2008-02-02 12:47   ` [linux-pm] " Pavel Machek
2008-02-02 13:50     ` Ingo Molnar
2008-02-02 17:49       ` David Brownell
2008-02-02 17:49       ` [linux-pm] " David Brownell
2008-02-02 18:06         ` Ingo Molnar
2008-02-02 19:47           ` David Brownell
2008-02-02 19:47           ` David Brownell
2008-02-02 18:06         ` Ingo Molnar
2008-02-02 13:50     ` Ingo Molnar
2008-02-02 17:31     ` David Brownell
2008-02-02 17:31     ` [linux-pm] " David Brownell
2008-02-02 17:51       ` David Brownell
2008-02-02 17:51       ` [linux-pm] " David Brownell
2008-02-02 18:00       ` Ingo Molnar
2008-02-02 19:13         ` David Brownell
2008-02-02 19:32           ` Pavel Machek
2008-02-02 19:38             ` Ingo Molnar
2008-02-02 19:38             ` [linux-pm] " Ingo Molnar
2008-02-02 19:59               ` Pavel Machek
2008-02-02 19:59               ` [linux-pm] " Pavel Machek
2008-02-03  2:37               ` David Brownell
2008-02-03  2:37               ` [linux-pm] " David Brownell
2008-02-03  5:05                 ` Ingo Molnar
2008-02-03  5:05                 ` [linux-pm] " Ingo Molnar
2008-02-03  5:14                   ` Ingo Molnar
2008-02-03  5:19                     ` Ingo Molnar
2008-02-03  5:35                       ` Ingo Molnar
2008-02-03  5:35                       ` [linux-pm] " Ingo Molnar
2008-02-03  5:54                         ` Ingo Molnar
2008-02-03  5:54                         ` [linux-pm] " Ingo Molnar
2008-02-03  7:05                           ` Ingo Molnar
2008-02-03  7:32                             ` David Brownell
2008-02-03 12:21                               ` Rafael J. Wysocki
2008-02-03 13:16                                 ` David Brownell
2008-02-03 21:29                                   ` Rafael J. Wysocki
2008-02-03 22:42                                     ` David Brownell
2008-02-03 22:43                                       ` Rafael J. Wysocki
2008-02-03 22:43                                       ` [linux-pm] " Rafael J. Wysocki
2008-02-03 22:48                                       ` Pavel Machek
2008-02-03 22:48                                       ` [linux-pm] " Pavel Machek
2008-02-03 23:08                                         ` David Brownell
2008-02-03 23:08                                         ` [linux-pm] " David Brownell
2008-02-10 21:03                                           ` Pavel Machek
2008-02-10 21:03                                           ` [linux-pm] " Pavel Machek
2008-02-03 22:42                                     ` David Brownell
2008-02-03 21:29                                   ` Rafael J. Wysocki
2008-02-18  8:56                                   ` [linux-pm] " Pavel Machek
2008-02-18  9:46                                     ` [patch] suspend/resume self-test Ingo Molnar
2008-02-18  9:46                                     ` Ingo Molnar
2008-02-18  9:53                                       ` Pavel Machek
2008-02-18 10:40                                         ` David Brownell
2008-02-18 10:40                                         ` David Brownell
2008-02-18 11:04                                           ` Rafael J. Wysocki
2008-02-18 11:04                                           ` Rafael J. Wysocki
2008-02-18 13:09                                           ` Ingo Molnar
2008-02-18 13:09                                           ` Ingo Molnar
2008-02-18 20:16                                             ` David Brownell
2008-02-19 10:11                                               ` Pavel Machek
2008-02-19 10:11                                                 ` Pavel Machek
2008-02-19 14:43                                                 ` Ingo Molnar
2008-02-19 14:43                                                 ` Ingo Molnar
2008-02-19 19:12                                                   ` David Brownell
2008-02-19 19:12                                                   ` David Brownell
2008-02-20 10:15                                                     ` Ingo Molnar
2008-02-20 10:15                                                     ` Ingo Molnar
2008-02-19 14:40                                               ` Ingo Molnar [this message]
2008-02-19 14:40                                               ` Ingo Molnar
2008-02-18 20:16                                             ` David Brownell
2008-02-18  9:53                                       ` Pavel Machek
2008-02-18 11:06                                       ` Rafael J. Wysocki
2008-02-18 11:06                                       ` Rafael J. Wysocki
2008-02-18  8:56                                   ` sleepy linux self-test Pavel Machek
2008-02-03 13:16                                 ` David Brownell
2008-02-03 12:21                               ` Rafael J. Wysocki
2008-02-03  7:32                             ` David Brownell
2008-02-03  7:05                           ` Ingo Molnar
2008-02-10 21:02                           ` Pavel Machek
2008-02-10 21:02                           ` [linux-pm] " Pavel Machek
2008-02-03  5:19                     ` Ingo Molnar
2008-02-03  7:18                     ` [linux-pm] " David Brownell
2008-02-03  7:51                       ` Sam Ravnborg
2008-02-03  7:51                       ` [linux-pm] " Sam Ravnborg
2008-02-03  8:26                         ` David Brownell
2008-02-03  8:26                         ` David Brownell
2008-02-03  7:18                     ` David Brownell
2008-02-03  5:14                   ` Ingo Molnar
2008-02-02 19:32           ` Pavel Machek
2008-02-02 19:13         ` David Brownell
2008-02-02 18:00       ` Ingo Molnar
2008-02-01  1:55 ` David Brownell

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=20080219144005.GC21176@elte.hu \
    --to=mingo@elte.hu \
    --cc=david-b@pacbell.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=pavel@ucw.cz \
    --cc=rjw@sisk.pl \
    --cc=torvalds@linux-foundation.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.