From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161297AbbKFMJx (ORCPT ); Fri, 6 Nov 2015 07:09:53 -0500 Received: from mail-gw3-out.broadcom.com ([216.31.210.64]:25042 "EHLO mail-gw3-out.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756411AbbKFMJv (ORCPT ); Fri, 6 Nov 2015 07:09:51 -0500 X-IronPort-AV: E=Sophos;i="5.20,251,1444719600"; d="scan'208";a="79670281" Subject: Re: [PATCH RESEND 0/4] SMP support for Broadcom NSP To: Russell King - ARM Linux References: <1446702681-45339-1-git-send-email-kapilh@broadcom.com> <20151105093443.GO8644@n2100.arm.linux.org.uk> CC: Rob Herring , Pawel Moll , "Mark Rutland" , Ian Campbell , Kumar Gala , Ray Jui , Scott Branden , Jon Mason , Florian Fainelli , "Gregory Fong" , Lee Jones , Hauke Mehrtens , Heiko Stuebner , Kever Yang , Maxime Ripard , Olof Johansson , "Paul Walmsley" , Linus Walleij , Chen-Yu Tsai , , , , From: Kapil Hali Message-ID: <563C9887.5090406@broadcom.com> Date: Fri, 6 Nov 2015 17:39:43 +0530 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151105093443.GO8644@n2100.arm.linux.org.uk> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/5/2015 3:04 PM, Russell King - ARM Linux wrote: > On Thu, Nov 05, 2015 at 12:51:17AM -0500, Kapil Hali wrote: >> Hi, >> >> This series adds SMP support for Broadcom's Northstar Plus SoC. >> >> There are similar SMP enablement methods for many ARMv7 bsed SoCs. >> BCM NSP SoC, has a typical such mechanism - after power-on, the >> secondary core is held in a standby state, primary core provides a >> startup address for the secondary core and wakes it up. Booting of >> the secondary core is serialized using pen_release global variable. > > Why do you need the pen_release stuff? The above implies that you > have only one secondary core, and you can control when it comes out > of standby state. > We can initiate a wake-up of the secondary core. I tested the changes without pen_release method and it works. However, as I understand, I think there is no other way for the primary core to know if the secondary core has come out of standby state other than pen_release mechanism. When there is no other method available, will not smp_boot_secondary() always return successful wake-up of the secondary core? > Please, don't assume that the pen_release stuff is any kind of recommended > or standardised system. It isn't. It's a hack for ARMs evaluation > platforms. > Got it. As pen_release is forbidden, I will change the SMP mechanism to remove pen_release method in the new patch set. Thanks, Kapil