Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3320592rdb; Thu, 16 Nov 2023 06:36:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IGJAwQV8pnldxwEVuNU/u0RMVvwFymkYs/dtrBV/j0CtiAhLLRZcMd1AIpcLS1ZfyVxOcJI X-Received: by 2002:a05:6a20:a10d:b0:181:6b3d:ca1c with SMTP id q13-20020a056a20a10d00b001816b3dca1cmr2779133pzk.3.1700145373699; Thu, 16 Nov 2023 06:36:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700145373; cv=none; d=google.com; s=arc-20160816; b=YeUVyysiPmZt5ZRKdZSwIMnCVQnlL0E5tw1bGQkEBIPzU0iaM9CK/yJiTBUwej1Mdc P8Vos9xuf80gvFquRfi4tP684i0otGXPOImO/AHvHSjpJvbRslHXyVWDasgBhLABRr2V zUGextVyo8hG8a0+Dm0zMk94jn3GiPbckG2aG3UFemWzF38RsKHj4DqX+Odj35H7bniF cUnUn5Yo6ahIeGTHcBQphK4cLEDHQ5DZK81sYj9icDqvDb+wZifJwdhOlgSwn6/hkX/z Xyu+7G5rbOAz4JrXOKCz8S+Jiftk2LBfSIzhyDJJdR+PoGqZkviF6QD7lY2x2UekLGsx 89uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FtGcrsM0yGKSH60fh1aa98gMbQ7lZQIB+/J2Fm0HBWM=; fh=YBMYjnvahrsgtyxWNG7fFMGFizAUSkcZy6f/jEnl5Ws=; b=rlTkk8b1p22qFPkofIPPHm+/4/rWRnKsbDf4nVguDELzEGSCQcuidtjYoOV7sTBlmg uRxVrOIn0Goh2czt+lDN/AYMVDu96gJc/B0CGq+myvF6YXQ0P4D5disxiZG0WkVMVExS rU3RyLODqAjU+YndP1Kp+jTfakiLNFBQmVaVHKZMJzg4tjH+rINDloAqepRoSNrzuCAS hszRwoVLFsJErwnkHmUY9rhS9XVf1jfJI68WpeQq0eWLJrEjbZ/U1ry8Xydzs0Fn2uAD oLCQJxbxfQM3NgCp2LkqyqPnAtTAl2p+iLkB5M4LqrYSkhQTZ5c7ZpqEp8RhEdZYX+k/ RY7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=q5cXJFF5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id y65-20020a638a44000000b005b96a77e712si12560495pgd.17.2023.11.16.06.36.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 06:36:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=q5cXJFF5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 979FD80873A0; Thu, 16 Nov 2023 06:35:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343622AbjKPOfM (ORCPT + 99 others); Thu, 16 Nov 2023 09:35:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231236AbjKPOfK (ORCPT ); Thu, 16 Nov 2023 09:35:10 -0500 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40700187; Thu, 16 Nov 2023 06:35:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=FtGcrsM0yGKSH60fh1aa98gMbQ7lZQIB+/J2Fm0HBWM=; b=q5cXJFF50QMSpguEg0T5HooloM CGzHXbgPEopW+DHviNWzN8yOIGB2B5k645B4XW+8pU9likX6mqsGBTtfs2KvBRGoSmijKwtibklEj aVSEux5TSFxYsODfIrWRkpUdgr6mMVVgNUz58i2Jk+Zn8GdqviCK6B5yFq8HbKw/B3frgvc9L04sF HMmp1xggZoFKZcZZkgLmtiCmjfkJjqenqUxRe1wCu7W/KswnbLnimRRNG2+QDmcBDhGngf8BJquvL dOmwcc4/byDjYB9GSRW9S5e17yJUsTq5W1G74yTjIoMi50+gIFU5j8K6eAhwHkzMaTJB98JbmtKvd b7Q2+pUw==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1r3dSE-005bav-2V; Thu, 16 Nov 2023 14:34:51 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 717613002BE; Thu, 16 Nov 2023 15:34:50 +0100 (CET) Date: Thu, 16 Nov 2023 15:34:50 +0100 From: Peter Zijlstra To: "Rafael J. Wysocki" Cc: Vincent Guittot , mingo@redhat.com, juri.lelli@redhat.com, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, viresh.kumar@linaro.org, qyousef@layalina.io, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, lukasz.luba@arm.com, wyes.karny@amd.com, beata.michalska@arm.com Subject: Re: [PATCH v3 0/2] Rework interface between scheduler and schedutil governor Message-ID: <20231116143450.GF8262@noisy.programming.kicks-ass.net> References: <20231103131821.1176294-1-vincent.guittot@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 16 Nov 2023 06:35:24 -0800 (PST) On Mon, Nov 06, 2023 at 04:05:40PM +0100, Rafael J. Wysocki wrote: > On Fri, Nov 3, 2023 at 2:18 PM Vincent Guittot > wrote: > > > > Following the discussion with Qais [1] about how to handle uclamp > > requirements and after syncing with him, we agreed that I should move > > forward on the patchset to rework the interface between scheduler and > > schedutil governor to provide more information to the latter. Scheduler > > (and EAS in particular) doesn't need anymore to guess estimate which > > headroom the governor wants to apply and will directly ask for the target > > freq. Then the governor directly gets the actual utilization and new > > minimum and maximum boundaries to select this target frequency and > > doesn't have to deal anymore with scheduler internals like uclamp when > > including iowait boost. > > > > [1] https://lore.kernel.org/lkml/CAKfTPtA5JqNCauG-rP3wGfq+p8EEVx9Tvwj6ksM3SYCwRmfCTg@mail.gmail.com/ > > > > Changes since v2: > > - remove useless target variable > > > > Changes since v1: > > - fix a bug (always set max even when returning early) > > - fix typos > > > > Vincent Guittot (2): > > sched/schedutil: Rework performance estimation > > sched/schedutil: Rework iowait boost > > > > include/linux/energy_model.h | 1 - > > kernel/sched/core.c | 82 ++++++++++++------------------- > > kernel/sched/cpufreq_schedutil.c | 69 ++++++++++++++++---------- > > kernel/sched/fair.c | 22 +++++++-- > > kernel/sched/sched.h | 84 +++----------------------------- > > 5 files changed, 100 insertions(+), 158 deletions(-) > > > > -- > > For the schedutil changes in the series: > > Acked-by: Rafael J. Wysocki > > and I'm assuming this series to be targeted at sched. Sure, I'll go queue it. Thanks!