Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp147661pxa; Wed, 26 Aug 2020 07:07:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzui2l8/sHbldIEOXwqlawVk3D/wF/IajD/UyxON2J2h8pjlzjDAC6+aeCu/IKbnS2r0x4+ X-Received: by 2002:a17:906:97ca:: with SMTP id ef10mr15174383ejb.202.1598450842581; Wed, 26 Aug 2020 07:07:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598450842; cv=none; d=google.com; s=arc-20160816; b=ZAZhSfhSMj6bQM3mlOIVjrwACRbsHlsu/COTQ+3z4DTFst+Pzd6O6AnnvmklJtQl8T F7YasG+9xx5b988dfl38SfTFnscHIMmuMhIdm8et4jsPOVerLwt13Oy7jLnIcanDYsr3 GI16qcM18JLnGnt+VmK7fNzhBiqgOCYQZRMZ82v9t6YUHx2O4YMEVctB9ckDjN0SH/ky VH9ugKOtI1mMumAgKia2z9kQiAyJszdzSj783QvOAiBsJIJoeQPj48QcSyj3PnH/f8qu HrG+M9EhOj0iZt536qd80RbhlvFqXkgDXREWJFh8JAVEygDdaGx3UO2lYpfGmRzuBQsH 6u/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature; bh=Y9P5BWzOUt8HFbZCzRH08lsl6F+ct9Iazl8gkfdueXk=; b=kptfBCDs+HYeDFbSF6H2vCJhleYVGDhEyx+IlQZpOjhrPxZMt2rOKfgr/GK3Gd1Ylc 4mAwPZt4aXKKLOGz9B9yBk9JdJD2Wnr/8JYrhCL0jKgs0j+1hlo/llOEyQkzaLfIC+zA 9H6hl2D0kTeL/Kn7l39omlsr04Hl/UJLxSrbq6HESZcNv38nA2P2aS3CCuvMveiDxvkk WTojX1TX4bUy2HsTZ795q+w8t2b9JXwWMN6PlZFR4W3RD1DfrP4FBABhpdaRXiNBWRqI emsyzn1UPIVCpcR5Q0eEuAaSllfEWv1cmiiAkDAA5j4/lwsIhx+Lfc13sWziCJLSor/b eVRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=PUnIUVxZ; 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=pass (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 e19si1667002eje.233.2020.08.26.07.06.59; Wed, 26 Aug 2020 07:07:22 -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; dkim=pass header.i=@ibm.com header.s=pp1 header.b=PUnIUVxZ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726947AbgHZI3h (ORCPT + 99 others); Wed, 26 Aug 2020 04:29:37 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:63892 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726905AbgHZI3h (ORCPT ); Wed, 26 Aug 2020 04:29:37 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 07Q82aPu130867; Wed, 26 Aug 2020 04:29:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=Y9P5BWzOUt8HFbZCzRH08lsl6F+ct9Iazl8gkfdueXk=; b=PUnIUVxZ4NUzu8fhjBMc/Gbg7xJaBL6TMtzTMeo4lwFjRZp+GKUmL3PlpjA+NOLKFh6N AHGqn+G7OidniuHzNEwcW/NOnTyghHwbnlj6QM5ICY6pWkR6+e+1yMDvY0anAbfeDNx6 WoJzmVW0PouTfNTLvvuX4wrirU3KCTx/oWAamktKohvN82jwb2/p+PGGKr5cgDgwCWRD z9t3j5pF2Nuceo/aGrhItaKPxOi3GHkUOpkfhLceeqQ0lu4C+Ofy22YqW1kW+yoF7RM5 V+i+1OmjgCWgqkyDauPiK66grL3QkBXVucZiv93k51zUPxC2NIadfFcmsW2N5TS7kw6o 2Q== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 335ks10y1e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 26 Aug 2020 04:29:27 -0400 Received: from m0098399.ppops.net (m0098399.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 07Q82hes131790; Wed, 26 Aug 2020 04:29:26 -0400 Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 335ks10y0c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 26 Aug 2020 04:29:26 -0400 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 07Q8Rfxt025561; Wed, 26 Aug 2020 08:29:24 GMT Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by ppma04ams.nl.ibm.com with ESMTP id 33498ua823-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 26 Aug 2020 08:29:24 +0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 07Q8TLLa24248578 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 26 Aug 2020 08:29:21 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3689011C05B; Wed, 26 Aug 2020 08:29:21 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9002211C050; Wed, 26 Aug 2020 08:29:19 +0000 (GMT) Received: from pratiks-thinkpad.ibmuc.com (unknown [9.85.74.150]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 26 Aug 2020 08:29:19 +0000 (GMT) From: Pratik Rajesh Sampat To: linuxppc-dev@lists.ozlabs.org, mpe@ellerman.id.au, npiggin@gmail.com, mikey@neuling.org, ego@linux.vnet.ibm.com, svaidy@linux.ibm.com, linux-kernel@vger.kernel.org, pratik.r.sampat@gmail.com, psampat@linux.ibm.com Subject: [PATCH] Revert "powerpc/powernv/idle: Replace CPU feature check with PVR check" Date: Wed, 26 Aug 2020 13:59:18 +0530 Message-Id: <20200826082918.89306-1-psampat@linux.ibm.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-08-26_03:2020-08-25,2020-08-26 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 mlxscore=0 phishscore=0 suspectscore=0 malwarescore=0 priorityscore=1501 mlxlogscore=999 lowpriorityscore=0 impostorscore=0 adultscore=0 bulkscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2008260058 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Cpuidle stop state implementation has minor optimizations for P10 where hardware preserves more SPR registers compared to P9. The current P9 driver works for P10, although does few extra save-restores. P9 driver can provide the required power management features like SMT thread folding and core level power savings on a P10 platform. Until the P10 stop driver is available, revert the commit which allows for only P9 systems to utilize cpuidle and blocks all idle stop states for P10. Cpu idle states are enabled and tested on the P10 platform with this fix. This reverts commit 8747bf36f312356f8a295a0c39ff092d65ce75ae. Fixes: 8747bf36f312 ("powerpc/powernv/idle: Replace CPU feature check with PVR check") Signed-off-by: Pratik Rajesh Sampat --- @mpe: This revert would resolve a staging issue wherein the P10 stop driver is not yet ready while cpuidle stop states need not be blocked on 5.9 for Power10 systems which could cause SMT folding related performance issues. The P10 stop driver is in the works here: https://lists.ozlabs.org/pipermail/linuxppc-dev/2020-August/216773.html arch/powerpc/platforms/powernv/idle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/powernv/idle.c b/arch/powerpc/platforms/powernv/idle.c index 77513a80cef9..345ab062b21a 100644 --- a/arch/powerpc/platforms/powernv/idle.c +++ b/arch/powerpc/platforms/powernv/idle.c @@ -1223,7 +1223,7 @@ static void __init pnv_probe_idle_states(void) return; } - if (pvr_version_is(PVR_POWER9)) + if (cpu_has_feature(CPU_FTR_ARCH_300)) pnv_power9_idle_init(); for (i = 0; i < nr_pnv_idle_states; i++) -- 2.25.4