<feed xmlns='http://www.w3.org/2005/Atom'>
<title>history/kernel/power, branch master</title>
<subtitle>Linux kernel history
</subtitle>
<id>https://git.shady.money/history/atom?h=master</id>
<link rel='self' href='https://git.shady.money/history/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/history/'/>
<updated>2005-03-28T11:43:28Z</updated>
<entry>
<title>[PATCH] swsusp: kill swsusp_restore</title>
<updated>2005-03-28T11:43:28Z</updated>
<author>
<name>Pavel Machek</name>
<email>pavel@ucw.cz</email>
</author>
<published>2005-03-28T11:43:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/history/commit/?id=96f3e0cca37a60a33837ade37c2538e5ee706d19'/>
<id>urn:sha1:96f3e0cca37a60a33837ade37c2538e5ee706d19</id>
<content type='text'>
This kills swsusp_resume; it should be arch-neutral but some i386 code
sneaked in.  And arch-specific code is better done in assembly anyway.
Plus it fixes memory leaks in error paths.

Signed-off-by: Rafael J. Wysocki &lt;rjw@sisk.pl&gt;
Signed-off-by: Pavel Machek &lt;pavel@suse.cz&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] swsusp: small updates</title>
<updated>2005-03-28T11:43:12Z</updated>
<author>
<name>Pavel Machek</name>
<email>pavel@ucw.cz</email>
</author>
<published>2005-03-28T11:43:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/history/commit/?id=c7b2e321ebc22a62871a7b7245db303591038b01'/>
<id>urn:sha1:c7b2e321ebc22a62871a7b7245db303591038b01</id>
<content type='text'>
This kills unused macro and write-only variable, and adds messages where
something goes wrong with suspending devices.

Signed-off-by: Pavel Machek &lt;pavel@suse.cz&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] Allow admin to enable only some of the Magic-Sysrq functions</title>
<updated>2005-03-13T08:25:50Z</updated>
<author>
<name>Jan Kara</name>
<email>jack@ucw.cz</email>
</author>
<published>2005-03-13T08:25:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/history/commit/?id=03b734f799ce03d90b3b12b994761d7d21577094'/>
<id>urn:sha1:03b734f799ce03d90b3b12b994761d7d21577094</id>
<content type='text'>
Allow admin to enable only some of the Magic-Sysrq functions.  This allows
admin to disable sysrq functions he considers dangerous (e.g.  sending kill
signal, remounting fs RO) while keeping the possibility to use the others
(e.g.  debug deadlocks by dumps of processes etc.).

Signed-off-by: Jan Kara &lt;jack@suse.cz&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] Subject: swsusp: do not provoke emergency disk shutdowns</title>
<updated>2005-03-13T08:25:32Z</updated>
<author>
<name>Stefan Seyfried</name>
<email>seife@suse.de</email>
</author>
<published>2005-03-13T08:25:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/history/commit/?id=8599d0a28fb4ab69c13261a63d3a30c596c7d2ef'/>
<id>urn:sha1:8599d0a28fb4ab69c13261a63d3a30c596c7d2ef</id>
<content type='text'>
In platform swsusp mode, we were forgetting to spin disks down, leading to
ugly emergency shutdown.  This synchronizes platform method with other
methods and actually helps.

Signed-off-by: Pavel Machek &lt;pavel@suse.cz&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] swsusp: enable resume from initrd</title>
<updated>2005-03-13T08:25:15Z</updated>
<author>
<name>Pavel Machek</name>
<email>pavel@suse.cz</email>
</author>
<published>2005-03-13T08:25:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/history/commit/?id=1026f161d01dc816be109869ac6c557ff4370c92'/>
<id>urn:sha1:1026f161d01dc816be109869ac6c557ff4370c92</id>
<content type='text'>
From: &lt;mjg59@scrf.ucam.org&gt;

When using a fully modularized kernel it is necessary to activate resume
manually as the device node might not be available during kernel init.

This patch implements a new sysfs attribute '/sys/power/resume' which allows
for manual activation of software resume.  When read from it prints the
configured resume device in 'major:minor' format.  When written to it expects
a device in 'major:minor' format.  This device is then checked for a suspended
image and resume is started if a valid image is found.  The original
functionality is left in place.

It should be used from initramfs, or with care.

Signed-off-by: Hannes Reinecke &lt;hare@suse.de&gt;
Signed-off-by: Pavel Machek &lt;pavel@suse.cz&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] swsusp: use non-contiguous memory on resume</title>
<updated>2005-03-13T08:24:40Z</updated>
<author>
<name>Pavel Machek</name>
<email>pavel@ucw.cz</email>
</author>
<published>2005-03-13T08:24:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/history/commit/?id=ff87eef9f6f515e835b1ca9b3fa454787ba2660b'/>
<id>urn:sha1:ff87eef9f6f515e835b1ca9b3fa454787ba2660b</id>
<content type='text'>
The following patch is designed to fix a problem in the current implementation
of swsusp in mainline kernels.  Namely, swsusp uses an array of page backup
entries (aka pagedir) to store pointers to memory pages that must be saved
during suspend and restored during resume.

Unfortunately, the pagedir has to be located in a contiguous chunk of memory
and it sometimes turns out that an 8-order or even 9-order allocation is
needed for this purpose.  It sometimes is impossible to get such an allocation
and swsusp may fail during either suspend or resume due to the lack of memory,
although theoretically there is enough free memory for it to succeed.

Moreover, swsusp is more likely to fail for this reason during resume, which
means that it may fail during resume after a successful suspend (this actually
has happened for some people, including me :-)) and this, potentially, may
lead to the loss of data.

The problem is fixed by replacing the pagedir with a linklist so that
high-order memory allocations are avoided (the patches make swsusp use only
0-order allocations).  Unfortunately this means that it's necessary to change
assembly routines used to restore the image after it's been loaded from swap
so that they walk the list instead of walking the array.

This patch makes swsusp allocate only individual pages during resume.  it
contains the necessary changes to the assembly routines etc.  for i386 and
x86-64.

Signed-off-by: Rafael J. Wysocki &lt;rjw@sisk.pl&gt;
Signed-off-by: Pavel Machek &lt;pavel@suse.cz&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] Make lots of things static</title>
<updated>2005-03-12T00:40:56Z</updated>
<author>
<name>Adrian Bunk</name>
<email>bunk@stusta.de</email>
</author>
<published>2005-03-12T00:40:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/history/commit/?id=9d340cb7c38e0872b742890d76190cc3ac3cfd50'/>
<id>urn:sha1:9d340cb7c38e0872b742890d76190cc3ac3cfd50</id>
<content type='text'>
This is a megarollup of ~60 patches which give various things static scope.

Signed-off-by: Adrian Bunk &lt;bunk@stusta.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] remove barrier() in software_resume()</title>
<updated>2005-03-10T00:31:32Z</updated>
<author>
<name>Coywolf Qi Hunt</name>
<email>coywolf@gmail.com</email>
</author>
<published>2005-03-10T00:31:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/history/commit/?id=bf9f5763ae107f2565cb89aca8f0c9cebf6cc3b8'/>
<id>urn:sha1:bf9f5763ae107f2565cb89aca8f0c9cebf6cc3b8</id>
<content type='text'>
This patch removes the redundant compiler barrier.  As Linus ever said "The
mb() should make sure that gcc cannot move things around...".

Signed-off-by: Coywolf Qi Hunt &lt;coywolf@gmail.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] swsusp: do not use higher order memory allocations on suspend</title>
<updated>2005-03-08T01:41:44Z</updated>
<author>
<name>Pavel Machek</name>
<email>pavel@ucw.cz</email>
</author>
<published>2005-03-08T01:41:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/history/commit/?id=56a25bd2cd79b069e7ef33ae1b0edf931f9b2cb5'/>
<id>urn:sha1:56a25bd2cd79b069e7ef33ae1b0edf931f9b2cb5</id>
<content type='text'>
This is patch from Rafael, it eliminates order-5 (or worse) allocations
during suspend.  I did few style/whitespace modifications.  It was tested
by me, Rafael, and Stefan from SuSE.

Signed-off-by: Rafael J. Wysocki &lt;rjw@sisk.pl&gt;
Signed-off-by: Pavel Machek &lt;pavel@suse.cz&gt;
Signed-off-by: Adrian Bunk &lt;bunk@stusta.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] Enable swsusp on SMP machines</title>
<updated>2005-01-25T12:40:02Z</updated>
<author>
<name>Pavel Machek</name>
<email>pavel@ucw.cz</email>
</author>
<published>2005-01-25T12:40:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/history/commit/?id=4cd821dfd8c1be920274f315e4823cb67df7df0a'/>
<id>urn:sha1:4cd821dfd8c1be920274f315e4823cb67df7df0a</id>
<content type='text'>
This enables swsusp on SMP machines. It should be working in 2.6.10,
already (but you may need noapic in 2.6.10).

Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
</feed>
