Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752908AbbKWMEK (ORCPT ); Mon, 23 Nov 2015 07:04:10 -0500 Received: from pandora.arm.linux.org.uk ([78.32.30.218]:49702 "EHLO pandora.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751400AbbKWMEI (ORCPT ); Mon, 23 Nov 2015 07:04:08 -0500 Date: Mon, 23 Nov 2015 12:03:18 +0000 From: Russell King - ARM Linux To: nyushchenko@dev.rtsoft.ru Cc: Will Deacon , Ard Biesheuvel , Rob Herring , Ian Campbell , Pavel Machek , Mason , Paul Kocialkowski , Masahiro Yamada , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kuznetsovg@dev.rtsoft.ru Subject: Re: [RFC/PATCH] arm: do not skip SMP init calls on SMP_ON_UP case Message-ID: <20151123120317.GN8644@n2100.arm.linux.org.uk> References: <1448279946-19975-1-git-send-email-nyushchenko@dev.rtsoft.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1448279946-19975-1-git-send-email-nyushchenko@dev.rtsoft.ru> 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: 1166 Lines: 28 On Mon, Nov 23, 2015 at 02:59:06PM +0300, nyushchenko@dev.rtsoft.ru wrote: > From: Nikita Yushchenko > > While running an imx6s boasrd, I got following message in boot log: > > [ 0.032414] CPU1: failed to boot: -38 > > This looked strange: imx6s is singe-core and kernel perfectly knows > that. However, for some reason it tries to initialize CPU 1? > > I found this to be caused by > - CONFIG_SMP_ON_UP successfully detects that system is single core, > - this causes is_smp() to return false, > - this causes setup_arch() to skip smp_init_cpus() call, > - this skips board-specific code that sets cpu_possible mask. Right, so you should end up with the possible and present masks containing just one CPU, which should prevent the kernel trying to bring any secondary CPUs online. -- FTTC broadband for 0.8mile line: currently at 9.6Mbps 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/