Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp833725imm; Tue, 5 Jun 2018 05:19:44 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLrJhPgESs5IYtAKTcWmFhlAfYhZUU1WBcayFjebnvZUC6WTrwGIHB2ApHZocnyN5Eba1Bf X-Received: by 2002:a17:902:56e:: with SMTP id 101-v6mr26500671plf.25.1528201184784; Tue, 05 Jun 2018 05:19:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528201184; cv=none; d=google.com; s=arc-20160816; b=yFQOmcvQIIOZOt9CZINl9Du/Hl+5kw75PQgKF13PNGk0i/0ir4SJEQWnqKgOaRQvXV QScE+xXIYqn9sBMw1+sxPeWcNUmHdHOs9NhdWURMeCOtDlFrPUhIcl1Dxh1LG01I6Mt4 ON0WkTdi72JeqjLCk5bCzPrWWHtP5NARq6B0/2TVQKMa3fNV63Y+ckeyj9EQ+xg4AZof WR+rpAfWUIFc07nIRpSQSK2PbXvPCAy42oz9hZBxPq/Dnd0nbfTlX2OT4lpNN2nCkC0V 9ajz1kX9PINq0W++YFOl+DCqEicTjGaj1I5y04SACsbDmPMiyN9CTJ3trvmp3ksM4Id9 WY2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:arc-authentication-results; bh=eul5v6fe0YD9odrUdbijLQtatFROa9tiuYB1drX35EY=; b=B5wuBAaDViEJh/eV7HGgJmkPTBKo3SXqh5FLc/qlt6nW1QbtrA+BVnozXHJF95yPb2 G5spH/U0V5mgKwtSgxSeuXI18GU8zLRVZf0CHm+nK4ndwdwtEAsG8+G7bEBwZXpi66Td EHQvOb06/sW9kix9nlEGZgNFdYn3iDy3VrIHHiRzJdocPypU/3Estwhy2VaHOBk9ujcu SHat/vhvAdAFeM8XBRdkPRi0u+k2+t03750oKWPT0dJ5ibVzUPWVNjL4TnEw5OOjf7o5 MYlaKoOtAacyQR2XuUgRqzHRytCmcs1ZbORd7owk0q/42u9ybqRzDiTpFRflUTZDWkW6 3yVg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u30-v6si19083801pgo.678.2018.06.05.05.19.30; Tue, 05 Jun 2018 05:19:44 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751927AbeFEMSt (ORCPT + 99 others); Tue, 5 Jun 2018 08:18:49 -0400 Received: from ozlabs.org ([203.11.71.1]:60453 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751742AbeFEMSr (ORCPT ); Tue, 5 Jun 2018 08:18:47 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 410W781lx0z9s47; Tue, 5 Jun 2018 22:18:44 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au From: Michael Ellerman To: Gautham R Shenoy 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. In-Reply-To: <20180605084529.GA5656@in.ibm.com> References: <1527768909-32637-1-git-send-email-ego@linux.vnet.ibm.com> <87fu22bxlf.fsf@concordia.ellerman.id.au> <20180605084529.GA5656@in.ibm.com> Date: Tue, 05 Jun 2018 22:18:40 +1000 Message-ID: <87zi09mnof.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Gautham R Shenoy writes: > 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. OK, the change log could have used some more scary words to make that clearer ;) I changed the subject to: cpuidle: powernv: Fix promotion from snooze if next state disabled Which hopefully makes sense. >> 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 ? Yes please, that would be great. You might want to avoid "=====" in the change log too, as patchwork and possibly other tools will think it's part of the diff. cheers