Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932771AbcKWAc6 convert rfc822-to-8bit (ORCPT ); Tue, 22 Nov 2016 19:32:58 -0500 Received: from ozlabs.org ([103.22.144.67]:44423 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751519AbcKWAcy (ORCPT ); Tue, 22 Nov 2016 19:32:54 -0500 Message-ID: <1479861172.6542.62.camel@neuling.org> Subject: Re: [PATCH] powernv: Clear SPRN_PSSCR when a POWER9 CPU comes online From: Michael Neuling To: "Gautham R. Shenoy" , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Vaidyanathan Srinivasan , "Shreyas B. Prabhu" Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Date: Wed, 23 Nov 2016 11:32:52 +1100 In-Reply-To: <1479838000-380-1-git-send-email-ego@linux.vnet.ibm.com> References: <1479838000-380-1-git-send-email-ego@linux.vnet.ibm.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Mailer: Evolution 3.22.1-0ubuntu2 Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1077 Lines: 37 On Tue, 2016-11-22 at 23:36 +0530, Gautham R. Shenoy wrote: > From: "Gautham R. Shenoy" > > Ensure that PSSCR is set to a safe value corresponding to no > state-loss each time a POWER9 CPU comes online. > > Signed-off-by: Gautham R. Shenoy Tested here on my configuration... FWIW Acked-By: Michael Neuling > --- >  arch/powerpc/kernel/cpu_setup_power.S | 2 ++ >  1 file changed, 2 insertions(+) > > diff --git a/arch/powerpc/kernel/cpu_setup_power.S > b/arch/powerpc/kernel/cpu_setup_power.S > index 52ff3f0..37ad045 100644 > --- a/arch/powerpc/kernel/cpu_setup_power.S > +++ b/arch/powerpc/kernel/cpu_setup_power.S > @@ -96,6 +96,7 @@ _GLOBAL(__setup_cpu_power9) >   mtlr r11 >   beqlr >   li r0,0 > + mtspr SPRN_PSSCR,r0 >   mtspr SPRN_LPID,r0 >   mfspr r3,SPRN_LPCR >   ori r3, r3, LPCR_PECEDH > @@ -116,6 +117,7 @@ _GLOBAL(__restore_cpu_power9) >   mtlr r11 >   beqlr >   li r0,0 > + mtspr SPRN_PSSCR,r0 >   mtspr SPRN_LPID,r0 >   mfspr   r3,SPRN_LPCR >   ori r3, r3, LPCR_PECEDH