* Re: [PATCH] PM: Hide CONFIG_PM from users [not found] <1297081335-13631-1-git-send-email-broonie@opensource.wolfsonmicro.com> @ 2011-02-07 14:13 ` Stephen Rothwell 2011-02-07 14:18 ` Mark Brown 0 siblings, 1 reply; 13+ messages in thread From: Stephen Rothwell @ 2011-02-07 14:13 UTC (permalink / raw) To: Mark Brown Cc: Len Brown, linux-embedded, Dmitry Torokhov, linux-kernel, Rafael J. Wysocki, Alan Stern, linux-pm, ppc-dev, Andrew Morton [-- Attachment #1: Type: text/plain, Size: 1591 bytes --] Hi Mark, On Mon, 7 Feb 2011 12:22:15 +0000 Mark Brown <broonie@opensource.wolfsonmicro.com> wrote: > > diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig > index 2657299..99e3c52 100644 > --- a/kernel/power/Kconfig > +++ b/kernel/power/Kconfig > @@ -1,23 +1,6 @@ > config PM > - bool "Power Management support" > - depends on !IA64_HP_SIM > - ---help--- > - "Power Management" means that parts of your computer are shut > - off or put into a power conserving "sleep" mode if they are not > - being used. There are two competing standards for doing this: APM > - and ACPI. If you want to use either one, say Y here and then also > - to the requisite support below. > - > - Power Management is most important for battery powered laptop > - computers; if you have a laptop, check out the Linux Laptop home > - page on the WWW at <http://www.linux-on-laptops.com/> or > - Tuxmobil - Linux on Mobile Computers at <http://www.tuxmobil.org/> > - and the Battery Powered Linux mini-HOWTO, available from > - <http://www.tldp.org/docs.html#howto>. > - > - Note that, even if you say N here, Linux on the x86 architecture > - will issue the hlt instruction if nothing is to be done, thereby > - sending the processor to sleep and saving power. > + bool > + default y if !IA64_HP_SIM Several powerpc configs have CONFIG_PM (implicitly) disabled (e.g. the server configs), so this will unexpectedly turn it on for them. -- Cheers, Stephen Rothwell sfr@canb.auug.org.au http://www.canb.auug.org.au/~sfr/ [-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] PM: Hide CONFIG_PM from users 2011-02-07 14:13 ` [PATCH] PM: Hide CONFIG_PM from users Stephen Rothwell @ 2011-02-07 14:18 ` Mark Brown 2011-02-07 14:44 ` Stephen Rothwell 0 siblings, 1 reply; 13+ messages in thread From: Mark Brown @ 2011-02-07 14:18 UTC (permalink / raw) To: Stephen Rothwell Cc: Len Brown, linux-embedded, Dmitry Torokhov, linux-kernel, Rafael J. Wysocki, Alan Stern, linux-pm, ppc-dev, Andrew Morton On Tue, Feb 08, 2011 at 01:13:24AM +1100, Stephen Rothwell wrote: > On Mon, 7 Feb 2011 12:22:15 +0000 Mark Brown <broonie@opensource.wolfsonmicro.com> wrote: > > + bool > > + default y if !IA64_HP_SIM > Several powerpc configs have CONFIG_PM (implicitly) disabled (e.g. the > server configs), so this will unexpectedly turn it on for them. Do you mean that these systems require CONFIG_PM be turned off, or just that people tend not to turn it on? If the latter would you expect any ill effects from doing so? ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] PM: Hide CONFIG_PM from users 2011-02-07 14:18 ` Mark Brown @ 2011-02-07 14:44 ` Stephen Rothwell 2011-02-07 14:50 ` Mark Brown 0 siblings, 1 reply; 13+ messages in thread From: Stephen Rothwell @ 2011-02-07 14:44 UTC (permalink / raw) To: Mark Brown Cc: Len Brown, linux-embedded, Dmitry Torokhov, linux-kernel, Rafael J. Wysocki, Alan Stern, linux-pm, ppc-dev, Andrew Morton [-- Attachment #1: Type: text/plain, Size: 1252 bytes --] Hi Mark, On Mon, 7 Feb 2011 14:18:29 +0000 Mark Brown <broonie@opensource.wolfsonmicro.com> wrote: > > On Tue, Feb 08, 2011 at 01:13:24AM +1100, Stephen Rothwell wrote: > > On Mon, 7 Feb 2011 12:22:15 +0000 Mark Brown <broonie@opensource.wolfsonmicro.com> wrote: > > > > + bool > > > + default y if !IA64_HP_SIM > > > Several powerpc configs have CONFIG_PM (implicitly) disabled (e.g. the > > server configs), so this will unexpectedly turn it on for them. > > Do you mean that these systems require CONFIG_PM be turned off, or just > that people tend not to turn it on? If the latter would you expect any > ill effects from doing so? I don't know the answer to either question without testing. All I am saying is that currently the default for CONFIG_PM is "off" and you are changing it to be "on" and there may not have been any testing done of that in some situations. We don't know where it was explicitly turned off any more since we shrank our defconfig files (which was done automatically) ... since it is off by default, it doesn't need to be mentioned in a defconfig unless it needs to be turned on. -- Cheers, Stephen Rothwell sfr@canb.auug.org.au http://www.canb.auug.org.au/~sfr/ [-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] PM: Hide CONFIG_PM from users 2011-02-07 14:44 ` Stephen Rothwell @ 2011-02-07 14:50 ` Mark Brown 2011-02-07 15:00 ` Geert Uytterhoeven 0 siblings, 1 reply; 13+ messages in thread From: Mark Brown @ 2011-02-07 14:50 UTC (permalink / raw) To: Stephen Rothwell Cc: Len Brown, linux-embedded, Dmitry Torokhov, linux-kernel, Rafael J. Wysocki, Alan Stern, linux-pm, ppc-dev, Andrew Morton On Tue, Feb 08, 2011 at 01:44:32AM +1100, Stephen Rothwell wrote: > On Mon, 7 Feb 2011 14:18:29 +0000 Mark Brown <broonie@opensource.wolfsonmicro.com> wrote: > > Do you mean that these systems require CONFIG_PM be turned off, or just > > that people tend not to turn it on? If the latter would you expect any > > ill effects from doing so? > I don't know the answer to either question without testing. All I am > saying is that currently the default for CONFIG_PM is "off" and you are > changing it to be "on" and there may not have been any testing done of > that in some situations. We don't know where it was explicitly > turned off any more since we shrank our defconfig files (which was done > automatically) ... since it is off by default, it doesn't need to be > mentioned in a defconfig unless it needs to be turned on. My suspicion would be that it'll have been turned off by someone hitting return through a config upgrade rather than through deliberate effort. On the other hand if it is essential for some machines to have it disabled they probably want to have somethnig in Kconfig. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] PM: Hide CONFIG_PM from users 2011-02-07 14:50 ` Mark Brown @ 2011-02-07 15:00 ` Geert Uytterhoeven 2011-02-07 15:10 ` Stephen Rothwell 0 siblings, 1 reply; 13+ messages in thread From: Geert Uytterhoeven @ 2011-02-07 15:00 UTC (permalink / raw) To: Mark Brown Cc: Stephen Rothwell, linux-embedded, Len Brown, Dmitry Torokhov, linux-kernel, Rafael J. Wysocki, Alan Stern, linux-pm, ppc-dev, Andrew Morton On Mon, Feb 7, 2011 at 15:50, Mark Brown <broonie@opensource.wolfsonmicro.com> wrote: > On Tue, Feb 08, 2011 at 01:44:32AM +1100, Stephen Rothwell wrote: >> On Mon, 7 Feb 2011 14:18:29 +0000 Mark Brown <broonie@opensource.wolfson= micro.com> wrote: > >> > Do you mean that these systems require CONFIG_PM be turned off, or jus= t >> > that people tend not to turn it on? =C2=A0If the latter would you expe= ct any >> > ill effects from doing so? > >> I don't know the answer to either question without testing. =C2=A0All I = am >> saying is that currently the default for CONFIG_PM is "off" and you are >> changing it to be "on" and there may not have been any testing done of >> that in some situations. =C2=A0 We don't know where it was explicitly >> turned off any more since we shrank our defconfig files (which was done >> automatically) ... since it is off by default, it doesn't need to be >> mentioned in a defconfig unless it needs to be turned on. > > My suspicion would be that it'll have been turned off by someone hitting > return through a config upgrade rather than through deliberate effort. > On the other hand if it is essential for some machines to have it > disabled they probably want to have somethnig in Kconfig. $ git grep "CONFIG_PM is not set" 7cf3d73b4360e91b14326632ab1aeda4cb26308d^ -- arch/ | wc -l 256 $ 7cf3d73b4360e91b14326632ab1aeda4cb26308d is the commit that introduced savedefconfig, so that's a safe revision with untrimmed defconfigs. Gr{oetje,eeting}s, =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k= .org In personal conversations with technical people, I call myself a hacker. Bu= t when I'm talking to journalists I just say "programmer" or something like t= hat. =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 =C2=A0=C2=A0 -- Linus Torvalds ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] PM: Hide CONFIG_PM from users 2011-02-07 15:00 ` Geert Uytterhoeven @ 2011-02-07 15:10 ` Stephen Rothwell 2011-02-07 15:19 ` Stephen Rothwell 0 siblings, 1 reply; 13+ messages in thread From: Stephen Rothwell @ 2011-02-07 15:10 UTC (permalink / raw) To: Geert Uytterhoeven Cc: Len Brown, Dmitry Torokhov, linux-embedded, Mark Brown, linux-kernel, Rafael J. Wysocki, Alan Stern, linux-pm, ppc-dev, Andrew Morton [-- Attachment #1: Type: text/plain, Size: 605 bytes --] Hi Geert, On Mon, 7 Feb 2011 16:00:55 +0100 Geert Uytterhoeven <geert@linux-m68k.org> wrote: > > $ git grep "CONFIG_PM is not set" > 7cf3d73b4360e91b14326632ab1aeda4cb26308d^ -- arch/ | wc -l > 256 > $ > > 7cf3d73b4360e91b14326632ab1aeda4cb26308d is the commit that introduced > savedefconfig, so that's a safe revision with untrimmed defconfigs. Yeah, but we can't tell if CONFIG_PM is turned off on purpose in those defconfigs, or just off because noone explicitly turned it on. -- Cheers, Stephen Rothwell sfr@canb.auug.org.au http://www.canb.auug.org.au/~sfr/ [-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] PM: Hide CONFIG_PM from users 2011-02-07 15:10 ` Stephen Rothwell @ 2011-02-07 15:19 ` Stephen Rothwell 2011-02-07 15:21 ` Mark Brown 0 siblings, 1 reply; 13+ messages in thread From: Stephen Rothwell @ 2011-02-07 15:19 UTC (permalink / raw) To: Geert Uytterhoeven Cc: Len Brown, Dmitry Torokhov, linux-embedded, Mark Brown, linux-kernel, Rafael J. Wysocki, Alan Stern, linux-pm, ppc-dev, Andrew Morton [-- Attachment #1: Type: text/plain, Size: 844 bytes --] On Tue, 8 Feb 2011 02:10:45 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote: > > On Mon, 7 Feb 2011 16:00:55 +0100 Geert Uytterhoeven <geert@linux-m68k.org> wrote: > > > > $ git grep "CONFIG_PM is not set" > > 7cf3d73b4360e91b14326632ab1aeda4cb26308d^ -- arch/ | wc -l > > 256 > > $ > > > > 7cf3d73b4360e91b14326632ab1aeda4cb26308d is the commit that introduced > > savedefconfig, so that's a safe revision with untrimmed defconfigs. > > Yeah, but we can't tell if CONFIG_PM is turned off on purpose in those > defconfigs, or just off because noone explicitly turned it on. At least some of the powerpc defconfigs were added with CONFIG_PM disabled. I assume that was on purpose (though it may not have been). -- Cheers, Stephen Rothwell sfr@canb.auug.org.au http://www.canb.auug.org.au/~sfr/ [-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] PM: Hide CONFIG_PM from users 2011-02-07 15:19 ` Stephen Rothwell @ 2011-02-07 15:21 ` Mark Brown 2011-02-07 15:36 ` Alan Stern 0 siblings, 1 reply; 13+ messages in thread From: Mark Brown @ 2011-02-07 15:21 UTC (permalink / raw) To: Stephen Rothwell Cc: Len Brown, linux-embedded, Dmitry Torokhov, linux-kernel, Rafael J. Wysocki, Geert Uytterhoeven, Alan Stern, linux-pm, ppc-dev, Andrew Morton On Tue, Feb 08, 2011 at 02:19:16AM +1100, Stephen Rothwell wrote: > At least some of the powerpc defconfigs were added with CONFIG_PM > disabled. I assume that was on purpose (though it may not have been). I'd not be so sure - since it's a bool without an explicit default set Kconfig will default to disabling it and if anything enabling it is the option that requires special effort. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] PM: Hide CONFIG_PM from users 2011-02-07 15:21 ` Mark Brown @ 2011-02-07 15:36 ` Alan Stern 2011-02-07 15:49 ` Mark Brown 0 siblings, 1 reply; 13+ messages in thread From: Alan Stern @ 2011-02-07 15:36 UTC (permalink / raw) To: Mark Brown Cc: Stephen Rothwell, linux-embedded, Len Brown, Dmitry Torokhov, linux-kernel, Rafael J. Wysocki, Geert Uytterhoeven, linux-pm, ppc-dev, Andrew Morton On Mon, 7 Feb 2011, Mark Brown wrote: > On Tue, Feb 08, 2011 at 02:19:16AM +1100, Stephen Rothwell wrote: > > > At least some of the powerpc defconfigs were added with CONFIG_PM > > disabled. I assume that was on purpose (though it may not have been). > > I'd not be so sure - since it's a bool without an explicit default set > Kconfig will default to disabling it and if anything enabling it is the > option that requires special effort. This may be a naive suggestion, but have you considered simply _asking_ the people who added those defconfigs? Alan Stern ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] PM: Hide CONFIG_PM from users 2011-02-07 15:36 ` Alan Stern @ 2011-02-07 15:49 ` Mark Brown 2011-02-07 19:16 ` Rafael J. Wysocki 2011-02-08 1:17 ` Ray Lee 0 siblings, 2 replies; 13+ messages in thread From: Mark Brown @ 2011-02-07 15:49 UTC (permalink / raw) To: Alan Stern Cc: Stephen Rothwell, linux-embedded, Len Brown, Dmitry Torokhov, linux-kernel, Rafael J. Wysocki, Geert Uytterhoeven, linux-pm, ppc-dev, Andrew Morton On Mon, Feb 07, 2011 at 10:36:31AM -0500, Alan Stern wrote: > On Mon, 7 Feb 2011, Mark Brown wrote: > > I'd not be so sure - since it's a bool without an explicit default set > > Kconfig will default to disabling it and if anything enabling it is the > > option that requires special effort. > This may be a naive suggestion, but have you considered simply _asking_ > the people who added those defconfigs? I'm rather hoping that they'll notice the mailing list thread or that someone else who knows what's going on with them does - as Geert pointed out there's a considerable number of defconfigs that have this turned off. It seems more sensible to get some idea if this seems sane to people in the general case before going trying to identify and contact so many individuals. If there are systems that really require disabling CONFIG_PM we probably need to add stuff to Kconfig to make sure it can't be enabled anyway; this shouldn't enable any new configurations. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] PM: Hide CONFIG_PM from users 2011-02-07 15:49 ` Mark Brown @ 2011-02-07 19:16 ` Rafael J. Wysocki 2011-02-08 1:17 ` Ray Lee 1 sibling, 0 replies; 13+ messages in thread From: Rafael J. Wysocki @ 2011-02-07 19:16 UTC (permalink / raw) To: Mark Brown Cc: Stephen Rothwell, linux-embedded, Len Brown, Dmitry Torokhov, linux-kernel, Alan Stern, Geert Uytterhoeven, linux-pm, ppc-dev, Andrew Morton On Monday, February 07, 2011, Mark Brown wrote: > On Mon, Feb 07, 2011 at 10:36:31AM -0500, Alan Stern wrote: > > On Mon, 7 Feb 2011, Mark Brown wrote: > > > > I'd not be so sure - since it's a bool without an explicit default set > > > Kconfig will default to disabling it and if anything enabling it is the > > > option that requires special effort. > > > This may be a naive suggestion, but have you considered simply _asking_ > > the people who added those defconfigs? > > I'm rather hoping that they'll notice the mailing list thread or that > someone else who knows what's going on with them does - as Geert pointed > out there's a considerable number of defconfigs that have this turned > off. It seems more sensible to get some idea if this seems sane to > people in the general case before going trying to identify and contact > so many individuals. > > If there are systems that really require disabling CONFIG_PM we probably > need to add stuff to Kconfig to make sure it can't be enabled anyway; > this shouldn't enable any new configurations. Well, as I've just said, I don't like this change. I'd very much prefer it if CONFIG_PM_OPS were renamed to CONFIG_PM. Thanks, Rafael ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] PM: Hide CONFIG_PM from users 2011-02-07 15:49 ` Mark Brown 2011-02-07 19:16 ` Rafael J. Wysocki @ 2011-02-08 1:17 ` Ray Lee 2011-02-08 11:18 ` Mark Brown 1 sibling, 1 reply; 13+ messages in thread From: Ray Lee @ 2011-02-08 1:17 UTC (permalink / raw) To: Mark Brown Cc: Stephen Rothwell, linux-embedded, Len Brown, Dmitry Torokhov, linux-kernel, Rafael J. Wysocki, Alan Stern, Geert Uytterhoeven, linux-pm, ppc-dev, Andrew Morton On Mon, Feb 7, 2011 at 7:49 AM, Mark Brown <broonie@opensource.wolfsonmicro.com> wrote: > I'm rather hoping that they'll notice the mailing list thread or that > someone else who knows what's going on with them does Surely you're joking. I mean, do _you_ scan every message that comes through lkml and its various sister lists? Do a git blame and add them to the CC:. It's the polite thing to do. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] PM: Hide CONFIG_PM from users 2011-02-08 1:17 ` Ray Lee @ 2011-02-08 11:18 ` Mark Brown 0 siblings, 0 replies; 13+ messages in thread From: Mark Brown @ 2011-02-08 11:18 UTC (permalink / raw) To: Ray Lee Cc: Stephen Rothwell, linux-embedded, Len Brown, Dmitry Torokhov, linux-kernel, Rafael J. Wysocki, Alan Stern, Geert Uytterhoeven, linux-pm, ppc-dev, Andrew Morton On Mon, Feb 07, 2011 at 05:17:59PM -0800, Ray Lee wrote: > On Mon, Feb 7, 2011 at 7:49 AM, Mark Brown > > I'm rather hoping that they'll notice the mailing list thread or that > > someone else who knows what's going on with them does > Surely you're joking. I mean, do _you_ scan every message that comes > through lkml and its various sister lists? Actually I do at least scan most of the lists. > Do a git blame and add them to the CC:. It's the polite thing to do. It's also going to result in the mail not going to the mailing lists as there's a limit on the number of people you can CC enforced by vger which probably isn't constructive. It's moot now but as I said in the text you've helpfully cut I'd have suggested contacting them after the thread had come to a conclusion. ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2011-02-08 11:18 UTC | newest] Thread overview: 13+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <1297081335-13631-1-git-send-email-broonie@opensource.wolfsonmicro.com> 2011-02-07 14:13 ` [PATCH] PM: Hide CONFIG_PM from users Stephen Rothwell 2011-02-07 14:18 ` Mark Brown 2011-02-07 14:44 ` Stephen Rothwell 2011-02-07 14:50 ` Mark Brown 2011-02-07 15:00 ` Geert Uytterhoeven 2011-02-07 15:10 ` Stephen Rothwell 2011-02-07 15:19 ` Stephen Rothwell 2011-02-07 15:21 ` Mark Brown 2011-02-07 15:36 ` Alan Stern 2011-02-07 15:49 ` Mark Brown 2011-02-07 19:16 ` Rafael J. Wysocki 2011-02-08 1:17 ` Ray Lee 2011-02-08 11:18 ` Mark Brown
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).