Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: panand@redhat.com (Pratyush Anand)
To: linux-arm-kernel@lists.infradead.org
Subject: Testing kexec/kdump on ls2085ardb (arm64)
Date: Wed, 12 Apr 2017 22:06:40 +0530	[thread overview]
Message-ID: <b34ce5cb-82d3-a706-0a0b-98828ebb4417@redhat.com> (raw)
In-Reply-To: <3fa4df10-86f9-5a6d-d78f-48acd38f873c@globallogic.com>

Hi Denys,

On Wednesday 12 April 2017 08:05 PM, Denys Zagorui wrote:
> Hello, Pratyush
> Thanks for your reply.
>
> Could you describe how i can find out wich enable method used. One more
> things, i made this tests on qemu, and it works. Logs attached.
>

 From your board log (log_for_com ):

PSCI: PSCI does not exist


and then

[   60.561877] Can't kexec: CPUs are stuck in the kernel.

Above message is coming from machine_kexec_prepare() when 
cpus_are_stuck_in_kernel() returns true. See, its implementation. It 
will return true if number of possible cpus is > 1 and cpu_die() is not 
implemented.

You can boot your first kernel with nr_cpus=1 in  kernel cmdline and 
then you should be able to kexec to the second kernel from there.

However, it can not be a solution. You should update your firmware with 
psci implementation.

For the time being you can have spin-table work aroudn like this [1], 
but please note that spin-table is discouraged upstream [2].

[1] 
https://github.com/pratyushanand/linux/commit/a50e98635b7257c101f02f7ac488a4cb04187f6d
[2] https://patchwork.kernel.org/patch/7873571/


 From your qemu log:

[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required


and so it works :-)


~Pratyush

  parent reply	other threads:[~2017-04-12 16:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-07 11:52 Testing kexec/kdump on ls2085ardb (arm64) Denys Zagorui
2017-04-10  8:42 ` Pratyush Anand
2017-04-12 14:53   ` Testing kexec/kdump on ls2085ardb (arm64) (Pratyush Anand) Denys Zagorui
     [not found]   ` <3fa4df10-86f9-5a6d-d78f-48acd38f873c@globallogic.com>
2017-04-12 16:36     ` Pratyush Anand [this message]
2017-04-13 10:37       ` Testing kexec/kdump on ls2085ardb (arm64) Denys Zagorui
2017-04-10  9:19 ` Bhupesh Sharma

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=b34ce5cb-82d3-a706-0a0b-98828ebb4417@redhat.com \
    --to=panand@redhat.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