Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp409984imm; Mon, 4 Jun 2018 20:49:09 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJyOJXv865gzdzxOtBYhHgmOdoqj9Vwe1EhB/I43zhL4YbVmyKmGQeBfB6M2AKWp4xbwOUO X-Received: by 2002:a65:6157:: with SMTP id o23-v6mr19681320pgv.310.1528170549250; Mon, 04 Jun 2018 20:49:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528170549; cv=none; d=google.com; s=arc-20160816; b=wOI7nkXNtHIePQPvlhB6bTEYnFJqc0IAB8eor+ljidTV3IIz4s3o/spPt8FMJlsWPz iuxf3V/JPvTz7uhEmoTIF1UN6wbo5yOFuaDSIDJG9hGxpdg4fvosp/SVrZdO8jH2MTya XHiTqJx9meHpmPqL9cCIFQ1LnHbK6uUEwgsw2rMjzD2gCZ8TQWJ0SBjTb/ayw4vN4IAE nbqCkcUL2+jykyXhlpoJhgLbLcg7sL+ZWO7AZgIoYVtXeWkFxSJkks7FZh4+MR5iCuYY uNb55zTvBZRzrGc2i7HFyzUkVqR6TXSoRrJ467PW4RXxPHyhpFlkavrEJtnrpAgegpNM mbIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:mime-version:date:references :in-reply-to:subject:cc:to:from:arc-authentication-results; bh=x4ZW6glmLOR7XYPDg/oSWbMySiHlQysgA3D9IGDeB5k=; b=zVXq7v0La34pYmh2+ihgx8PouyZlQ/IjsV5D9BjCF7tmdhdkkjiy5J3BrmbBLYdMiw mY071LeTvCrbw2hOGLXJxc52gyYVkSDXMI8qEN1I0I+1RPgYA0fyXW1pRsOYMc9buj0N j8bCwonsf+waOxsTxagJHIxYtBq1TsDb3QldShOjsUw2LNcnw2dx/J54INRKEnx5/NiT xtI9iVl1rWaBQ+GEd+liEd9qys6HsznxwkDaMke3sOIunTI46nNI3/Zfb8ue+KcdosnU cf3rzeZelzXYK053JKyFzLTxxfsvx7qgZ5U0N651T/R82BAdwh1QkpKPiYLMjk7hw2T6 EnUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id p17-v6si23448294pli.573.2018.06.04.20.48.42; Mon, 04 Jun 2018 20:49:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1751454AbeFEDsH (ORCPT + 99 others); Mon, 4 Jun 2018 23:48:07 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:56026 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751342AbeFEDsF (ORCPT ); Mon, 4 Jun 2018 23:48:05 -0400 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w553j4Ya115688 for ; Mon, 4 Jun 2018 23:48:04 -0400 Received: from e32.co.us.ibm.com (e32.co.us.ibm.com [32.97.110.150]) by mx0b-001b2d01.pphosted.com with ESMTP id 2jdjk88jek-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 04 Jun 2018 23:48:04 -0400 Received: from localhost by e32.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 4 Jun 2018 21:48:03 -0600 Received: from b03cxnp08025.gho.boulder.ibm.com (9.17.130.17) by e32.co.us.ibm.com (192.168.1.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 4 Jun 2018 21:48:00 -0600 Received: from b03ledav003.gho.boulder.ibm.com (b03ledav003.gho.boulder.ibm.com [9.17.130.234]) by b03cxnp08025.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w553lx6b9568612 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 4 Jun 2018 20:48:00 -0700 Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D897D6A047; Mon, 4 Jun 2018 21:47:59 -0600 (MDT) Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9F4D36A04F; Mon, 4 Jun 2018 21:47:59 -0600 (MDT) Received: from birb.localdomain (unknown [9.185.142.37]) by b03ledav003.gho.boulder.ibm.com (Postfix) with ESMTP; Mon, 4 Jun 2018 21:47:59 -0600 (MDT) Received: by birb.localdomain (Postfix, from userid 1000) id C63154EC62E; Tue, 5 Jun 2018 13:47:55 +1000 (AEST) From: Stewart Smith To: Michael Ellerman , "Gautham R. Shenoy" , "Rafael J. Wysocki" , Daniel Lezcano , Michael Neuling , Vaidyanathan Srinivasan , Shilpasri G Bhat , Akshay Adiga , Nicholas Piggin Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, "Gautham R. Shenoy" Subject: Re: [PATCH] cpuidle:powernv: Make the snooze timeout dynamic. In-Reply-To: <87fu22bxlf.fsf@concordia.ellerman.id.au> References: <1527768909-32637-1-git-send-email-ego@linux.vnet.ibm.com> <87fu22bxlf.fsf@concordia.ellerman.id.au> Date: Tue, 05 Jun 2018 13:47:55 +1000 MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-GCONF: 00 x-cbid: 18060503-0004-0000-0000-0000143F1418 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009131; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000265; SDB=6.01042477; UDB=6.00533813; IPR=6.00821607; MB=3.00021468; MTD=3.00000008; XFM=3.00000015; UTC=2018-06-05 03:48:03 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18060503-0005-0000-0000-000087914BE3 Message-Id: <87k1rd28t0.fsf@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-06-05_01:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=638 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1805220000 definitions=main-1806050045 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Michael Ellerman writes: > "Gautham R. Shenoy" writes: > >> From: "Gautham R. Shenoy" >> >> The commit 78eaa10f027c ("cpuidle: powernv/pseries: Auto-promotion of >> snooze to deeper idle state") introduced a timeout for the snooze idle >> state so that it could be eventually be promoted to a deeper idle >> state. The snooze timeout value is static and set to the target >> residency of the next idle state, which would train the cpuidle >> governor to pick the next idle state eventually. >> >> The unfortunate side-effect of this is that if the next idle state(s) >> is disabled, the CPU will forever remain in snooze, despite the fact >> that the system is completely idle, and other deeper idle states are >> available. > > That sounds like a bug, I'll add? > > Fixes: 78eaa10f027c ("cpuidle: powernv/pseries: Auto-promotion of snooze to deeper idle state") > Cc: stable@vger.kernel.org # v4.2+ Yes, it's a bug - we had a customer bug because we lacked this that meant we had to do firmware changes rather than just tweaking what stop states were used. -- Stewart Smith OPAL Architect, IBM.