From: mark.rutland@arm.com (Mark Rutland)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 0/8] arm64 kexec kernel patches
Date: Fri, 9 May 2014 17:22:40 +0100 [thread overview]
Message-ID: <20140509162240.GC16418@e106331-lin.cambridge.arm.com> (raw)
In-Reply-To: <cover.1399594544.git.geoff@infradead.org>
On Fri, May 09, 2014 at 01:48:17AM +0100, Geoff Levand wrote:
> Hi Maintainers,
>
> This patchset adds support for kexec re-boots on arm64. I have tested with the
> VE fast model using various kernel config options with both spin and psci enable
> methods. I'll continue to test in the coming weeks.
>
> I tried to re-use the existing hot plug cpu_ops support for the secondary CPU
> shutdown as much as possible, but needed to do some things specific to kexec
> that I couldn't do with what was already there. A significant change is in
> [PATCH 4/8] (arm64: Add smp_spin_table_set_die) where I add the ability to setup
> a custom cpu_die handler.
>
> To get the the spin-table secondary CPUs into the proper state described in
> Documentation/arm64/booting.txt I use a three step spin loop. First in the
> kernel's virtual address space, then to the identity mapped address, then jump
> to the final spin code in the 2nd stage kernel's /memreserve/ area. To support
> this three step spin I needed [PATCH 5/8] (arm64: Split soft_restart into two
> stages). Please see the patch comments for more info. If we added the 2nd
> stage kernel's /memreserve/ area to the identity map we could eliminate the
> middle step and go from the VA space to the /memreserve/ area directly.
As I've covered in my reply to patch 7 [1] I don't think this is a good
approach. I think a vastly better approach is to make kexec depend on
cpu hotplug support in SMP, and enable a simple hotplug-capable boot
protocol (e.g. extend spin-table with a cpu-return-addr).
That way the in-kernel portions of kexec can use the existing
infrastructure without tonnes of point hacks, and we enable a generic
hotplug capable mechanism for those systems which cannot implement PSCI.
>
> Please consider all patches for inclusion. Any comments or suggestions on how
> to improve would be very welcome.
>
> To load a kexec kernel and execute a kexec re-boot on arm64 my patches to
> kexec-tools, which have not yet been merged upstream, are needed:
>
> https://git.linaro.org/people/geoff.levand/kexec-tools.git
Is the master branch up-to-date? The commit dates on all branches I can
see imply they haven't been updated in a while, and the code looks like
it needs some cleanup (there are some unused functions, hard-coded
values, etc).
Cheers,
Mark.
[1] http://lists.infradead.org/pipermail/linux-arm-kernel/2014-May/254819.html
next prev parent reply other threads:[~2014-05-09 16:22 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-09 0:48 [PATCH 0/8] arm64 kexec kernel patches Geoff Levand
2014-05-09 0:48 ` [PATCH 2/8] arm64: Make cpu_read_ops generic Geoff Levand
2014-05-09 0:48 ` [PATCH 8/8] arm64: Enable kexec in defconfig Geoff Levand
2014-05-09 0:48 ` [PATCH 6/8] arm64/kexec: kexec needs cpu_die Geoff Levand
2014-05-09 8:24 ` Mark Rutland
2014-05-13 22:27 ` Geoff Levand
2014-05-09 0:48 ` [PATCH 7/8] arm64/kexec: Add core kexec support Geoff Levand
2014-05-09 15:36 ` Mark Rutland
2014-05-13 22:27 ` Geoff Levand
2014-05-16 10:26 ` Mark Rutland
2014-05-14 10:54 ` Catalin Marinas
2014-05-14 23:20 ` Geoff Levand
2014-07-07 7:33 ` Dave Young
2014-07-11 9:47 ` Dave Young
2014-05-09 0:48 ` [PATCH 3/8] arm64: Add spin-table cpu_die Geoff Levand
2014-05-09 8:54 ` Mark Rutland
2014-05-09 0:48 ` [PATCH 4/8] arm64: Add smp_spin_table_set_die Geoff Levand
2014-05-09 0:48 ` [PATCH 1/8] arm64: Use cpu_ops for smp_stop Geoff Levand
2014-05-09 8:44 ` Mark Rutland
2014-05-13 22:27 ` Geoff Levand
2014-05-09 0:48 ` [PATCH 5/8] arm64: Split soft_restart into two stages Geoff Levand
2014-05-09 16:22 ` Mark Rutland [this message]
2014-05-13 22:26 ` [PATCH 0/8] arm64 kexec kernel patches Geoff Levand
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=20140509162240.GC16418@e106331-lin.cambridge.arm.com \
--to=mark.rutland@arm.com \
--cc=linux-arm-kernel@lists.infradead.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 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).