Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751941AbdLFLTy (ORCPT ); Wed, 6 Dec 2017 06:19:54 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:50910 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751720AbdLFLTv (ORCPT ); Wed, 6 Dec 2017 06:19:51 -0500 Date: Wed, 6 Dec 2017 16:49:44 +0530 From: Gautham R Shenoy To: Michael Ellerman Cc: Shilpasri G Bhat , linux-pm@vger.kernel.org, "Gautham R. Shenoy" , viresh.kumar@linaro.org, rjw@rjwysocki.net, linux-kernel@vger.kernel.org, huntbag@linux.vnet.ibm.com, linuxppc-dev@lists.ozlabs.org, akshay.adiga@linux.vnet.ibm.com Subject: Re: [PATCH] cpufreq: powernv: Define methods to parse positive & negative pstates Reply-To: ego@linux.vnet.ibm.com References: <1512017018-4857-1-git-send-email-shilpa.bhat@linux.vnet.ibm.com> <87r2s8dt3w.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87r2s8dt3w.fsf@concordia.ellerman.id.au> User-Agent: Mutt/1.5.23 (2014-03-12) X-TM-AS-GCONF: 00 x-cbid: 17120611-0044-0000-0000-000003BA847B X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008159; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000244; SDB=6.00956220; UDB=6.00483346; IPR=6.00736257; BA=6.00005729; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00018378; XFM=3.00000015; UTC=2017-12-06 11:19:49 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17120611-0045-0000-0000-000007E9BB60 Message-Id: <20171206111944.GB22880@in.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-12-06_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1712060165 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1031 Lines: 32 Hi Michael, On Wed, Dec 06, 2017 at 09:54:27PM +1100, Michael Ellerman wrote: > Shilpasri G Bhat writes: > > > From: "Gautham R. Shenoy" > > > > Pstates are 8bit values but on POWER8 they are negative and on POWER9 > > they are positive. This patch adds helper routines to differentiate > > the sign to read the correct pstate value. > > This sounds like it could be a bad bug, but I can't really tell from the > change log. What is the actual impact of not having this patch? On some POWER9 platforms, there can be more than 128 pstates. Without this patch, on such platforms, if the value of the current frequency corresponds to a pstate greater than 128, then the code will interpret it as a negative number, and report that the "pstate is out of bound" while returning a nominal frequency. > > Should it have a Fixes/Cc-stable tag? This doesn't fix any prior commit, but is fixes a newly discovered bug. I will resend the patch Cc'ing stable. > > cheers >