Re: [RFC PATCH 01/16] PM / hibernate: define HMAC algorithm and digest size of swsusp

2015-07-31 Thread joeyli
+327,11 @@ struct platform_hibernation_ops { > > > > }; > > > > > > > > #ifdef CONFIG_HIBERNATION > > > > + > > > > +/* HMAC Algorithm of Hibernate Signature */ > > > > +#define SWSUSP_HMAC"hmac(sha1)" >

Re: [RFC PATCH 09/16] PM / hibernate: Reserve swsusp key and earse footprints

2015-07-31 Thread joeyli
On Tue, Jul 28, 2015 at 02:35:23PM +0200, Pavel Machek wrote: > Typo in patch subject. > > > And for earsing footbprints, the codes in this patch remove setup > > And two typos here. > Sorry for subject and above typos, I will fix it. Thanks. > > data that carrie

Re: [RFC PATCH 08/16] x86/efi: Carrying swsusp key by setup data

2015-07-31 Thread joeyli
On Thu, Jul 30, 2015 at 05:30:09PM +0100, Matt Fleming wrote: > On Thu, 2015-07-16 at 22:25 +0800, Lee, Chun-Yi wrote: > > For forwarding swsusp key from EFI stub to boot kernel, this patch > > allocates setup data for carrying swsusp key, size and the status > > of efi opera

Re: [RFC PATCH 01/16] PM / hibernate: define HMAC algorithm and digest size of swsusp

2015-07-31 Thread Pavel Machek
cd2a48 100644 > > > --- a/include/linux/suspend.h > > > +++ b/include/linux/suspend.h > > > @@ -327,6 +327,11 @@ struct platform_hibernation_ops { > > > }; > > > > > > #ifdef CONFIG_HIBERNATION > > > + > > > +/

Re: [RFC PATCH 01/16] PM / hibernate: define HMAC algorithm and digest size of swsusp

2015-07-31 Thread joeyli
struct platform_hibernation_ops { > > }; > > > > #ifdef CONFIG_HIBERNATION > > + > > +/* HMAC Algorithm of Hibernate Signature */ > > +#define SWSUSP_HMAC "hmac(sha1)" > > +#define SWSUSP_DIGEST_SIZE 20 > > I'd replace

Re: [RFC PATCH 08/16] x86/efi: Carrying swsusp key by setup data

2015-07-30 Thread Matt Fleming
On Thu, 2015-07-16 at 22:25 +0800, Lee, Chun-Yi wrote: > For forwarding swsusp key from EFI stub to boot kernel, this patch > allocates setup data for carrying swsusp key, size and the status > of efi operating. > > Signed-off-by: Lee, Chun-Yi > --- > arch/x86/boot/compres

Re: [RFC PATCH 09/16] PM / hibernate: Reserve swsusp key and earse footprints

2015-07-28 Thread Pavel Machek
Typo in patch subject. > And for earsing footbprints, the codes in this patch remove setup And two typos here. > data that carried swsusp key, and clean the memory space that And don't call it swsusp. Please fix globally.

Re: [RFC PATCH 01/16] PM / hibernate: define HMAC algorithm and digest size of swsusp

2015-07-28 Thread Pavel Machek
WSUSP_HMAC "hmac(sha1)" > +#define SWSUSP_DIGEST_SIZE 20 I'd replace SWSUSP with HIBERNATION here, and pretty much everywhere. -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- To uns

[RFC PATCH 14/16] PM / hibernate: Allow user trigger swsusp key re-generating

2015-07-16 Thread Lee, Chun-Yi
This patch provides a ioctl for triggering swsusp key re-generating process. It's allow user call ioctl to raise the flag of key re-generating. Kernel writes a flag to a efi runtime variable, the GUID is S4SignKeyRegen-fe141863-c070-478e-b8a3-878a5dc9ef21, then EFI stub will re-generates s

[RFC PATCH 09/16] PM / hibernate: Reserve swsusp key and earse footprints

2015-07-16 Thread Lee, Chun-Yi
Add handler to parse the setup data that carrying swsusp key, it reserves swsusp key by memblock then copies key to a allocated page in later initcall stage. And for earsing footbprints, the codes in this patch remove setup data that carried swsusp key, and clean the memory space that reserved by

[RFC PATCH 11/16] PM / hibernate: Avoid including swsusp key to hibernate image

2015-07-16 Thread Lee, Chun-Yi
The HMAC key should only resides in kernel memory space but not leak to outside. To avoid including swsusp key in hibernate snapshot image, this patch adds the checking block in the code for asking saveable pages to make sure the key page should not marked as saveable. Signed-off-by: Lee, Chun-Yi

[RFC PATCH 08/16] x86/efi: Carrying swsusp key by setup data

2015-07-16 Thread Lee, Chun-Yi
For forwarding swsusp key from EFI stub to boot kernel, this patch allocates setup data for carrying swsusp key, size and the status of efi operating. Signed-off-by: Lee, Chun-Yi --- arch/x86/boot/compressed/eboot.c | 29 + arch/x86/include/uapi/asm/bootparam.h

[RFC PATCH 01/16] PM / hibernate: define HMAC algorithm and digest size of swsusp

2015-07-16 Thread Lee, Chun-Yi
Using HMAC-SHA1 to be the HMAC algorithm of signing hibernate snapshot image. The digest size of HMAC-SHA1 is 160 bits (20 bytes), this size will be also applied to the length of HMAC key. In addition, add HIBERNATE_VERIFICATION kernel config. Signed-off-by: Lee, Chun-Yi --- include/linux/suspe

Re: [PATCH] Documentation: power: swsusp: Fix script for unswapping

2014-08-16 Thread Pavel Machek
On Tue 2014-05-06 13:01:56, Pali Roh?r wrote: > System can have mmaped also character devices (e.g dri devices by X) or > deleted > files. Running cat on character devices is really bad idea (system can hang) > so > run cat only on regular files. Also mmaped files can have spaces in filenames. >

[PATCH] Documentation: power: swsusp: Fix script for unswapping

2014-05-06 Thread Pali Rohár
System can have mmaped also character devices (e.g dri devices by X) or deleted files. Running cat on character devices is really bad idea (system can hang) so run cat only on regular files. Also mmaped files can have spaces in filenames. Signed-off-by: Pali Rohár --- Documentation/power/swsusp.

Re: swsusp on an AMD x2-64, 2.6.24: regression?

2008-02-01 Thread Michael Tokarev
Michael Tokarev wrote: > Rafael J. Wysocki wrote: [] >> I guess it's a special variation of >> http://bugzilla.kernel.org/show_bug.cgi?id=9528 >> >> Please try to hibernate in the shutdown mode (ie. echo >> "shutdown" into /sys/power/disk before hibernation). [yes it works with shutdown...] > In

Re: swsusp on an AMD x2-64, 2.6.24: regression?

2008-02-01 Thread Michael Tokarev
Rafael J. Wysocki wrote: > On Friday, 1 of February 2008, Michael Tokarev wrote: [] >> no_console_suspend it is. Tried that, the "S|" thing is still >> here, but instead of "Suspending console(s)" it now shows >> progress of suspending other devices. The end result is >> the same - finally it sto

Re: swsusp on an AMD x2-64, 2.6.24: regression?

2008-02-01 Thread Pavel Machek
On Fri 2008-02-01 13:16:08, Michael Tokarev wrote: > Pavel Machek wrote: > > On Fri 2008-02-01 00:41:06, Michael Tokarev wrote: > [] > >> With 2.6.24, it tries to suspend, saves pages to disk, > >> when prints this: > >> > >> ..Saving pages... done. > >> Sl > > It's actually "S|", not "Sl". > > >

Re: swsusp on an AMD x2-64, 2.6.24: regression?

2008-02-01 Thread Rafael J. Wysocki
On Friday, 1 of February 2008, Michael Tokarev wrote: > Pavel Machek wrote: > > On Fri 2008-02-01 00:41:06, Michael Tokarev wrote: > [] > >> With 2.6.24, it tries to suspend, saves pages to disk, > >> when prints this: > >> > >> ..Saving pages... done. > >> Sl > > It's actually "S|", not "Sl". >

Re: swsusp on an AMD x2-64, 2.6.24: regression?

2008-02-01 Thread Michael Tokarev
Pavel Machek wrote: > On Fri 2008-02-01 00:41:06, Michael Tokarev wrote: [] >> With 2.6.24, it tries to suspend, saves pages to disk, >> when prints this: >> >> ..Saving pages... done. >> Sl It's actually "S|", not "Sl". >> Suspending console(s) >> _ >> >> At this point, nothing more happens. It

Re: swsusp on an AMD x2-64, 2.6.24: regression?

2008-01-31 Thread Pavel Machek
On Fri 2008-02-01 00:41:06, Michael Tokarev wrote: > Since I upgraded from 2.6.23 to 2.6.24, suspend to > disk does not work anymore on this machine. I'm > trying to debug this now, for several hours already, > without much luck so far. > > The machine is based on AMD X2-64 (BE-2400) CPU and > NV

swsusp on an AMD x2-64, 2.6.24: regression?

2008-01-31 Thread Michael Tokarev
Since I upgraded from 2.6.23 to 2.6.24, suspend to disk does not work anymore on this machine. I'm trying to debug this now, for several hours already, without much luck so far. The machine is based on AMD X2-64 (BE-2400) CPU and NVidia MCP51PV (GeForce 6150/NForce 430) chipset. Up until 2.6.23

Re: [alsa-devel] PNP_DRIVER_RES_DISABLE breaks swsusp at least with snd_cs4236

2008-01-12 Thread Rafael J. Wysocki
On Saturday, 12 of January 2008, Rene Herman wrote: > On 12-01-08 16:21, Pierre Ossman wrote: > > > Ah, sorry. It was a different thread. Look for a mail with the subject > > "PNP: do not stop/start devices in suspend/resume path" in the LKML och > > linux-pm archives. > > Right, and I see that

Re: [alsa-devel] PNP_DRIVER_RES_DISABLE breaks swsusp at least with snd_cs4236

2008-01-12 Thread Rafael J. Wysocki
On Saturday, 12 of January 2008, Rene Herman wrote: > On 12-01-08 12:12, Pierre Ossman wrote: > > > On Sat, 12 Jan 2008 02:23:27 +0100 > > Rene Herman <[EMAIL PROTECTED]> wrote: > > > >> Pavel, Rafael -- the attached fixes snd-cs4236 not coming back to life for > >> Ondrej after hibernation due

Re: [alsa-devel] PNP_DRIVER_RES_DISABLE breaks swsusp at least with snd_cs4236

2008-01-12 Thread Rene Herman
On 12-01-08 16:21, Pierre Ossman wrote: Ah, sorry. It was a different thread. Look for a mail with the subject "PNP: do not stop/start devices in suspend/resume path" in the LKML och linux-pm archives. Right, and I see that the removal of start/stop is already in -mm. That's not going to wor

Re: [alsa-devel] PNP_DRIVER_RES_DISABLE breaks swsusp at least with snd_cs4236

2008-01-12 Thread Ondrej Zary
On Saturday 12 January 2008 16:21:50 Pierre Ossman wrote: > On Sat, 12 Jan 2008 14:39:47 +0100 > > Rene Herman <[EMAIL PROTECTED]> wrote: > > On 12-01-08 12:12, Pierre Ossman wrote: > > > I'm a bit confused here. Bjorn Helgaas wanted to remove the > > > pnp_start/stop_dev() calls completely, and yo

Re: [alsa-devel] PNP_DRIVER_RES_DISABLE breaks swsusp at least with snd_cs4236

2008-01-12 Thread Pierre Ossman
On Sat, 12 Jan 2008 14:39:47 +0100 Rene Herman <[EMAIL PROTECTED]> wrote: > On 12-01-08 12:12, Pierre Ossman wrote: > > > I'm a bit confused here. Bjorn Helgaas wanted to remove the > > pnp_start/stop_dev() calls completely, and you want them called all the > > time. :) > > Wanted where? Haven

Re: [alsa-devel] PNP_DRIVER_RES_DISABLE breaks swsusp at least with snd_cs4236

2008-01-12 Thread Rene Herman
On 12-01-08 12:12, Pierre Ossman wrote: On Sat, 12 Jan 2008 02:23:27 +0100 Rene Herman <[EMAIL PROTECTED]> wrote: Pavel, Rafael -- the attached fixes snd-cs4236 not coming back to life for Ondrej after hibernation due to the PNP_DRIVER_RES_DO_NOT_CHANGE test triggering in pnp_bus_resume() and

Re: [alsa-devel] PNP_DRIVER_RES_DISABLE breaks swsusp at least with snd_cs4236

2008-01-12 Thread Pierre Ossman
On Sat, 12 Jan 2008 02:23:27 +0100 Rene Herman <[EMAIL PROTECTED]> wrote: > > Pavel, Rafael -- the attached fixes snd-cs4236 not coming back to life for > Ondrej after hibernation due to the PNP_DRIVER_RES_DO_NOT_CHANGE test > triggering in pnp_bus_resume() and keeping the card in a suspended s

Re: [alsa-devel] PNP_DRIVER_RES_DISABLE breaks swsusp at least with snd_cs4236

2008-01-11 Thread Rene Herman
ther unexpected but doesn't change that suspend/resume wouldn't seem to have any business testing the flag. As reported by Ondrej Zary for snd-cs4236, ALSA driven ISAPnP cards don't survive swsusp hibernation with the resume skipping setting the resources d

Re: [alsa-devel] PNP_DRIVER_RES_DISABLE breaks swsusp at least with snd_cs4236

2008-01-11 Thread Ondrej Zary
On Friday 11 January 2008 15:21:55 Rene Herman wrote: > On 11-01-08 08:01, Pierre Ossman wrote: > > On Fri, 11 Jan 2008 02:19:07 +0100 > > > > Rene Herman <[EMAIL PROTECTED]> wrote: > >> I see a PnP resume _consists_ of setting the resources so I can see the > >> test implementation wise, but yes,

Re: [alsa-devel] PNP_DRIVER_RES_DISABLE breaks swsusp at least with snd_cs4236

2008-01-11 Thread Rene Herman
On 11-01-08 08:01, Pierre Ossman wrote: On Fri, 11 Jan 2008 02:19:07 +0100 Rene Herman <[EMAIL PROTECTED]> wrote: I see a PnP resume _consists_ of setting the resources so I can see the test implementation wise, but yes, conceptually it seems this test shouldn't be present. So just like the a

Re: [alsa-devel] PNP_DRIVER_RES_DISABLE breaks swsusp at least with snd_cs4236

2008-01-10 Thread Pierre Ossman
On Fri, 11 Jan 2008 02:19:07 +0100 Rene Herman <[EMAIL PROTECTED]> wrote: > > I see a PnP resume _consists_ of setting the resources so I can see the test > implementation wise, but yes, conceptually it seems this test shouldn't be > present. So just like the attached then? > > Pierre, what wa

Re: [alsa-devel] PNP_DRIVER_RES_DISABLE breaks swsusp at least with snd_cs4236

2008-01-10 Thread Rene Herman
On 10-01-08 08:58, Jaroslav Kysela wrote: On Thu, 10 Jan 2008, Rene Herman wrote: On 09-01-08 23:43, Ondrej Zary wrote: Jaroslav -- in your role as ISA-PnP maintainer and Bjorn, in yours as having been foollish enough to touch PnP recently: as hibernation (swsusp) started to work with my

Re: [alsa-devel] PNP_DRIVER_RES_DISABLE breaks swsusp at least with snd_cs4236

2008-01-09 Thread Jaroslav Kysela
On Thu, 10 Jan 2008, Rene Herman wrote: > On 09-01-08 23:43, Ondrej Zary wrote: > > Jaroslav -- in your role as ISA-PnP maintainer and Bjorn, in yours as > having been foollish enough to touch PnP recently: > > > as hibernation (swsusp) started to work with my CPU, I

Re: [alsa-devel] PNP_DRIVER_RES_DISABLE breaks swsusp at least with snd_cs4236

2008-01-09 Thread Rene Herman
On 09-01-08 23:43, Ondrej Zary wrote: Jaroslav -- in your role as ISA-PnP maintainer and Bjorn, in yours as having been foollish enough to touch PnP recently: as hibernation (swsusp) started to work with my CPU, I found that my Turtle Beach Malibu stops working after resume from hibernation

PNP_DRIVER_RES_DISABLE breaks swsusp at least with snd_cs4236

2008-01-09 Thread Ondrej Zary
Hello, as hibernation (swsusp) started to work with my CPU, I found that my Turtle Beach Malibu stops working after resume from hibernation. It's caused by fact that the card is not enabled on the pnp layer during resume - and thus card registers are inaccessible (reads return FFs, writ

[PATCH] powerpc swsusp: make altivec code depend on CONFIG_ALTIVEC

2007-11-07 Thread Johannes Berg
This makes the altivec code in swsusp_32.S depend on CONFIG_ALTIVEC to avoid build failures for systems that don't have altivec. I'm not sure whether the code will actually work for other systems, but it was merged for just ppc32 rather than powermac a very long time ago. Signed-off-by: Johannes B

Re: [PATCH] swsusp: Use platform mode by default

2007-10-17 Thread Rafael J. Wysocki
On Wednesday, 17 October 2007 05:44, Qi Yong wrote: > On Wed, Oct 17, 2007 at 10:46:12AM +0800, Qi Yong wrote: > > On 12/05/2007, Linus Torvalds <[EMAIL PROTECTED]> wrote: > > > On Fri, 11 May 2007, Rafael J. Wysocki wrote: [--snip--] > > please apply. > > Signed-off-by: Qi Yong <[EMAIL PROTECTED

Re: [PATCH] swsusp: Use platform mode by default

2007-10-16 Thread Qi Yong
On Wed, Oct 17, 2007 at 10:46:12AM +0800, Qi Yong wrote: > On 12/05/2007, Linus Torvalds <[EMAIL PROTECTED]> wrote: > > > > > > On Fri, 11 May 2007, Rafael J. Wysocki wrote: > > > > > > We're working on fixing the breakage, but currently it's difficult, > > > because > > > none of my testboxes has

Re: [PATCH] swsusp: Use platform mode by default

2007-10-16 Thread Linus Torvalds
On Wed, 17 Oct 2007, Qi Yong wrote: > > The key point is "fall back to shutdown _only_ if !ops, otherwise > don't touch hibernation_mode". And that solves my problem. Please, when resurrecting a five-month-old discussion, give more of the old context. I don't know about anybody else, but I ge

Re: [PATCH] swsusp: Use platform mode by default

2007-10-16 Thread Qi Yong
On 12/05/2007, Linus Torvalds <[EMAIL PROTECTED]> wrote: > > > On Fri, 11 May 2007, Rafael J. Wysocki wrote: > > > > We're working on fixing the breakage, but currently it's difficult, because > > none of my testboxes has problems with the 'platform' hibernation and I > > cannot reproduce the repor

Re: [PATCH] swsusp: Use platform mode by default

2007-10-16 Thread Qi Yong
On 14/05/2007, Stefan Seyfried <[EMAIL PROTECTED]> wrote: > On Fri, May 11, 2007 at 03:51:38PM -0700, Linus Torvalds wrote: > > > > > > On Fri, 11 May 2007, Rafael J. Wysocki wrote: > > > > > > Just to clarify, the change in question isn't new. It was introduced by > > > the > > > commit 9185cfa9

Re: 2.6.23-rc2 swsusp, suddenly increased uptime

2007-08-28 Thread Thomas Voegtle
On Tue, 14 Aug 2007, Rafael J. Wysocki wrote: > On Tuesday, 14 August 2007 00:12, Thomas Voegtle wrote: > > On Mon, 13 Aug 2007, Rafael J. Wysocki wrote: > > > > > On Monday, 13 August 2007 23:31, Thomas Voegtle wrote: > > > > On Mon, 13 Aug 2007, Rafael J. Wysocki wrote: > > > > > > > > > On Su

Re: [PATCH] [443/2many] MAINTAINERS - HIBERNATION (aka Software Suspend, aka swsusp):

2007-08-15 Thread Rafael J. Wysocki
On Wednesday, 15 August 2007 04:51, Kyle Moffett wrote: > On Aug 14, 2007, at 19:24:30, Dave Jones wrote: > > On Tue, Aug 14, 2007 at 11:22:37AM -0700, Andrew Morton wrote: > >> On Tue, 14 Aug 2007 11:15:41 -0700 (PDT) Linus Torvalds > >> <[EMAIL PROTECTED]> wrote: > >>> In other words, it would

Re: [PATCH] [443/2many] MAINTAINERS - HIBERNATION (aka Software Suspend, aka swsusp):

2007-08-14 Thread Kyle Moffett
On Aug 14, 2007, at 19:24:30, Dave Jones wrote: On Tue, Aug 14, 2007 at 11:22:37AM -0700, Andrew Morton wrote: On Tue, 14 Aug 2007 11:15:41 -0700 (PDT) Linus Torvalds <[EMAIL PROTECTED]> wrote: In other words, it would be much better to just have per-file markers, along with some per-subdirec

Re: [PATCH] [443/2many] MAINTAINERS - HIBERNATION (aka Software Suspend, aka swsusp):

2007-08-14 Thread Joe Perches
On Tue, 2007-08-14 at 11:15 -0700, Linus Torvalds wrote: > In other words, it would be much better to just have per-file markers, > along with some per-subdirectory stuff or similar. So that there would be no hot single file, I cut the MAINTAINER file into single file segments in maintainers/* 0

Re: [PATCH] [443/2many] MAINTAINERS - HIBERNATION (aka Software Suspend, aka swsusp):

2007-08-14 Thread Dave Jones
On Tue, Aug 14, 2007 at 11:22:37AM -0700, Andrew Morton wrote: > On Tue, 14 Aug 2007 11:15:41 -0700 (PDT) > Linus Torvalds <[EMAIL PROTECTED]> wrote: > > > In other words, it would be much better to just have per-file markers, > > along with some per-subdirectory stuff or similar. > > And

Re: [PATCH] [443/2many] MAINTAINERS - HIBERNATION (aka Software Suspend, aka swsusp):

2007-08-14 Thread Joe Perches
On Tue, 2007-08-14 at 11:15 -0700, Linus Torvalds wrote: > Quite frankly, I think the MAINTAINERS file gets a whole lot uglier this > way. Me too. Chopping up the current file is simple. How about keeping the whole thing in git? Please look at thread: [PATCH] [1/2many] - Find the maintainer(s) f

Re: [PATCH] [443/2many] MAINTAINERS - HIBERNATION (aka Software Suspend, aka swsusp):

2007-08-14 Thread Rene Herman
On 08/14/2007 08:15 PM, Linus Torvalds wrote: Quite frankly, I think the MAINTAINERS file gets a whole lot uglier this way. There's also a rather fundamental issue: this will likely make people touch the MAINTAINERS file *more*, and from a maintenance standpoint, that is exactly the wrong th

Re: [PATCH] [443/2many] MAINTAINERS - HIBERNATION (aka Software Suspend, aka swsusp):

2007-08-14 Thread Andrew Morton
On Tue, 14 Aug 2007 11:15:41 -0700 (PDT) Linus Torvalds <[EMAIL PROTECTED]> wrote: > In other words, it would be much better to just have per-file markers, > along with some per-subdirectory stuff or similar. And a `make maintainers' target to pull it all together.. (perhaps we could add a

Re: [PATCH] [443/2many] MAINTAINERS - HIBERNATION (aka Software Suspend, aka swsusp):

2007-08-14 Thread Linus Torvalds
On Tue, 14 Aug 2007, Joe Perches wrote: > > SUSPEND TO RAM: > P:Pavel Machek > M:[EMAIL PROTECTED] > P:Rafael J. Wysocki > M:[EMAIL PROTECTED] > L:[EMAIL PROTECTED] > S:Maintained > F:Documentation/power/ > F:arch/i386/kernel/acpi/ > F:arch/x86_64/kernel/acpi/

Re: [PATCH] [443/2many] MAINTAINERS - HIBERNATION (aka Software Suspend, aka swsusp):

2007-08-14 Thread Rafael J. Wysocki
tation/power/ > F:arch/i386/kernel/acpi/ > F:arch/x86_64/kernel/acpi/ > F:arch/x86_64/kernel/suspend.c > F:drivers/base/power/ > F: kernel/power/ > F:include/linux/suspend.h > F:include/linux/freezer.h > F:include/linux/pm.h > F:include/a

Re: [PATCH] [443/2many] MAINTAINERS - HIBERNATION (aka Software Suspend, aka swsusp):

2007-08-14 Thread Joe Perches
nclude/linux/freezer.h F: include/linux/pm.h F: include/asm-*/suspend.h HIBERNATION (aka Software Suspend, aka swsusp) P: Pavel Machek M: [EMAIL PROTECTED] P: Rafael J. Wysocki M: [EMAIL PROTECTED] L: [EMAIL PROTECTED] S: Supported F: Documentation/power

Re: [PATCH] [443/2many] MAINTAINERS - HIBERNATION (aka Software Suspend, aka swsusp):

2007-08-14 Thread Rafael J. Wysocki
e/linux/pm.h F:  include/asm-*/suspend.h (2) suspend F:  Documentation/power/ F:  arch/i386/kernel/acpi/ F:  arch/x86_64/kernel/acpi/ F:  arch/x86_64/kernel/suspend.c F:  drivers/base/power/ F:  kernel/power/ F:  include/linux/suspend.h F:  include/linux/freezer

Re: [PATCH] [443/2many] MAINTAINERS - HIBERNATION (aka Software Suspend, aka swsusp):

2007-08-14 Thread Pavel Machek
suspend to RAM and hibernation would be better? > > > > Maybe just collapse the 2 maintainers blocks into one? No, please don't. > > HIBERNATION (aka Software Suspend, aka swsusp) and SUSPEND TO RAM: > > P: Pavel Machek > > M: [EMAIL PROTECTED] > > P: R

Re: 2.6.23-rc2 swsusp, suddenly increased uptime

2007-08-13 Thread Rafael J. Wysocki
On Tuesday, 14 August 2007 00:12, Thomas Voegtle wrote: > On Mon, 13 Aug 2007, Rafael J. Wysocki wrote: > > > On Monday, 13 August 2007 23:31, Thomas Voegtle wrote: > > > On Mon, 13 Aug 2007, Rafael J. Wysocki wrote: > > > > > > > On Sunday, 12 August 2007 21:39, Thomas Voegtle wrote: > > > > >

Re: 2.6.23-rc2 swsusp, suddenly increased uptime

2007-08-13 Thread Thomas Voegtle
On Mon, 13 Aug 2007, Rafael J. Wysocki wrote: > On Monday, 13 August 2007 23:31, Thomas Voegtle wrote: > > On Mon, 13 Aug 2007, Rafael J. Wysocki wrote: > > > > > On Sunday, 12 August 2007 21:39, Thomas Voegtle wrote: > > > > > > > > Hi, > > > > > > > > today I saw this (output from my suspend

Re: 2.6.23-rc2 swsusp, suddenly increased uptime

2007-08-13 Thread Rafael J. Wysocki
On Monday, 13 August 2007 23:31, Thomas Voegtle wrote: > On Mon, 13 Aug 2007, Rafael J. Wysocki wrote: > > > On Sunday, 12 August 2007 21:39, Thomas Voegtle wrote: > > > > > > Hi, > > > > > > today I saw this (output from my suspend script): > > > > > > -> woke up at Sun Aug 12 11:39:17 CEST 20

Re: 2.6.23-rc2 swsusp, suddenly increased uptime

2007-08-13 Thread Thomas Voegtle
On Mon, 13 Aug 2007, Rafael J. Wysocki wrote: > On Sunday, 12 August 2007 21:39, Thomas Voegtle wrote: > > > > Hi, > > > > today I saw this (output from my suspend script): > > > > -> woke up at Sun Aug 12 11:39:17 CEST 2007 > > -> uptime is > > 11:39am up 8 days 0:41, 10 users, load avera

Re: [PATCH] [443/2many] MAINTAINERS - HIBERNATION (aka Software Suspend, aka swsusp):

2007-08-13 Thread Rafael J. Wysocki
relevant for suspend to RAM, so perhaps one common > > list of files for suspend to RAM and hibernation would be better? > > Maybe just collapse the 2 maintainers blocks into one? > > HIBERNATION (aka Software Suspend, aka swsusp) and SUSPEND TO RAM: > P:Pavel Machek > M

Re: [PATCH] [443/2many] MAINTAINERS - HIBERNATION (aka Software Suspend, aka swsusp):

2007-08-13 Thread Joe Perches
and hibernation would be better? Maybe just collapse the 2 maintainers blocks into one? HIBERNATION (aka Software Suspend, aka swsusp) and SUSPEND TO RAM: P: Pavel Machek M: [EMAIL PROTECTED] P: Rafael J. Wysocki M: [EMAIL PROTECTED] L: [EMAIL PROTECTED] S: Supported

Re: [PATCH] [443/2many] MAINTAINERS - HIBERNATION (aka Software Suspend, aka swsusp):

2007-08-13 Thread Rafael J. Wysocki
uspend to RAM and hibernation would be better? > HIBERNATION (aka Software Suspend, aka swsusp): > P:Pavel Machek > M:[EMAIL PROTECTED] > P:Rafael J. Wysocki > M:[EMAIL PROTECTED] > L:[EMAIL PROTECTED] > S:Supported > F:Documentation/power/swsusp* > F:a

Re: 2.6.23-rc2 swsusp, suddenly increased uptime

2007-08-13 Thread Rafael J. Wysocki
On Sunday, 12 August 2007 21:39, Thomas Voegtle wrote: > > Hi, > > today I saw this (output from my suspend script): > > -> woke up at Sun Aug 12 11:39:17 CEST 2007 > -> uptime is > 11:39am up 8 days 0:41, 10 users, load average: 26.12, 6.35, 2.17 > > > Then I did a software suspend. Afte

Re: [PATCH] [443/2many] MAINTAINERS - HIBERNATION (aka Software Suspend, aka swsusp):

2007-08-13 Thread Joe Perches
HIBERNATION (aka Software Suspend, aka swsusp): P: Pavel Machek M: [EMAIL PROTECTED] P: Rafael J. Wysocki M: [EMAIL PROTECTED] L: [EMAIL PROTECTED] S: Supported F: Documentation/power/swsusp* F: arch/i386/power/ F: arch/x86_64/kernel/suspend* F:

Re: [PATCH] [443/2many] MAINTAINERS - HIBERNATION (aka Software Suspend, aka swsusp):

2007-08-13 Thread Rafael J. Wysocki
NERS > @@ -4215,6 +4215,9 @@ P: Rafael J. Wysocki > M: [EMAIL PROTECTED] > L: [EMAIL PROTECTED] > S: Supported > +F: Documentation/power/swsusp* > +F: arch/i386/power/swsusp.S > +F: kernel/power/ Well, the list isn't complete. Please add arch/i386/po

Re: [PATCH] [443/2many] MAINTAINERS - HIBERNATION (aka Software Suspend, aka swsusp):

2007-08-13 Thread Pavel Machek
> Add file pattern to MAINTAINER entry > > Signed-off-by: Joe Perches <[EMAIL PROTECTED]> ACK. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo

[PATCH] [443/2many] MAINTAINERS - HIBERNATION (aka Software Suspend, aka swsusp):

2007-08-13 Thread joe
ED] S: Supported +F: Documentation/power/swsusp* +F: arch/i386/power/swsusp.S +F: kernel/power/ SUSPEND TO RAM: P: Pavel Machek - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordo

2.6.23-rc2 swsusp, suddenly increased uptime

2007-08-12 Thread Thomas Voegtle
Hi, today I saw this (output from my suspend script): -> woke up at Sun Aug 12 11:39:17 CEST 2007 -> uptime is 11:39am up 8 days 0:41, 10 users, load average: 26.12, 6.35, 2.17 Then I did a software suspend. After waking up, I saw this: -> woke up at Sun Aug 12 14:41:56 CEST 2007 -> upt

Re: [PATCH] swsusp: Fix userland interface

2007-06-11 Thread Pavel Machek
diusz Miskiewicz, and > make it impossible to thaw tasks with the help of the swsusp userland > interface > while there is a snapshot image ready to save. > > Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> ACK.

[PATCH] swsusp: Fix userland interface

2007-06-11 Thread Rafael J. Wysocki
[2.6.22 candidate, IMHO] --- From: Rafael J. Wysocki <[EMAIL PROTECTED]> Fix oops caused by 'cat /dev/snapshot', reported by Arkadiusz Miskiewicz, and make it impossible to thaw tasks with the help of the swsusp userland interface while there is a snapshot image ready to save

[PATCH -mm 3/4] swsusp: Introduce restore platform operations

2007-05-25 Thread Rafael J. Wysocki
quot;PM: writing image.\n"); - error = swsusp_write(); + error = swsusp_write(flags); swsusp_free(); if (!error) power_down(); @@ -295,6 +330,7 @@ int hibernate(void) static int software_resume(void) {

[PATCH -mm 4/4] swsusp: Fix hibernation code ordering

2007-05-25 Thread Rafael J. Wysocki
From: Rafael J. Wysocki <[EMAIL PROTECTED]> Change the code ordering so that hibernation_ops->prepare() is called after device_suspend(). This is needed so that we don't violate the ACPI specification, which states that the _PTS and _GTS system-control methods, executed from acpi_sleep_prepare(),

[PATCH -mm 2/4] swsusp: Remove code duplication between disk.c and user.c

2007-05-25 Thread Rafael J. Wysocki
/* Control returns here after successful restore */ + } else { + printk("swsusp debug: Waiting for 5 seconds.\n"); + mdelay(5000); + } + } + enable_nonboot_cpus(); + Resume_devices: + platform_fini

[PATCH -mm 1/4] swsusp: Remove incorrect code from user.c

2007-05-25 Thread Rafael J. Wysocki
From: Rafael J. Wysocki <[EMAIL PROTECTED]> Make the code hibernation code in kernel/power/user.c be functionally equivalent to the corresponding code in kernel/power/disk.c , as it should be. The calls to the platform functions removed by this patch are incorrect. They should be replaced with s

[PATCH -mm 0/4] swsusp: Fix hibernation/restore code ordering

2007-05-25 Thread Rafael J. Wysocki
Hi, In the face of the recent change of suspend code ordering (cf. http://marc.info/?l=linux-acpi&m=117938245931603&w=2) we should also modify the code ordering in swsusp so that hibernation_ops->prepare() is executed after device_suspend(). However, for this purpose it seems re

[PATCH] swsusp: Fix sysfs interface

2007-05-15 Thread Rafael J. Wysocki
From: Rafael J. Wysocki <[EMAIL PROTECTED]> The sysfs files /sys/power/disk and /sys/power/state do not work as documented, since they allow the user to write only a few initial characters of the input string to trigger the option (eg. 'echo pl > /sys/power/disk' activates the platform mode of hib

Re: [PATCH] swsusp: Use platform mode by default

2007-05-14 Thread Stefan Seyfried
On Fri, May 11, 2007 at 03:51:38PM -0700, Linus Torvalds wrote: > > > On Fri, 11 May 2007, Rafael J. Wysocki wrote: > > > > Just to clarify, the change in question isn't new. It was introduced by the > > commit 9185cfa92507d07ac787bc73d06c4eec7239 before 2.6.20, at Seife's > > request and w

Re: [PATCH] swsusp: Use platform mode by default

2007-05-13 Thread Bill Davidsen
Rafael J. Wysocki wrote: On Friday, 11 May 2007 18:30, Linus Torvalds wrote: On Fri, 11 May 2007, Rafael J. Wysocki wrote: We're working on fixing the breakage, but currently it's difficult, because none of my testboxes has problems with the 'platform' hibernation and I cannot reproduce the rep

Re: [PATCH] swsusp: Use platform mode by default

2007-05-11 Thread Len Brown
I agree that we should keep the "platform" default, as it went in 2 releases ago (nearly 6 months) without any reported failures until this one -- and it fixed a longstanding issue documented on many machines. We should debug Qi's failure like any other. We are actually in better shape on this one

Re: [PATCH] swsusp: Use platform mode by default

2007-05-11 Thread Pavel Machek
Hi! > > Just to clarify, the change in question isn't new. It was introduced by the > > commit 9185cfa92507d07ac787bc73d06c4eec7239 before 2.6.20, at Seife's > > request and with Pavel's acceptance. > > Ok, if it's that old, we migt as leave it in. Clearly there weren't many > regressions,

Re: [PATCH] swsusp: Use platform mode by default

2007-05-11 Thread Linus Torvalds
On Fri, 11 May 2007, Rafael J. Wysocki wrote: > > Just to clarify, the change in question isn't new. It was introduced by the > commit 9185cfa92507d07ac787bc73d06c4eec7239 before 2.6.20, at Seife's > request and with Pavel's acceptance. Ok, if it's that old, we migt as leave it in. Clearly

Re: [PATCH] swsusp: Use platform mode by default

2007-05-11 Thread Rafael J. Wysocki
On Friday, 11 May 2007 18:30, Linus Torvalds wrote: > > On Fri, 11 May 2007, Rafael J. Wysocki wrote: > > > > We're working on fixing the breakage, but currently it's difficult, because > > none of my testboxes has problems with the 'platform' hibernation and I > > cannot reproduce the reported i

Re: [PATCH] swsusp: Use platform mode by default

2007-05-11 Thread Linus Torvalds
On Fri, 11 May 2007, Rafael J. Wysocki wrote: > > We're working on fixing the breakage, but currently it's difficult, because > none of my testboxes has problems with the 'platform' hibernation and I > cannot reproduce the reported issues. The rule for anything ACPI-related has been: no regress

Re: OOPS when swsusp/resume when connected to the internet via BT and GPRS

2007-05-11 Thread Pavel Machek
Hi! > today I experienced OOPS when connected via BT/GPRS to the internet, then > swsup and resumed with dongle in HID proxy mode. Please see details in dmesg > log: I have had similar problems --but never quite repeatable. I believe I even have patch somewhere, but I was not able to properly t

Re: [PATCH] swsusp: Use platform mode by default

2007-05-11 Thread Rafael J. Wysocki
t; from disk is limited if the system is simply powered off during the > > > suspend > > > instead of using the ACPI S4 suspend (aka platform mode). > > > > > > Unfortunately the default is currently to power off the system during the > > > suspend so the users o

Re: [PATCH] swsusp: Use platform mode by default

2007-05-11 Thread Coywolf Qi Hunt
't switch to the platform mode explicitly. This patch makes swsusp > use the platform mode by default to avoid such situations. > > Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> > --- > kernel/power/disk.c |8 +--- > kernel/power/main.c |2 +- > 2 f

[PATCH] swsusp: Fix comment it register_nosave_region

2007-05-08 Thread Rafael J. Wysocki
From: Rafael J. Wysocki <[EMAIL PROTECTED]> Fix a typo in the comment before register_nosave_region(). Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> --- kernel/power/snapshot.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6.21/kernel/power/snapshot.c ==

[PATCH -mm] swsusp: Use reasonable default for hibernation_mode

2007-05-08 Thread Rafael J. Wysocki
From: Rafael J. Wysocki <[EMAIL PROTECTED]> Make sure that hibernation_mode is set to a reasonable value by default. Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> --- kernel/power/disk.c |9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) Index: linux-2.6.21/kernel/power/di

Re: [Bluez-users] OOPS when swsusp/resume when connected to the internet via BT and GPRS

2007-05-07 Thread CIJOML
Hi Stefan, thanks for verification on not tainted kernel. I made same test with same error with/without tainted kernel too. Michal Dne pondělí 07 květen 2007 09:40 Stefan Seyfried napsal(a): > On Mon, May 07, 2007 at 12:05:33AM +0200, CIJOML wrote: > > Hi all, > > > > today I experienced OOPS w

Re: [Bluez-users] OOPS when swsusp/resume when connected to the internet via BT and GPRS

2007-05-07 Thread Stefan Seyfried
On Mon, May 07, 2007 at 12:05:33AM +0200, CIJOML wrote: > Hi all, > > today I experienced OOPS when connected via BT/GPRS to the internet, then > swsup and resumed with dongle in HID proxy mode. Please see details in dmesg > log: I got two similar looking oopsen when my mobile phone crashed and

Re: OOPS when swsusp/resume when connected to the internet via BT and GPRS

2007-05-06 Thread Adrian Bunk
On Mon, May 07, 2007 at 07:04:29AM +0200, CIJOML wrote: > Hi Michal, > > my kernel is tainted with madwifi opensource driver :). Only binary part is > ath_hal module, which doesn't have anythink to do with this part of kernel. Any module can change any part of the kernel, e.g. a part of the code

Re: OOPS when swsusp/resume when connected to the internet via BT and GPRS

2007-05-06 Thread CIJOML
Hi Michal, my kernel is tainted with madwifi opensource driver :). Only binary part is ath_hal module, which doesn't have anythink to do with this part of kernel. Ath_hal is doing RF part of card to protect others tune/transmit in other frequency than 2.5/5.8GHz (Wifi 802.11a/b/g). My kernel is

OOPS when swsusp/resume when connected to the internet via BT and GPRS

2007-05-06 Thread CIJOML
Hi all, today I experienced OOPS when connected via BT/GPRS to the internet, then swsup and resumed with dongle in HID proxy mode. Please see details in dmesg log: Restarting tasks ... <6>usb 3-1: USB disconnect, address 3 done. BUG: unable to handle kernel NULL pointer dereference at virtual a

Re: [RFT][PATCH] swsusp: Change code ordering related to ACPI

2007-05-05 Thread Ray Lee
On 5/5/07, Rafael J. Wysocki <[EMAIL PROTECTED]> wrote: On Saturday, 5 May 2007 01:11, Ray Lee wrote: > On 5/4/07, Rafael J. Wysocki <[EMAIL PROTECTED]> wrote: > > The change of the hibernation/suspend code ordering made before 2.6.21 has > > caused some systems to have problems related to ACPI.

Re: [RFT][PATCH] swsusp: Change code ordering related to ACPI

2007-05-05 Thread Rafael J. Wysocki
On Saturday, 5 May 2007 01:11, Ray Lee wrote: > On 5/4/07, Rafael J. Wysocki <[EMAIL PROTECTED]> wrote: > > The change of the hibernation/suspend code ordering made before 2.6.21 has > > caused some systems to have problems related to ACPI. In particular, the > > 'platform' hibernation mode doesn'

Re: [RFT][PATCH] swsusp: Change code ordering related to ACPI

2007-05-04 Thread Ray Lee
On 5/4/07, Rafael J. Wysocki <[EMAIL PROTECTED]> wrote: The change of the hibernation/suspend code ordering made before 2.6.21 has caused some systems to have problems related to ACPI. In particular, the 'platform' hibernation mode doesn't work any more on some systems. It seems that somewhere

Re: [linux-pm] [RFT][PATCH] swsusp: Change code ordering related to ACPI

2007-05-04 Thread Rafael J. Wysocki
7;platform' hibernation mode doesn't work any more on some systems. > > > > > > It has been confirmed that the appended patch fixes the problem, but it's > > > not > > > certain if this changes don't break some other systems. For this reaso

Re: [linux-pm] [RFT][PATCH] swsusp: Change code ordering related to ACPI

2007-05-04 Thread Alexey Starikovskiy
e appended patch fixes the problem, but it's not > certain if this changes don't break some other systems. For this reason, all > users of hibernation (swsusp, uswsusp) are gently requested to verify if this > patch doesn't break their systems. > > Greetings, >

Re: [linux-pm] [RFT][PATCH] swsusp: Change code ordering related to ACPI

2007-05-04 Thread Alexey Starikovskiy
I. In particular, the 'platform' hibernation mode doesn't work any more on some systems. It has been confirmed that the appended patch fixes the problem, but it's not certain if this changes don't break some other systems. For this reason, all users of hibernation (swsusp

  1   2   3   4   5   6   7   8   9   >