Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754735AbbFBIiU (ORCPT ); Tue, 2 Jun 2015 04:38:20 -0400 Received: from pandora.arm.linux.org.uk ([78.32.30.218]:59288 "EHLO pandora.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752845AbbFBIiN (ORCPT ); Tue, 2 Jun 2015 04:38:13 -0400 Date: Tue, 2 Jun 2015 09:38:04 +0100 From: Russell King - ARM Linux To: hiraku.toyooka.gu@hitachi.com Cc: dinguyen@opensource.altera.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] ARM: socfpga: add smp_ops.cpu_kill to make kexec/kdump available Message-ID: <20150602083804.GX2067@n2100.arm.linux.org.uk> References: <20150529053844.31162.43927.stgit@arietta> <20150529083339.GG2067@n2100.arm.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Content-Length: 1088 Lines: 24 On Tue, Jun 02, 2015 at 02:32:19PM +0900, hiraku.toyooka.gu@hitachi.com wrote: > Before kexec soft reboot, secondary CPU's IRQs except for per-cpu twd are > migrated from a CPU going offline to CPU0 by migrate_irqs(). The twd is > stopped by twd_timer_cpu_notify(). As a result, secondary CPU has no > interrupt source before entering WFI loop. I wasn't thinking of SPIs and PPIs, but SGIs - the IPI interrupts coming from the boot CPU. > After staring kexec'd kernel, all interrupts are sent to CPU0 by default > and CPU0 resets the secondary CPUs in socfpga_boot_secondary(). > I think it's the reason why kexec in socfpga succeeds. If you have a way to reset CPU0, why are you not using this for hotplug when a CPU is hot-unplugged? -- FTTC broadband for 0.8mile line: currently at 10.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/