Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp636455imm; Tue, 5 Jun 2018 01:47:46 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKPPWguS2CbSQ7Cwra8rmSEDsy0lEDQx5TGxMplLzSduWemccdqam3+o+XNkDJ+WI7TaRA6 X-Received: by 2002:a17:902:4301:: with SMTP id i1-v6mr25452350pld.280.1528188466225; Tue, 05 Jun 2018 01:47:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528188466; cv=none; d=google.com; s=arc-20160816; b=LBA+8yitKpaGbaMs2KwrDywFJZEPkUO0Vn5BqSYj288vNsY266VLhsYrM+MCiAfCgY gEZHfK7LTw3+QJdVRYIctpqysZo0tJmEghQ7gOd4b3P0dlFCu7US7ds5wVud8tuscFrX h8hJe5JLAvf+9bbbmkxwWs6kRiobqlZm9P6Dxyu8NVWuAklA2aUBi/2NEOHUoXv4ifNw afhUrg1JLPOSKvJN5mvmn9LRp2QA24opz++5yUEoH/FBmlq+lkQu9XiO9mAXtd4ehKrA 7u39bzhip+7RRRaMvwyPEFZpsn/ApXh3A8JobXFP8wRid4P+FFSck2RNEIyjZWy3Voam GOHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:subject:cc:to :from:date:arc-authentication-results; bh=5sReH9WJWRhcT3SS5Ub+DHgiHgRdMt518VLtYfQYDCU=; b=TD/WkqmffmMedKvtAplzBTxpeLf6w2fixZelJjkqRyrrnGR8g9PemkAM3N8QchPNvJ uSzTAq6/DRAT754Nnc8zYVVh5sbsr14lcduPydwixyar3bIj2hGL6SugKR7s65xfZcMS B5lTVdnnqpzQbLJh/3bMhFeTsM9NarZ8YdZM2Dr2n3SIor+KiMMrzKTyLoqXKACPueP/ aooOOe29T3UrdukSfEhBR/jG3b4cBoO460ab1OX8KTaSpgAgLx/zpi/5+Ew7CPw/wiDo ET4I8alRQScx/ko0VQSN64Aun7GI9SZq1IDtf+U081VK7zqqzHayhRldsKCArZ87aw32 89xg== 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 u32-v6si26162044pgn.488.2018.06.05.01.47.32; Tue, 05 Jun 2018 01:47:46 -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 S1751707AbeFEIpk (ORCPT + 99 others); Tue, 5 Jun 2018 04:45:40 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:36672 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751495AbeFEIpi (ORCPT ); Tue, 5 Jun 2018 04:45:38 -0400 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w558iEsi105756 for ; Tue, 5 Jun 2018 04:45:38 -0400 Received: from e36.co.us.ibm.com (e36.co.us.ibm.com [32.97.110.154]) by mx0b-001b2d01.pphosted.com with ESMTP id 2jdm7vfc61-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 05 Jun 2018 04:45:37 -0400 Received: from localhost by e36.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 5 Jun 2018 02:45:37 -0600 Received: from b03cxnp07028.gho.boulder.ibm.com (9.17.130.15) by e36.co.us.ibm.com (192.168.1.136) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 5 Jun 2018 02:45:34 -0600 Received: from b03ledav003.gho.boulder.ibm.com (b03ledav003.gho.boulder.ibm.com [9.17.130.234]) by b03cxnp07028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w558jXqr9896206 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 5 Jun 2018 01:45:33 -0700 Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 684496A047; Tue, 5 Jun 2018 02:45:33 -0600 (MDT) Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1937F6A04D; Tue, 5 Jun 2018 02:45:33 -0600 (MDT) Received: from sofia.ibm.com (unknown [9.124.35.22]) by b03ledav003.gho.boulder.ibm.com (Postfix) with ESMTP; Tue, 5 Jun 2018 02:45:32 -0600 (MDT) Received: by sofia.ibm.com (Postfix, from userid 1000) id 18DFC2E2DD2; Tue, 5 Jun 2018 14:15:30 +0530 (IST) Date: Tue, 5 Jun 2018 14:15:30 +0530 From: Gautham R Shenoy To: Michael Ellerman Cc: "Gautham R. Shenoy" , "Rafael J. Wysocki" , Daniel Lezcano , Stewart Smith , Michael Neuling , Vaidyanathan Srinivasan , Shilpasri G Bhat , Akshay Adiga , Nicholas Piggin , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [PATCH] cpuidle:powernv: Make the snooze timeout dynamic. Reply-To: ego@linux.vnet.ibm.com References: <1527768909-32637-1-git-send-email-ego@linux.vnet.ibm.com> <87fu22bxlf.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87fu22bxlf.fsf@concordia.ellerman.id.au> User-Agent: Mutt/1.5.23 (2014-03-12) X-TM-AS-GCONF: 00 x-cbid: 18060508-0020-0000-0000-00000E198E2C X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009133; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000265; SDB=6.01042577; UDB=6.00533873; IPR=6.00821707; MB=3.00021472; MTD=3.00000008; XFM=3.00000015; UTC=2018-06-05 08:45:36 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18060508-0021-0000-0000-000061C3491D Message-Id: <20180605084529.GA5656@in.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-06-05_03:,, 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=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=970 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1805220000 definitions=main-1806050106 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Michael, On Mon, Jun 04, 2018 at 09:27:40PM +1000, Michael Ellerman wrote: > "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? > Yes, this is a bug-fix for a customer scenario which we encountered recently. > Fixes: 78eaa10f027c ("cpuidle: powernv/pseries: Auto-promotion of snooze to deeper idle state") > Cc: stable@vger.kernel.org # v4.2+ This patch applies cleanly from v4.13 onwards. Prior to that there are some (minor) conflicts. Should I spin a version separately for the prior stable versions ? > > cheers >