From: Geoff Levand <geoff@infradead.org>
To: Arun Chandran <achandran@mvista.com>
Cc: kexec@lists.infradead.org
Subject: Re: Kexec on arm64
Date: Mon, 14 Jul 2014 15:05:04 -0700 [thread overview]
Message-ID: <1405375504.23043.40.camel@smoke> (raw)
In-Reply-To: <CAFdej02yHmsoEpcXBkiEZ9NXvwy4KF_ajN=nmC=E1q+YniPr1A@mail.gmail.com>
Hi Arun,
On Fri, 2014-07-11 at 21:13 +0530, Arun Chandran wrote:
> I tried kexec reboot with my modified kexec-tools and got a nice kernel panic.
> Please find the error log attached.
> There is only dtb file related change in the kernel sources, as given below.
>
> ###########
> cpu-release-addr = <0x1 0x0000fff8>;
> - cpu-return-addr = <0 0>
> + cpu-return-addr = <0x0 0x0>;
> ###########
>
> I just assigned a random value to "cpu-return-addr" in my dtb file;
You need the proper cpu-return-addr value. Because cpu-return-addr
was zero, kexec sent all your secondary processors back to
secondary_startup, and is why you see that in your error log.
I put in a hack for zero cpu-return-addr in my latest version. Please
try it. If you use the same kernel for both the 1st and 2nd stage it
should work.
> Do you have any idea how to find out that value for my hardware?
It is a property of your bootloader, not hardware. Ask your
bootloader maintainer if you can, or check the bootloader sources.
For the rtsm_ve_aemv8a model bootwrapper I set cpu-return-addr to
<0x0 0x80000000> because the bootwrapper linker script puts _start
at PHYS_OFFSET, which is 0x80000000 for that platform.
https://git.kernel.org/cgit/linux/kernel/git/mark/boot-wrapper-aarch64.git/tree/model.lds.S#n30
> My hardware uses spin-table method for SMP. As you said there
> is a bug in kexec for spin-table method, what about trying it without
> CONFIG_SMP? Does your code support that?
CONFIG_SMP=n should work, but I haven't tried it in a long time.
-Geoff
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
next prev parent reply other threads:[~2014-07-14 22:05 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-09 10:13 Kexec on arm64 Arun Chandran
2014-07-09 13:58 ` Arun Chandran
2014-07-09 18:49 ` Geoff Levand
2014-07-11 9:23 ` Arun Chandran
2014-07-11 16:58 ` Geoff Levand
2014-07-11 11:26 ` Arun Chandran
2014-07-12 0:19 ` Geoff Levand
2014-07-14 12:21 ` Arun Chandran
2014-07-11 15:43 ` Arun Chandran
2014-07-14 22:05 ` Geoff Levand [this message]
2014-07-15 15:28 ` Arun Chandran
2014-07-09 18:33 ` 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=1405375504.23043.40.camel@smoke \
--to=geoff@infradead.org \
--cc=achandran@mvista.com \
--cc=kexec@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