<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/sh/kernel/machine_kexec.c, branch linux-2.6.28.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.28.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.28.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2008-08-28T05:53:03Z</updated>
<entry>
<title>sh: fix kexec entry point for crash kernels</title>
<updated>2008-08-28T05:53:03Z</updated>
<author>
<name>Magnus Damm</name>
</author>
<published>2008-08-27T09:19:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5734493bac88b28d8d7e2f262305fd6e83545ac5'/>
<id>urn:sha1:5734493bac88b28d8d7e2f262305fd6e83545ac5</id>
<content type='text'>
The crash kernel entry point is currently checked by the kexec kernel
code and only physical addresses in the reserved memory window are
accepted. This means that we can't pass P2 or P1 addresses as entry
points in the case of crash kernels. This patch makes sure we can start
crash kernels by adding support for physical address entry points.

Signed-off-by: Magnus Damm &lt;damm@igel.co.jp&gt;
Signed-off-by: Paul Mundt &lt;lethal@linux-sh.org&gt;
</content>
</entry>
<entry>
<title>sh: Save NUMA node data in vmcore for crash dumps.</title>
<updated>2008-08-04T04:42:49Z</updated>
<author>
<name>Paul Mundt</name>
</author>
<published>2008-08-04T04:42:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c3b4adfa65bae300a143188491e285556ca80fff'/>
<id>urn:sha1:c3b4adfa65bae300a143188491e285556ca80fff</id>
<content type='text'>
Presently the NUMA node data isn't saved on kexec. This implements a
simple arch_crash_save_vmcoreinfo() for saving off the relevant data.

Signed-off-by: Paul Mundt &lt;lethal@linux-sh.org&gt;
</content>
</entry>
<entry>
<title>kexec jump</title>
<updated>2008-07-26T19:00:04Z</updated>
<author>
<name>Huang Ying</name>
</author>
<published>2008-07-26T02:45:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3ab83521378268044a448113c6aa9a9e245f4d2f'/>
<id>urn:sha1:3ab83521378268044a448113c6aa9a9e245f4d2f</id>
<content type='text'>
This patch provides an enhancement to kexec/kdump.  It implements the
following features:

- Backup/restore memory used by the original kernel before/after
  kexec.

- Save/restore CPU state before/after kexec.

The features of this patch can be used as a general method to call program in
physical mode (paging turning off).  This can be used to call BIOS code under
Linux.

kexec-tools needs to be patched to support kexec jump. The patches and
the precompiled kexec can be download from the following URL:

       source: http://khibernation.sourceforge.net/download/release_v10/kexec-tools/kexec-tools-src_git_kh10.tar.bz2
       patches: http://khibernation.sourceforge.net/download/release_v10/kexec-tools/kexec-tools-patches_git_kh10.tar.bz2
       binary: http://khibernation.sourceforge.net/download/release_v10/kexec-tools/kexec_git_kh10

Usage example of calling some physical mode code and return:

1. Compile and install patched kernel with following options selected:

CONFIG_X86_32=y
CONFIG_KEXEC=y
CONFIG_PM=y
CONFIG_KEXEC_JUMP=y

2. Build patched kexec-tool or download the pre-built one.

3. Build some physical mode executable named such as "phy_mode"

4. Boot kernel compiled in step 1.

5. Load physical mode executable with /sbin/kexec. The shell command
   line can be as follow:

   /sbin/kexec --load-preserve-context --args-none phy_mode

6. Call physical mode executable with following shell command line:

   /sbin/kexec -e

Implementation point:

To support jumping without reserving memory.  One shadow backup page (source
page) is allocated for each page used by kexeced code image (destination
page).  When do kexec_load, the image of kexeced code is loaded into source
pages, and before executing, the destination pages and the source pages are
swapped, so the contents of destination pages are backupped.  Before jumping
to the kexeced code image and after jumping back to the original kernel, the
destination pages and the source pages are swapped too.

C ABI (calling convention) is used as communication protocol between
kernel and called code.

A flag named KEXEC_PRESERVE_CONTEXT for sys_kexec_load is added to
indicate that the loaded kernel image is used for jumping back.

Now, only the i386 architecture is supported.

Signed-off-by: Huang Ying &lt;ying.huang@intel.com&gt;
Acked-by: Vivek Goyal &lt;vgoyal@redhat.com&gt;
Cc: "Eric W. Biederman" &lt;ebiederm@xmission.com&gt;
Cc: Pavel Machek &lt;pavel@ucw.cz&gt;
Cc: Nigel Cunningham &lt;nigel@nigel.suspend2.net&gt;
Cc: "Rafael J. Wysocki" &lt;rjw@sisk.pl&gt;
Cc: Ingo Molnar &lt;mingo@elte.hu&gt;
Cc: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>Use extended crashkernel command line on sh</title>
<updated>2007-10-19T18:53:51Z</updated>
<author>
<name>Bernhard Walle</name>
</author>
<published>2007-10-19T06:41:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7d7712a385d5b0a6f921dbd9b66ad3aaed387b5e'/>
<id>urn:sha1:7d7712a385d5b0a6f921dbd9b66ad3aaed387b5e</id>
<content type='text'>
This patch removes the crashkernel parsing from arch/sh/kernel/machine_kexec.c
and calls the generic function, introduced in the generic patch, in
setup_bootmem_allocator().

This is necessary because the amount of System RAM must be known in this
function now because of the new syntax.

Signed-off-by: Bernhard Walle &lt;bwalle@suse.de&gt;
Acked-by: Paul Mundt &lt;lethal@linux-sh.org&gt;
Cc: Vivek Goyal &lt;vgoyal@in.ibm.com&gt;
Cc: "Eric W. Biederman" &lt;ebiederm@xmission.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>sh: kdump support.</title>
<updated>2007-05-07T02:11:56Z</updated>
<author>
<name>Paul Mundt</name>
</author>
<published>2007-04-27T02:25:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4d5ade5b29c618e97a8988efb6967cb4dd0e2183'/>
<id>urn:sha1:4d5ade5b29c618e97a8988efb6967cb4dd0e2183</id>
<content type='text'>
This adds support for kexec based crash dumps.

Signed-off-by: Paul Mundt &lt;lethal@linux-sh.org&gt;
</content>
</entry>
<entry>
<title>sh: Update kexec support for API changes.</title>
<updated>2006-09-27T09:26:05Z</updated>
<author>
<name>Paul Mundt</name>
</author>
<published>2006-09-27T09:26:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9d549a7d8ef71f684a35cf1e438543957cf81d12'/>
<id>urn:sha1:9d549a7d8ef71f684a35cf1e438543957cf81d12</id>
<content type='text'>
This was falling a bit behind..

Signed-off-by: Paul Mundt &lt;lethal@linux-sh.org&gt;
</content>
</entry>
<entry>
<title>Storage class should be first</title>
<updated>2006-06-26T16:57:34Z</updated>
<author>
<name>Tobias Klauser</name>
</author>
<published>2006-06-26T16:57:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2efe55a9cec8418f0e0cde3dc3787a42fddc4411'/>
<id>urn:sha1:2efe55a9cec8418f0e0cde3dc3787a42fddc4411</id>
<content type='text'>
Storage class should be before const

Signed-off-by: Tobias Klauser &lt;tklauser@nuerscht.ch&gt;
Signed-off-by: Adrian Bunk &lt;bunk@stusta.de&gt;
</content>
</entry>
<entry>
<title>[PATCH] sh: kexec() support</title>
<updated>2006-01-17T07:15:27Z</updated>
<author>
<name>kogiidena</name>
</author>
<published>2006-01-17T06:14:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9d44190eae97ad4c9ce30f1084e1b0dabd646df5'/>
<id>urn:sha1:9d44190eae97ad4c9ce30f1084e1b0dabd646df5</id>
<content type='text'>
This adds kexec() support for SH.

Signed-off-by: kogiidena &lt;kogiidena@eggplant.ddo.jp&gt;
Signed-off-by: Paul Mundt &lt;lethal@linux-sh.org&gt;
Cc: &lt;fastboot@lists.osdl.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
</feed>
