Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933399AbcJMQoi (ORCPT ); Thu, 13 Oct 2016 12:44:38 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:35436 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933214AbcJMQoa (ORCPT ); Thu, 13 Oct 2016 12:44:30 -0400 Date: Thu, 13 Oct 2016 16:53:57 +0530 From: Gautham R Shenoy To: Stewart Smith Cc: Gautham R Shenoy , Balbir Singh , Michael Ellerman , "skiboot@lists.ozlabs.org" , Benjamin Herrenschmidt , Paul Mackerras , "Rafael J. Wysocki" , Daniel Lezcano , Michael Neuling , Vaidyanathan Srinivasan , "Shreyas B. Prabhu" , Shilpasri G Bhat , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [PATCH 2/2] powernv: Pass PSSCR value and mask to power9_idle_stop Reply-To: ego@linux.vnet.ibm.com References: <21e080ffa52f432b40750028a624aee1baebbaf7.1475130107.git.ego@linux.vnet.ibm.com> <87int84d6w.fsf@concordia.ellerman.id.au> <0e7ad8ff-8c44-86bc-f560-258bc7b29a32@gmail.com> <20161007072058.GC13873@in.ibm.com> <87lgxuf7tk.fsf@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87lgxuf7tk.fsf@linux.vnet.ibm.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16101311-0056-0000-0000-0000019F3C1E X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00005903; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000186; SDB=6.00767807; UDB=6.00367430; IPR=6.00543967; BA=6.00004807; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00012975; XFM=3.00000011; UTC=2016-10-13 11:24:05 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16101311-0057-0000-0000-000005D23CB0 Message-Id: <20161013112357.GB9002@in.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-10-13_07:,, 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-1609300000 definitions=main-1610130195 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1289 Lines: 41 Hi Stewart, On Wed, Oct 12, 2016 at 04:35:35PM +1100, Stewart Smith wrote: > > What if we just treat the 0xF state from firmware as special and set it > to DEFAULT_PSSCR_MASK in that case? That deals with old skiboot, new > kernel, and sets a pretty small special case that's easy to track into > the future as something we should watch out for. Yes, that will work. I will use this approach in the next version. > > Additionally, if we make skiboot set sane values in ~DEFAULT_PSSCR_MASK > for valid fields in PSSCR on boot/(also kexec?), then > we should end up in a situation where everything works with everything > (even if you don't get the best power saving). Specifically, new > skiboot, old kernel... but it looks like there's nothing currently > missing there No we're not missing much there. From the code of the old kernel, I see that if we pass the psscr_val instead of just the RL to power9_idle_stop(), we end up saving all the SPRs in power_enter_stop() even if the psscr_val didn't correspond to a deep idle state. But that should be ok. > > Should this patch also have Fixes: 3005c597ba4 and CC to stable? Yes, thanks for pointing it out. I shall mark the next version to stable. > > -- > Stewart Smith > OPAL Architect, IBM. -- Thanks and Regards gautham.