Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935084AbdCVPEr (ORCPT ); Wed, 22 Mar 2017 11:04:47 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:57478 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934926AbdCVPEg (ORCPT ); Wed, 22 Mar 2017 11:04:36 -0400 From: "Gautham R. Shenoy" To: Michael Ellerman , Michael Neuling , Benjamin Herrenschmidt , "Shreyas B. Prabhu" , Shilpasri G Bhat , Vaidyanathan Srinivasan , Anton Blanchard , Balbir Singh , Akshay Adiga , Nicholas Piggin , Mahesh J Salgaonkar Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, "Gautham R. Shenoy" Subject: [v3 PATCH 0/4] powernv:idle: Fixes for CPU-Hotplug on POWER DD1.0 Date: Wed, 22 Mar 2017 20:34:13 +0530 X-Mailer: git-send-email 1.8.3.1 X-TM-AS-GCONF: 00 x-cbid: 17032215-0004-0000-0000-000011D2B253 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006829; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000206; SDB=6.00837350; UDB=6.00411640; IPR=6.00615116; BA=6.00005231; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00014757; XFM=3.00000013; UTC=2017-03-22 15:04:32 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17032215-0005-0000-0000-00007E03877A Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-03-22_12:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1702020001 definitions=main-1703220130 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1670 Lines: 46 From: "Gautham R. Shenoy" Hi, This is the third version of the patchset containing the fixes to make CPU-Hotplug working on correctly on POWER9 DD1 systems. The earlier versions can be found here: [v2] : https://lkml.org/lkml/2017/3/20/555 [v1] : https://lkml.org/lkml/2017/3/13/46 The only change in this patch series from v2 are the following optimizations suggested by Nicholas Piggin. - Dynamically allocate the thread_sibling_pacas array to contain "threads_per_core" number of slots instead of declaring the array size upfront. - Use SPRN_TIR instead of (SPRN_PIR & 0x3) to determine the thread's index within a core. Patch 4 in the series requires Nicholas Piggin's ack. Rest of the patches are unchanged from the previous version. These patches are based on v4.11-rc3. The patches have been tested with stop1 (ESL=EC=1) as the deepest-state entered into during CPU-Hotplug. Gautham R. Shenoy (4): powernv: Move CPU-Offline idle state invocation from smp.c to idle.c powernv:smp: Add busy-wait loop as fall back for CPU-Hotplug powernv:idle: Don't override default/deepest directly in kernel powernv: Recover correct PACA on wakeup from a stop on P9 DD1 arch/powerpc/include/asm/cpuidle.h | 1 + arch/powerpc/include/asm/paca.h | 5 ++ arch/powerpc/kernel/asm-offsets.c | 1 + arch/powerpc/kernel/idle_book3s.S | 48 +++++++++++++++- arch/powerpc/platforms/powernv/idle.c | 96 ++++++++++++++++++++++++++------ arch/powerpc/platforms/powernv/powernv.h | 2 - arch/powerpc/platforms/powernv/smp.c | 18 +----- 7 files changed, 136 insertions(+), 35 deletions(-) -- 1.9.4