Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753795AbbGGHjG (ORCPT ); Tue, 7 Jul 2015 03:39:06 -0400 Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]:52295 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751757AbbGGHi4 (ORCPT ); Tue, 7 Jul 2015 03:38:56 -0400 Date: Tue, 7 Jul 2015 15:38:14 +0800 From: Jisheng Zhang To: Sebastian Hesselbarth , CC: , , Subject: Re: [PATCH 0/2] arm: berlin: add cpu hotplug support Message-ID: <20150707153814.72a8ec8f@xhacker> In-Reply-To: <559B7FA2.4080005@gmail.com> References: <1436253035-371-1-git-send-email-jszhang@marvell.com> <559B7FA2.4080005@gmail.com> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.28; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2015-07-07_02:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 kscore.is_bulkscore=0 kscore.compositescore=1 compositescore=0.9 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 kscore.is_spamscore=0 rbsscore=0.9 spamscore=0 urlsuspectscore=0.9 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1506180000 definitions=main-1507070131 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1953 Lines: 54 Dear Sebastian, On Tue, 07 Jul 2015 09:28:34 +0200 Sebastian Hesselbarth wrote: > On 07/07/2015 09:10 AM, Jisheng Zhang wrote: > > These patches try to add cpu hotplug support for Marvell BG2, BG2Q SoCs. > > These SoCs can't power off cpu independently, but we still want cpu hotplug > > support for them. However, we need to address "CPU still sat on kernel text" > > as pointed out by Mark Rutland[1]. We achieved this by putting the dying CPU > > in WFI state after the coherency is disabled, then asserting the dying CPU > > reset bit to put the CPU in reset state. > > Jisheng, > > thanks for the patches! Out of curiosity, did you measure overall SoC > power consumption with WFI and with reset respectively? I'd expect a > slightly _higher_ power consumption while in reset depending on clock > gating applied to the processor hardware. Thank you for your review. You are right. The cpu in reset state consumes a bit higher power than in WFI. But seems we have no choice for BG2\BG2Q. For newer Berlin SoCs than BG2Q, we support cpu power off and we'll walk through the PSCI code path. Thanks, Jisheng > > Sebastian > > > patch1 use non-self-cleared control register to reset cpu. This is to prepare > > for the next cpu hotplug commit. > > > > patch2 adds the cpu hotplug support finally. > > > > > > [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-May/342642.html > > > > Jisheng Zhang (2): > > arm: berlin: use non-self-cleared reset register to reset cpu > > arm: berlin: add CPU hotplug support > > > > arch/arm/mach-berlin/platsmp.c | 29 ++++++++++++++++++++++++++++- > > 1 file changed, 28 insertions(+), 1 deletion(-) > > -- 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/