Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp592188rdh; Thu, 26 Oct 2023 10:09:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEvgVbLLTsD0lVZkUsFGIxOLw38XWSEda9WCOVkFtG3dR3epDabc6q+HnVpkZNb/sjPzUbL X-Received: by 2002:a25:9b07:0:b0:d9b:351:6657 with SMTP id y7-20020a259b07000000b00d9b03516657mr17145768ybn.23.1698340190327; Thu, 26 Oct 2023 10:09:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698340190; cv=none; d=google.com; s=arc-20160816; b=sUN09nMkOfL93SNYA4F64NfZ2VOXrI93SnHfrxrKk5UNLiaMlEdi2qwFqFtraMYlIZ h6h+gyRR5nXRhe/KBWAuIKQ3V6tEDKgGHrFIQFG4BzYFUObXbU5ZYceTay2nDJ9IMfLa BGnKDpxzHHkDrHzEnop7sWNX0SxaHohwZlCKeYku5XJzpH4bwFla0+8QRk3vIhak1JGx MrzicgRNyJQwyBv+GvSd7CwYGpoe2DPtLES9/6Gvr+vH5YAmfOVRIajRf1B/1xZToqLn 7KZmFyUMG3wPRC/ZIGxpEWMxGv5WcdQNbzVNL+e3p+Isw8+cL9lcpMdfT7Domi/rcyy3 U9iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=POVE4CZhPu3z3wCufRl7+c+VF4rf3D4o3n4eodjbjik=; fh=3TTsVLri5uVG5k6QxKPRU5Fzak9FoO4yptSAdhI1VBc=; b=jxT8tGZ+kZGRcTKQ6sNbM4f57esEDYZj/C/Ik1fNUImOp6kUqrdtc11IKkF02sQpQL wDtmVZgDRtgE+HibP7PAEgaOUFRdXBXALknYbAn3XTkBM+yguDe9V/YqQWEqWbj88VEe MmP5lxG7tXLBC3z6YbuG0LvWgWivj+raDRaanWooIa089OqTHrBHV/TCblic0LIaFo+W QNgwOztwao4/wo/JuV+xog5lqGHr1HUF6SR+KQdoTJD3r98AqDviQ/BX+sd8twddPWv9 gKOSXuFfzndLUrIzD48O9XjAa3rnIs5jVP8XXBKkvMFwbzU6RQhQdeRb0rodtdJ3kTga 1fMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vbrpuc3I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id p77-20020a25d850000000b00d9a38f71864si14942513ybg.159.2023.10.26.10.09.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 10:09:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vbrpuc3I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 14DC38289505; Thu, 26 Oct 2023 10:09:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231738AbjJZRJ2 (ORCPT + 99 others); Thu, 26 Oct 2023 13:09:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230330AbjJZRJ0 (ORCPT ); Thu, 26 Oct 2023 13:09:26 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0578D1A1 for ; Thu, 26 Oct 2023 10:09:24 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2b9d07a8d84so15105981fa.3 for ; Thu, 26 Oct 2023 10:09:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698340162; x=1698944962; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=POVE4CZhPu3z3wCufRl7+c+VF4rf3D4o3n4eodjbjik=; b=vbrpuc3IfE+I4RRjA0Jl0Mn2iGmuLyzPlg4WyqZww30xc2gkx3RGoVSLgG5hxlAl21 gRAhvQfbPGdhvMvUbXIQOWBif/fYnnbPPw31pxE6phXxvvDqkUfsvbeL4fTZcrP+ZMaM OqudiCzCbAjhS0JijoXs+bVys9zppKx0nZ5qfD1DRK5BbhBckDcSr/raqNVbkCN8xxMZ j9SW3cKQYmCJhfBMoQBZW2zsNSSW6F/a/CeiQgjlaCP+MQICti0ui9YDkSijmXRpiyNZ dEcH19j8ILtjs7/6ipDNLkP2G10LlU0rKh4BLWwqCQGk5c9LpaEokN8/sMAQJdXGzn6z Ye8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698340162; x=1698944962; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=POVE4CZhPu3z3wCufRl7+c+VF4rf3D4o3n4eodjbjik=; b=D/qUCvpIXUq5sXWHLam83bfeDhwlcukptrD8RIogQszuRla6ATfJ/MjFG4Agr2Tl79 uxcjpzI2HzP6dO/+AJDAcnVJfCVz9TSBwcNkJsAQaHSQwp/5sAOiFvnokhSgHTvXf3Fs dnmB8Zv532KcQG9dF/G/G8y0v+jdDlYyEmHJH3sO1hIXMhL+oWrP044wzZJqkMkiJaqE f/qLzPeCszf7jeJEq/Irs+UOt1iNyZ+q7/ugfSKC4x8MXVmFlFvUHHumeb0gFhtOqKyS 8FXDAXnXQv4KS9RiagDRTWAX9xqMP5Urddxjs3hYeWfnSA04SV2f03UBGn3TVcFiMmlG mGlQ== X-Gm-Message-State: AOJu0YxwYmXaDiqVsWqWFCY/WPcL3TmZEAt+rsnD7LS8zmcxC99zM9DE l9THZe2PX5z9Fp8hUc5v7XlAiIvPWJ1S8yLrAfY= X-Received: by 2002:a2e:7e04:0:b0:2c5:1122:9712 with SMTP id z4-20020a2e7e04000000b002c511229712mr143156ljc.46.1698340162175; Thu, 26 Oct 2023 10:09:22 -0700 (PDT) Received: from vingu-book.. ([2a01:e0a:f:6020:c5e:e24e:ad0b:58c6]) by smtp.gmail.com with ESMTPSA id bd6-20020a05600c1f0600b0040839fcb217sm3037721wmb.8.2023.10.26.10.09.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 10:09:21 -0700 (PDT) From: Vincent Guittot To: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, rafael@kernel.org, viresh.kumar@linaro.org, qyousef@layalina.io, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Cc: lukasz.luba@arm.com, wyes.karny@amd.com, beata.michalska@arm.com, Vincent Guittot Subject: [PATCH v2 0/2] Rework interface between scheduler and schedutil governor Date: Thu, 26 Oct 2023 19:09:11 +0200 Message-Id: <20231026170913.32605-1-vincent.guittot@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 26 Oct 2023 10:09:42 -0700 (PDT) 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 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 | 72 +++++++++++++++++---------- kernel/sched/fair.c | 22 +++++++-- kernel/sched/sched.h | 84 +++----------------------------- 5 files changed, 103 insertions(+), 158 deletions(-) -- 2.34.1