Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp679941img; Fri, 22 Mar 2019 06:27:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqywcifFe5vigUMVVClDFH51BqSZ4xugSjhKyl8wlIoya1bnmx+5wVT/wJ6u/JQW8wMfHtMb X-Received: by 2002:a17:902:968a:: with SMTP id n10mr9697737plp.283.1553261260750; Fri, 22 Mar 2019 06:27:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553261260; cv=none; d=google.com; s=arc-20160816; b=R/3KyLH6uJpRTO4pQCals875lBn8tOfU6+wuYnVHd2bpevi66xEIMHLubb/SU08LRd BQI0FT1O4D7x8tCTd091zjbkhsmDvqUy8NRw5BerXIjDXSjFVOGA6L/wykLSARTK3QQL EFCTFq6fULW7nAGbzhe2z39HVFuiLhJVbsf5CV8fJ/BkbQGvrhkayj9L0tSr+/4baDFP SocM++mDCgXivxcYfjRozDNH02j4P5eOgCyPZaZavm7N66RFH7RlnpZJISpOx7dsrjLN HOfp1kkDjS0oCjvqzkJ4DYRf943r7XNIfd4krq7WiV7bKynKT54IhqAQ23gwI76oe/2B rU5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=YUR9BD0OknTRpwxa7omTX6fkLtmusBY0KjBttpuweLE=; b=su/Qkj3ncXjkAUcVZI2Ks4AXrOtSOa/G3brzJ+h+VBJm8dldqK/EnWNIobHJM5sKXa GhdGO1ji1DUb/Fe3L/Op57jDfTyF548F+GDNlCOGvuYp88TSJBP3AlQS+QVJ5KImyg2p WN3iCAAIubj6bAqfrjrO1n2Arro70W87r/0s44L3bj55HWq5aE4USjKzGnAjG/zu32d3 9PvPuBoDtqcMxYmy3fvOL0ICj/XDgdxy+qSsYhrFg0gcmOxFdbLG/cSv1H5bF4CLWldL AtjKStfwoeBLNGN47CTCCp0Ok4gw2ns417cjHOfTPn9zgsyGEk9Eu36vQLsyg/hfbXlv 6+Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=glUXnsMK; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e21si6392522pfn.179.2019.03.22.06.27.22; Fri, 22 Mar 2019 06:27:40 -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=pass header.i=@linaro.org header.s=google header.b=glUXnsMK; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728227AbfCVN0L (ORCPT + 99 others); Fri, 22 Mar 2019 09:26:11 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:38451 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728139AbfCVN0K (ORCPT ); Fri, 22 Mar 2019 09:26:10 -0400 Received: by mail-wm1-f68.google.com with SMTP id a188so2167487wmf.3 for ; Fri, 22 Mar 2019 06:26:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=YUR9BD0OknTRpwxa7omTX6fkLtmusBY0KjBttpuweLE=; b=glUXnsMKii9bEJsd3AnwfOBOqdIXHFOFx5dExl4Mk+I2W8ZppOED1boqhtXR8A0CRn SoMGbV53PbG4AfKmZQ/ImldKle2BsZWz2EZqTINPFGxIcZuywL4OFB3dvwOydi/BDzPW 15d3R6uet+l+z+Y4HvYk/tGbWqOcD3HbzfZXsPGY4F89aFOfMPd62DB4G/c96TGx0BDQ XJYUL526glwi4kGRbGAmYiqnm85yTbXk9sYr0RoM3KeTdZ8CWRdW2d+C5sM981IZy2bg qFBQQUO/jFNxpIvKH01+B+F5NTwVTkJ+mRNul5oWXhWMzkCSQVaQhArQSY+AFGFmBWgu iZTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=YUR9BD0OknTRpwxa7omTX6fkLtmusBY0KjBttpuweLE=; b=o3/x3lJrjZDFEOOX6KR7gbOwBxmhxBDe3v7ymab/j6CU+wTcKTuGvPnLtwUi/Jj0+X bWdWwLUwo6VmYjKWiI5rqXbmxsYf18TUisMrJH24ipRW5ZQQcykOCmQEihBfiHlGw9FJ 7ZHQkjDXM4VN9I2dVFf22xm+2nsOm1FKMa/3C43P4St5wjS/NpKEUWLqyw4cQN6ipQzi cT570i7Zalff0EXL+5j6lYHWsYjJMyaEZB1c0y7I6zkEmutq84jEzLDREzsRo7MOI11D Fn7KsiO/6MT7Ra1ey0GzPbhjsuudX84TziDRJJVb4PCa65XaWNixELbQFJIDDrjPD4le hlVw== X-Gm-Message-State: APjAAAUlxqSy4fy2oA79sZ+D1TxYrAKIjm+FGAlXldQR6hgVISpuaeKC MA127gT4EQMjZGTiEUDK4arGkg== X-Received: by 2002:a1c:ef08:: with SMTP id n8mr1936534wmh.85.1553261168923; Fri, 22 Mar 2019 06:26:08 -0700 (PDT) Received: from [192.168.0.41] (205.94.129.77.rev.sfr.net. [77.129.94.205]) by smtp.googlemail.com with ESMTPSA id b16sm7143988wrq.41.2019.03.22.06.26.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Mar 2019 06:26:08 -0700 (PDT) Subject: Re: [PATCH 1/2] cpuidle : auto-promotion for cpuidle states To: "Rafael J. Wysocki" , Abhishek Goel Cc: Linux Kernel Mailing List , linuxppc-dev , Linux PM , "Rafael J. Wysocki" , Michael Ellerman References: <20190322072942.8038-1-huntbag@linux.vnet.ibm.com> <20190322072942.8038-2-huntbag@linux.vnet.ibm.com> From: Daniel Lezcano Message-ID: Date: Fri, 22 Mar 2019 14:26:07 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22/03/2019 10:45, Rafael J. Wysocki wrote: > On Fri, Mar 22, 2019 at 8:31 AM Abhishek Goel > wrote: >> >> Currently, the cpuidle governors (menu /ladder) determine what idle state >> an idling CPU should enter into based on heuristics that depend on the >> idle history on that CPU. Given that no predictive heuristic is perfect, >> there are cases where the governor predicts a shallow idle state, hoping >> that the CPU will be busy soon. However, if no new workload is scheduled >> on that CPU in the near future, the CPU will end up in the shallow state. >> >> In case of POWER, this is problematic, when the predicted state in the >> aforementioned scenario is a lite stop state, as such lite states will >> inhibit SMT folding, thereby depriving the other threads in the core from >> using the core resources. >> >> To address this, such lite states need to be autopromoted. The cpuidle- >> core can queue timer to correspond with the residency value of the next >> available state. Thus leading to auto-promotion to a deeper idle state as >> soon as possible. > > Isn't the tick stopping avoidance sufficient for that? I was about to ask the same :) -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog