From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 410Hnz1DQJzF1fm for ; Tue, 5 Jun 2018 13:48:06 +1000 (AEST) Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w553iIbf099700 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 mx0a-001b2d01.pphosted.com with ESMTP id 2jdjua05jw-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 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 Message-Id: <87k1rd28t0.fsf@linux.vnet.ibm.com> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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.