Thread (36 messages) 36 messages, 8 authors, 2016-07-15
STALE3729d

[PATCH v20 04/14] arm64/kexec: Add core kexec support

From: geoff@infradead.org (Geoff Levand)
Date: 2016-06-27 17:00:26
Also in: kexec

Hi,

On Mon, 2016-06-27 at 17:29 +0100, James Morse wrote:
On 27/06/16 15:39, Catalin Marinas wrote:
quoted
@@ -163,7 +148,7 @@ void machine_kexec(struct kimage *kimage)
 > > 	> > /*
 > > 	> >  * New cpus may have become stuck_in_kernel after we loaded the image.
 > > 	> >  */
-> > 	> > BUG_ON(cpus_are_stuck_in_kernel() && (num_online_cpus() > 1));
+> > 	> > BUG_ON(cpus_are_stuck_in_kernel() || (num_online_cpus() > 1));
 
 > > 	> > reboot_code_buffer_phys = page_to_phys(kimage->control_code_page);
 > > 	> > reboot_code_buffer = phys_to_virt(reboot_code_buffer_phys);
Yes, that's what I meant, thanks Catalin.

The 'num_online_cpus() > 1' is still needed as disable_nonboot_cpus() called via
machine_shutdown() may have failed and this is where we check. (we can't return
an error from either path).

Geoff, I assume you agree?
Yes, we should do a final check, and abort the reboot if if we have
more than a single cpu running.

-Geoff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help