Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751243AbdCMGB5 (ORCPT ); Mon, 13 Mar 2017 02:01:57 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:49857 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751160AbdCMGBr (ORCPT ); Mon, 13 Mar 2017 02:01:47 -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 Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, "Gautham R. Shenoy" Subject: [PATCH 0/3] powernv:idle: Fixes for CPU-Hotplug on POWER DD1.0 Date: Mon, 13 Mar 2017 11:31:25 +0530 X-Mailer: git-send-email 1.8.3.1 X-TM-AS-GCONF: 00 x-cbid: 17031306-0044-0000-0000-000002CC05A9 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006773; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000206; SDB=6.00833105; UDB=6.00408985; IPR=6.00610760; BA=6.00005204; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00014621; XFM=3.00000013; UTC=2017-03-13 06:01:43 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17031306-0045-0000-0000-000006FA20CD Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-03-13_05:,, 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-1703130050 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1416 Lines: 39 From: "Gautham R. Shenoy" Hi, This patchset contains fixes to make CPU-Hotplug working on correctly on POWER9 DD1 systems. There are three patches in the series. - The first patch adds a fallback mechanism for CPU-Hotplug when no platform idle state is available. - The second patch ensures that the kernel doesn't use any stop state that is not exposed by the firmware. - The third patch adds a recovery framework for correctly recovering paca pointer of the thread waking up from a stop. These patches are based on powerpc/linux.git "fixes" with the top commit a7d2475af7aed ("powerpc: Sort the selects under CONFIG_PPC"). The patches have been tested with stop1 (ESL=EC=1) as the deepest-state entered into during CPU-Hotplug. Gautham R. Shenoy (3): 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/paca.h | 5 ++++ arch/powerpc/kernel/asm-offsets.c | 1 + arch/powerpc/kernel/idle_book3s.S | 43 +++++++++++++++++++++++++++- arch/powerpc/platforms/powernv/idle.c | 49 ++++++++++++++++++++++++++------ arch/powerpc/platforms/powernv/powernv.h | 1 + arch/powerpc/platforms/powernv/smp.c | 18 ++++++++++-- 6 files changed, 105 insertions(+), 12 deletions(-) -- 1.9.4