Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1031800rwb; Wed, 28 Sep 2022 12:13:39 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5CAQSPab2Fn3hiaRXIRt3lQsbOd0EeMRAjX7kaSaqt0qvG9nR3N20DJNpmGBFKzygdbVab X-Received: by 2002:a17:903:11c3:b0:178:aec1:189c with SMTP id q3-20020a17090311c300b00178aec1189cmr1217078plh.136.1664392419187; Wed, 28 Sep 2022 12:13:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664392419; cv=none; d=google.com; s=arc-20160816; b=yAR+ab/j4p2d66zZOfaXEA1uUFKF1ETyCuShuRJJdekKt/ommPfAraCcXYvx1tAHlr SgsF2AcTlebWpZJd5eLwjEWc/Km2ZZu1e+IkmVH0PM8D+U1CMkRAxeL49qgTpsGitq6c gQVaXTpXJvu5OZQTWt0AbeMzsL+Ki/1u57pLDRIlygW2R6hHPdPwB5FntZO7MCQ3A+uG pk4NtJQAcYBlpgSf5fw+1D7YdQ7/ycnEp29JfLN8RHdp1MhhqTlFeXzRhs3d6xXEj/lw 2lXwNAe/EdX6VRRqI6/zZAA0bzDi+lKAVsVaDPFTSLlz7Aeuy2tyJxnHSb8+3iOXv9+v 72Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=9819DIn5cz+DhTm0obBSo3ryJjp2/XGyvfjqokkY82w=; b=A64zV3XfB21xk42FkQLM7B8TvYVDSJoZeNXld1x6l6CTDbSr9FR9TJbCUMQAL4B9kz c6ae3XGS3q4VLOw3mDokAwUALX3sQYrkIS/gFrbp09JRSBJN8/vPGrrrP6hpTArd7kBP q+ViLwrGm/yLg5aT7/+q1e4uIHZFBZ8DdIBC2duQb7Gz5wW0PQo+MAbzugxJspoLv9bX ZFyvAnz022YV/sUDHTR3WBc4l7SSOunTdsQcD72kLEAiVy5ywa8DFA2cPNNELAklNMIO vruTwbZXgirjXn/Sc7movhdovS+/hliTcHu3VpwNL9AuM/SKEo5QMC6lmVYU7gSR2irc 16/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p16-20020a170902b09000b0017836c76761si5622492plr.375.2022.09.28.12.13.27; Wed, 28 Sep 2022 12:13:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234100AbiI1Sy4 (ORCPT + 99 others); Wed, 28 Sep 2022 14:54:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232346AbiI1Syx (ORCPT ); Wed, 28 Sep 2022 14:54:53 -0400 Received: from mail-qv1-f48.google.com (mail-qv1-f48.google.com [209.85.219.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB0552FFE6; Wed, 28 Sep 2022 11:54:50 -0700 (PDT) Received: by mail-qv1-f48.google.com with SMTP id i12so3775932qvs.2; Wed, 28 Sep 2022 11:54:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=9819DIn5cz+DhTm0obBSo3ryJjp2/XGyvfjqokkY82w=; b=jeYmgn29b77/vVeyCTHdY6ntxpWPNknjR/wUWFc8YbRfkIG/PB39U9lKSXftn/B80b OkjZA9Xlbc48xv0u+51wKzk5HALU0KW4GWkBhBfyZYaWl+A5lAePMYzrn3Wl/aDolZry Oum2O3pMEe2sCUQ6uckNxiIwVJJghAR1FL/ujfj00ydZkMa4FkYH46yTBCOM9Mhk2tML mogmWRaqW5FcSJMehb/9e6SIk6hVnSB7NK9cLRD63plOwjzaIEpJV3fCQkLmCLLGQEM+ W2XAekM13ZuZboIMcwP5C7ugiPHuBqag+lS6hR1RyC/GLi05aC2lX2vPETZrV7XPc91y mcsg== X-Gm-Message-State: ACrzQf3CXWfZSKUtiZ036gS2Vsv+CbVB9N/taJ2o2LlDtecJNE8JLoQp AlNWJH6M6V9coX/mGyi405HPDyImw3kodkvqR4Q= X-Received: by 2002:a0c:f3cb:0:b0:4af:a435:2c1b with SMTP id f11-20020a0cf3cb000000b004afa4352c1bmr318835qvm.130.1664391289840; Wed, 28 Sep 2022 11:54:49 -0700 (PDT) MIME-Version: 1.0 References: <20220915164411.2496380-1-kajetan.puchalski@arm.com> In-Reply-To: From: "Rafael J. Wysocki" Date: Wed, 28 Sep 2022 20:54:38 +0200 Message-ID: Subject: Re: [RFC PATCH 0/1] cpuidle: teo: Introduce optional util-awareness To: Kajetan Puchalski Cc: "Rafael J. Wysocki" , Daniel Lezcano , Lukasz Luba , Dietmar Eggemann , Linux PM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Wed, Sep 28, 2022 at 2:42 PM Kajetan Puchalski wrote: > > Hi Rafael, > > Just a gentle ping here. Could you please take a look at this > discussion? I have seen it, but I haven't thought it through yet. Overall, this is quite subtle and requires quite a bit of consideration IMV. > I'd like to address some comments I received, especially on the subject > of making it reduce the state by one as opposed to going all the way to > 0 to account for different hardware and how we can accomodate different > architectures in the implementation of that mechanism. I need to think more about that. > Before I send a v2 it'd be great to know your opinions on this and > whether I should still send it as a TEO patch or fork it into a separate > governor and make the changes there as both Doug and I seem to prefer. Well, it is not a super-large patch against TEO, so I'm not sure if adding a new governor just for this one bit is a good idea. I surely don't like the #ifdeffery there, so if it can be made part of the default TEO behavior, it will be much more appealing to me. Thanks! > On Thu, Sep 15, 2022 at 05:44:10PM +0100, Kajetan Puchalski wrote: > > At the very least this approach seems promising so I wanted to discuss it in RFC form first. > > Thank you for taking your time to read this! > > > > [1] https://github.com/mrkajetanp/lisa-notebooks/blob/a2361a5b647629bfbfc676b942c8e6498fb9bd03/idle_util_aware.pdf > > > > Kajetan Puchalski (1): > > cpuidle: teo: Introduce optional util-awareness > > > > drivers/cpuidle/Kconfig | 12 +++++ > > drivers/cpuidle/governors/teo.c | 86 +++++++++++++++++++++++++++++++++ > > 2 files changed, 98 insertions(+) > > > > -- > > 2.37.1 > >