Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755039AbbDNUv6 (ORCPT ); Tue, 14 Apr 2015 16:51:58 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:56290 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754198AbbDNUvt (ORCPT ); Tue, 14 Apr 2015 16:51:49 -0400 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: Mark Rutland , Kumar Gala , "devicetree@vger.kernel.org" , Catalin Marinas , "linux-arm-msm@vger.kernel.org" , Will Deacon , "linux-kernel@vger.kernel.org" , "arm@kernel.org" , Abhimanyu Kapur Subject: Re: [RFC PATCH 5/5] arm64: qcom: add cpu operations Date: Tue, 14 Apr 2015 22:51:40 +0200 Message-ID: <2167031.4Enm47D6vo@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20150414162953.GL28709@leverpostej> References: <1428601031-5366-1-git-send-email-galak@codeaurora.org> <1428601031-5366-6-git-send-email-galak@codeaurora.org> <20150414162953.GL28709@leverpostej> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:drVbGVRhJNJE5k7oTlPx37ayVA7RKXlpt7pVRdDQ6P0l+lOp3Qp 6DUHFVm/4hBGT8EkGEPjubIHg3QDoiCvictm8LzUXWgJDuE23cW1kKk2X9wQtKg91IZUAoq Lt3FZsLTDlehvzJkEPthKF/wAVMRMHCAaKK+cI2Mivq0HhEH81Ms9CGJPANojbmqssYaJED CZaY1LFAdjjIrGrs1JpUw== X-UI-Out-Filterresults: notjunk:1; Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1455 Lines: 39 On Tuesday 14 April 2015 17:29:53 Mark Rutland wrote: > > > +static int msm_cpu_boot(unsigned int cpu) > > +{ > > + int ret = 0; > > + > > + if (per_cpu(cold_boot_done, cpu) == false) { > > + ret = msm_unclamp_secondary_arm_cpu(cpu); > > + if (ret) > > + return ret; > > + per_cpu(cold_boot_done, cpu) = true; > > + } > > + return secondary_pen_release(cpu); > > +} > > Ah, so cold_boot_done is for pseudo-hotplug. Absolute NAK to that. > > The only thing this gives you over spin-table is one-time powering up of > the CPUs that can be performed prior to entry to Linux. If you do that, > you can trivially share the spin-table code by setting each CPU's > enable-method to "spin-table". > > That won't give you cpuidle or actual hotplug. For those you'll need > PSCI. Maybe a way out for the broken firmware is to have a custom boot wrapper that gets distributed separately and that uses the normal spin-table API. We've done similar things on arch/arm/mach-sunxi for boot loaders that are just too different from what we expect. Once someone implements a proper loader, they could skip that extra wrapper. Arnd -- 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/