Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3743584imm; Mon, 20 Aug 2018 04:06:20 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzY+8IDIp3r3OVaSAPKSENnfVOoXyy7Su01UPl+R2rpgnEgVbLxULHQoHTbo9siqtD+JfFM X-Received: by 2002:a63:4e25:: with SMTP id c37-v6mr42501833pgb.6.1534763180108; Mon, 20 Aug 2018 04:06:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534763180; cv=none; d=google.com; s=arc-20160816; b=GH+Fl2I8a+DILZAYufEn/i9y4mUQHJAD5Gn7WuVh8ANx2fauK6GiUSB/iiK7yPsjvD wsfBD2Cbt0ZYDpFul5jb1hRi2qpQTqqiFYBWUbnFRB5con0EFDdswSxo3WS7pC0geE4i zsNubNuPDV6CTOdeuY9BlwLnailA9zwg3MmCMT8Jr+Um+4ot42VhvPhoNsze+5ahKKXZ 05QnRONxwp7/Rs2945AbHYV4p0A83n/DBfh2gwHA4heWgUzrIu48Gl9p1vnRDSvErViA TTLWIwGT858IZqFA6oWSXN69KONeCkPvIKoSyQTQ0c1FZruAiFZkVOWbic8qVDXFhXSm HsbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=xtHmHAVF7pnDJTgigaQXYkhAdYbKy1SNx2gDcWyB5IY=; b=DSYF+Z1gixCRyDFkgsafKn83bASo9abA/YEUY4wo1abQ3o2fiY3FWHFCOgDVEtS3Tx WifpZo+cw0Q+6pwrmy7KjIEI+Yh4O6gd25ZCFZ8FATIqio/xL+MYabCrplNw6S4HYXP6 M+oyRL6BvKdNJVliTwdDC3udGCxIgesJu6xD/f88S0t5yhegcdoCgXW4opqcfgSn1Jo3 tai49/8aNGs5YY/Mp7u3IrlkA/njlj+bEcHLFXZx4360KsXIv0n/csfXyXEL+Bbm/Iuc cse+34lOr+Qi2Uttl+q4vniyLdIvoo+c9Y9bS9HGW908MF6mu2KfiXlCWD5Uv2WT9rJR 17kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Jmzn1ipG; 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 w5-v6si9420078plz.175.2018.08.20.04.06.04; Mon, 20 Aug 2018 04:06:20 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Jmzn1ipG; 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 S1726564AbeHTOTW (ORCPT + 99 others); Mon, 20 Aug 2018 10:19:22 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:43846 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725948AbeHTOTW (ORCPT ); Mon, 20 Aug 2018 10:19:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=xtHmHAVF7pnDJTgigaQXYkhAdYbKy1SNx2gDcWyB5IY=; b=Jmzn1ipGkJ+AlJ9SsFAhm4iJj oX6a7Sia+ZgASiJ53sNZdHNp2W6pICkQ3swEWny3NhN5B7iu+x/eHAtDrp6jIpMnghGcrWyFTWADE YBMjrZ+gu54WUMq1vGGcM5uSruSTPE6Qd+kpKVQHKgMAl26XVjZtectnufvgFegZvtX0JkjKQHASG tp88bCtKnP+JwNLW97q2ZlcksjUVXxXf7UkTOzHARKr0gDuOqpd0tEZRzFwmlReNnHg9I0HT8sWDB 6vfu33HFg7BTKQlUGbtZt/CsjGcZThiuAaseWqKU+pcaQdUcrAbAJNBmB83415tWRt8sD66EP5YJU QPh7CO8Ow==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1frhyl-0001kz-Jj; Mon, 20 Aug 2018 11:04:11 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 0A06820267B13; Mon, 20 Aug 2018 13:04:10 +0200 (CEST) Date: Mon, 20 Aug 2018 13:04:10 +0200 From: Peter Zijlstra To: leo.yan@linaro.org Cc: "Rafael J. Wysocki" , Linux PM , LKML , Frederic Weisbecker Subject: Re: [PATCH v5] cpuidle: menu: Handle stopped tick more aggressively Message-ID: <20180820110410.GY2494@hirez.programming.kicks-ass.net> References: <1951009.1jlQfyrxio@aspire.rjw.lan> <1754612.IcCR94pSYR@aspire.rjw.lan> <1582055.9b67urWYFa@aspire.rjw.lan> <1572343.jWaXB8XNF1@aspire.rjw.lan> <20180814154441.GA13920@leoy-ThinkPad-X240s> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180814154441.GA13920@leoy-ThinkPad-X240s> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 14, 2018 at 11:44:41PM +0800, leo.yan@linaro.org wrote: > I agree this patch can resolve the issue you mentioned in the commit > log, but this patch will be fragile for below case, so it will select > state1 but not state2, how about you think for this case? > > Idle_state0:: > target_residency TICK_USEC Prediction > | | / > V V / > -----------------------------------------------------> Time length > ^ ^ > | | > Idle_state1: Idle_state2: > target_residency target_residency If someone can demonstate this is an actual problem; then we need to fix it I suppose. But it would be very good to have a real world need/reproducer for it first.