Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753529AbaKDKzr (ORCPT ); Tue, 4 Nov 2014 05:55:47 -0500 Received: from gw-1.arm.linux.org.uk ([78.32.30.217]:55334 "EHLO pandora.arm.linux.org.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753270AbaKDKzn (ORCPT ); Tue, 4 Nov 2014 05:55:43 -0500 Date: Tue, 4 Nov 2014 10:55:25 +0000 From: Russell King - ARM Linux To: HuKeping Cc: swarren@nvidia.com, ebiederm@xmission.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, sdu.liu@huawei.com, wangnan0@huawei.com, peifeiyue@huawei.com Subject: Re: [RESEND PATCH] ARM: kexec: Fix validating CPU hotplug support Message-ID: <20141104105525.GE4042@n2100.arm.linux.org.uk> References: <1415094025-66180-1-git-send-email-hukeping@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1415094025-66180-1-git-send-email-hukeping@huawei.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 04, 2014 at 05:40:25PM +0800, HuKeping wrote: > Commit 2103f6cba61a8b8bea3fc1b63661d830a2125e76 added a hotplug checking in > machine_kexec_prepare(), but it will lead a failure when loading the > crash-kernel in some cases. > > Kexec utility can load the crash kernel by two ways: > 1. kexec -l kernel-image > 2. kexec -p kernel-image > > In case #1, for rapid reboot, it's correct to do the hotplug checking things, > for it will shut down cpus in _cpu_down() later when command "kexec -e" be > sent, this routine needs the support of cpu hotplug. > > In case #2, for use on panic, it's unnecessary to do the same thing, the whole > routing has no business with cpu shutting down. Check for cpu hot plug will > lead a failure to load the kernel. So what happens to the other CPUs when you kexec into the new kernel, possibly overwriting the instructions which those CPUs are executing? -- FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up according to speedtest.net. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/