Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp854300ybh; Mon, 13 Jul 2020 03:06:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAHtKpvJKWHWOzmWMqYAhPx2dMjJqgQ1o/wsrSFnNAB5XZrygs8irjLMqs1NZx3NYdjUSd X-Received: by 2002:a05:6402:164f:: with SMTP id s15mr91011606edx.239.1594634768949; Mon, 13 Jul 2020 03:06:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594634768; cv=none; d=google.com; s=arc-20160816; b=V00XeWzMO301P1BDpcEnmMiaNPTzBTYo/dCn8RU6ZNoeyKJ3lWLPOjI5E8dy6/3Ppm to4bbpIJ+yyW5yqqUcWU1y2P5valZjwsBwZmi2D5FIDXCtyH9q6ShYDIddibHvQygdTl A+vFry8ArGFavAQLo8CHSmusx2jPE9k/KOg4U5/r3y7q7iBjh6SeFuhxX9sEz2LZtHd5 T7sZjziL9xS30Hd6e0S9T1COVCqHKGqzOg4G7T9ZsYtW409HSQS4nNX5fZmx2KJjt/73 xEogoOwhkZAsXIc8POIRRY8TCaGrZgRbir/g/yvkQ5TFRbg7xtmHh+5RG9PjA1kYr4wp 4rHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject; bh=QcnKPAT1EJrauoDv9bMCgArpQT96r5je8RaUhwRStY0=; b=LU6lg3O6ar/60kJ3guBMf8nCNml8xLOKa02ZpkMSw2JBmme/aHuVPLev1h5qV22KnW GMj1f5FjLoJHlLE78AcUwJcSPmJG/d34iMU7qVKOe/3qyaf8hYJ2iYWPEKJG5DeCoZ74 cV0jMMJzLLViaviRWK9TKSAOsfp5zORoC5ZjFkZV3mPWRphWy53bARJDAyrYDGbLHMpK TZ2QCx60wXkB2XXaxk7glrJQZUp6DsGNjEQ4bYzo9/qyxUo8cmEfOOOIkafr+KWCP6Hn dLWLTQ5kN3b3wHbMzklZ9dYP22WU+F3/RNJybBUBdB5X6yKfrabIvslBHddPEw0Dagkf B4pw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 17si8610032ejw.686.2020.07.13.03.05.45; Mon, 13 Jul 2020 03:06:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729412AbgGMKDA (ORCPT + 99 others); Mon, 13 Jul 2020 06:03:00 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:29288 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726725AbgGMKC7 (ORCPT ); Mon, 13 Jul 2020 06:02:59 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 06DA2Wp9122637; Mon, 13 Jul 2020 06:02:40 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3278qs71bk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Jul 2020 06:02:40 -0400 Received: from m0098409.ppops.net (m0098409.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 06DA2afa122862; Mon, 13 Jul 2020 06:02:36 -0400 Received: from ppma06fra.de.ibm.com (48.49.7a9f.ip4.static.sl-reverse.com [159.122.73.72]) by mx0a-001b2d01.pphosted.com with ESMTP id 3278qs7149-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Jul 2020 06:02:36 -0400 Received: from pps.filterd (ppma06fra.de.ibm.com [127.0.0.1]) by ppma06fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 06D9ko3R032061; Mon, 13 Jul 2020 10:02:17 GMT Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by ppma06fra.de.ibm.com with ESMTP id 327p0vrnsq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Jul 2020 10:02:17 +0000 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 06DA2EDL1835312 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 13 Jul 2020 10:02:14 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 834AE42047; Mon, 13 Jul 2020 10:02:14 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CE56642041; Mon, 13 Jul 2020 10:02:12 +0000 (GMT) Received: from [9.85.82.10] (unknown [9.85.82.10]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 13 Jul 2020 10:02:12 +0000 (GMT) Subject: Re: [PATCH v2 0/3] Power10 basic energy management To: Nicholas Piggin , benh@kernel.crashing.org, ego@linux.vnet.ibm.com, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, mikey@neuling.org, mpe@ellerman.id.au, paulus@samba.org, pratik.r.sampat@gmail.com, ravi.bangoria@linux.ibm.com, svaidy@linux.ibm.com References: <20200710052207.12003-1-psampat@linux.ibm.com> <1594617564.57k8bsyfd0.astroid@bobo.none> From: Pratik Sampat Message-ID: Date: Mon, 13 Jul 2020 15:32:12 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <1594617564.57k8bsyfd0.astroid@bobo.none> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-07-13_07:2020-07-10,2020-07-13 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 malwarescore=0 bulkscore=0 clxscore=1015 lowpriorityscore=0 adultscore=0 spamscore=0 priorityscore=1501 mlxlogscore=999 phishscore=0 impostorscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2007130072 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thank you for your comments, On 13/07/20 10:53 am, Nicholas Piggin wrote: > Excerpts from Pratik Rajesh Sampat's message of July 10, 2020 3:22 pm: >> Changelog v1 --> v2: >> 1. Save-restore DAWR and DAWRX unconditionally as they are lost in >> shallow idle states too >> 2. Rename pnv_first_spr_loss_level to pnv_first_fullstate_loss_level to >> correct naming terminology >> >> Pratik Rajesh Sampat (3): >> powerpc/powernv/idle: Exclude mfspr on HID1,4,5 on P9 and above >> powerpc/powernv/idle: save-restore DAWR0,DAWRX0 for P10 >> powerpc/powernv/idle: Rename pnv_first_spr_loss_level variable >> >> arch/powerpc/platforms/powernv/idle.c | 34 +++++++++++++++++---------- >> 1 file changed, 22 insertions(+), 12 deletions(-) > These look okay to me, but the CPU_FTR_ARCH_300 test for > pnv_power9_idle_init() is actually wrong, it should be a PVR test > because idle is not completely architected (not even shallow stop > states, unfortunately). > > It doesn't look like we support POWER10 idle correctly yet, and on older > kernels it wouldn't work even if we fixed newer, so ideally the PVR > check would be backported as a fix in the front of the series. > > Sadly, we have no OPAL idle driver yet. Hopefully we will before the > next processor shows up :P > > Thanks, > Nick So if I understand this correctly, in powernv/idle.c where we check for CPU_FTR_ARCH_300, we should rather be making a pvr_version_is(PVR_POWER9) check instead? Of course, the P10 PVR and its relevant checks will have to be added then too. Thanks Pratik