Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp325904rdd; Tue, 9 Jan 2024 05:33:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IFLorzNyeFXbe/Jsr4aBaL9hZx14XF7kVapFKjirWS2rSeL+Uy0CgcOcfDeV43k7wH3eA+G X-Received: by 2002:ac2:5b85:0:b0:50e:7931:cb83 with SMTP id o5-20020ac25b85000000b0050e7931cb83mr1932347lfn.127.1704807208766; Tue, 09 Jan 2024 05:33:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704807208; cv=none; d=google.com; s=arc-20160816; b=h51AddZnlqk6uztuRTAcYUu5MKo1PTM+buRBQP6crxmGLpaUM1p5hBzOWd1hHDx6Uy xbfdzbWeD7S7AYCmWijZjhvM0muY5s1d1IbtkL+5aVGYLvnKQpft+l2KnIqXm6OSn3n3 6PhK74RKSc/keOx1mS85KZHlHYur+uwiWOmgZ8mHhPc1Zi6mTHK/zUTtEB+y6BpZyOhU MNop3cYPujDURH/04IdUUZUW919XZ7ZAoiCIE0XHnelg2n9NUPBXo0EPRmQh3J2MhMqO uNRQZ0ayCe/qAcJlXgZNkc/2GPejF9uZXKfsgIjV6syXhbTiZqRKxgC01X0quSsz5DAX aw9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=HpVlVJ/RQGEJ1rvUCc6A3Ljjn+64q3ODdp483E8ssZg=; fh=w3K2Ev1Lx5qucj3KtSJJgkYgwF53UGeTjuXSwrGLKtY=; b=ky3lf3HZbrtQe/L1m3Lwfipaz5TI1Kx7RuUulA/TN2B1lf7sHY8a/fAVv1Ws2MBa2t njoXHQU031EpkfsQLanf4GXSQXH6fJxFslHi5uirmTDCp727LpBFqtyALgUPbrw/2rgE hFyQtbmNBDLW5LalqX7rnd0+3u9+dlRXifOE8whhUambWyGG5GuroS52mxYPFpHOVP5n x561p6Ar6KFCghXGEXN9O3ALuiYd6JFu94tjOHEDfTIHulMyADDviBXwffZtqLJk3TCC f8TxMm/3Yi3vCF5FmqKRZH4h+mZpYvobStnZJXJOYoxdPsfJVbG7SeRWljoLXz2lLFz+ bDvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=V27oYiMn; spf=pass (google.com: domain of linux-kernel+bounces-20901-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20901-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id e19-20020a170906045300b00a28aa2aca42si791639eja.413.2024.01.09.05.33.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 05:33:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20901-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=V27oYiMn; spf=pass (google.com: domain of linux-kernel+bounces-20901-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20901-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 817AB1F2532A for ; Tue, 9 Jan 2024 13:33:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3270E38FB9; Tue, 9 Jan 2024 13:33:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="V27oYiMn" Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 14ABA3984A for ; Tue, 9 Jan 2024 13:33:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pj1-f48.google.com with SMTP id 98e67ed59e1d1-28d7870574bso1259602a91.3 for ; Tue, 09 Jan 2024 05:33:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704807191; x=1705411991; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=HpVlVJ/RQGEJ1rvUCc6A3Ljjn+64q3ODdp483E8ssZg=; b=V27oYiMnfEBSC4/NnsDz/ERGrt0a33M2SIX+mX2pUoIGtv97Jmz7NnQCc+qviuGb8Z EcSMpQ7DZhroilQtmemBgk/FWyvbKyHxBzAHXkfa3g9u4GAYs1NZ64L22IPvOJ7a7da+ RXQ4I2mlf7mFFS0JMphm9qY0/HiPwzjKrfVu4eufkM0I1j0MFAgt/447HNuIJj4UjKgV LDMZ/8SOjWK4dBuqSaKvfuvRbNTp4HtXElvyfg7eRvqGsNO0nq573TYmWOxiuyAXNvlP avsirLL5q0E5SfUw6X+Hpdl13x8acjTdWqoHEuKUuZipN5MQJEkdgV38z5vQm1r2mthN Ygjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704807191; x=1705411991; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HpVlVJ/RQGEJ1rvUCc6A3Ljjn+64q3ODdp483E8ssZg=; b=Rz/2J6/4p8fAa29guUbJ/gbbX5zIPGPFecWoyogeVIFyzO7yJl20nmqNb8L586vSt5 vKsf6wFAC2jBYrmj0RANnwHLdk/kGcxb70v56HTHwThVLl0IJyxgWumNFzqQV/iNy4gG ACjGkzxbpS8Wou4uPVrKEBTttTl+mzNjd4bZV+jVovRwYxPiUSkSMyO5rGSDiacjhIgT NC4E5XJ8RXU1/otbSYRtSZSnLDnNh7WRhni6XFLfsbEtcs63yRjhvELCAQYp34DTZnS9 Gl8TY92AFrjt/d2Mw6uVMmnILFiNy+0caKMGouyWKrhWgLcqMAubMoKFV5N6sd3ukGzn VgMQ== X-Gm-Message-State: AOJu0YwfZnHKERa4EshUxNnCq8TrSKzZYs6/AceWYkUOXhWX8/SZh0+a gNH6lGZo4rv3jqYiKUUx9agVmULr0rFuBcMBxeRkcIDy35oPPw== X-Received: by 2002:a17:90a:db45:b0:28b:bc2e:9d5f with SMTP id u5-20020a17090adb4500b0028bbc2e9d5fmr1991475pjx.84.1704807191420; Tue, 09 Jan 2024 05:33:11 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240108134843.429769-1-vincent.guittot@linaro.org> <20240108134843.429769-5-vincent.guittot@linaro.org> <0a64731f-f6fa-4382-a5cb-a29061eff2d6@arm.com> In-Reply-To: <0a64731f-f6fa-4382-a5cb-a29061eff2d6@arm.com> From: Vincent Guittot Date: Tue, 9 Jan 2024 14:33:00 +0100 Message-ID: Subject: Re: [PATCH v3 4/5] sched: Rename arch_update_thermal_pressure into arch_update_hw_pressure To: Dietmar Eggemann Cc: linux@armlinux.org.uk, catalin.marinas@arm.com, will@kernel.org, sudeep.holla@arm.com, rafael@kernel.org, viresh.kumar@linaro.org, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, lukasz.luba@arm.com, rui.zhang@intel.com, mhiramat@kernel.org, daniel.lezcano@linaro.org, amit.kachhap@gmail.com, corbet@lwn.net, gregkh@linuxfoundation.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-doc@vger.kernel.org, qyousef@layalina.io Content-Type: text/plain; charset="UTF-8" On Tue, 9 Jan 2024 at 12:56, Dietmar Eggemann wrote: > > On 08/01/2024 14:48, Vincent Guittot wrote: > > Now that cpufreq provides a pressure value to the scheduler, rename > > I.e. that thermal (e.g. IPA governor) switches from average > (rq->avg_(thermal/hw).load_avg) (1) to instantenous (cpu_pressure) (2). > I rememeber a related dicussion during LPC 2018 :-) > > > arch_update_thermal_pressure into HW pressure to reflect that it returns > > a pressure applied by HW (i.e. with a high frequency change) and not > > always related to thermal mitigation but also generated by max current > > limitation as an example. Such high frequency signal needs filtering to be > > smoothed and provide an value that reflects the average available capacity > > into the scheduler time scale. > > So 'drivers/cpufreq/qcom-cpufreq-hw.c' is the only user of (1) right > now. Are we expecting more users here? If this stays the only user, > maybe it can do the averages by itself and we can completely switch to (2)? Yes I expect more users for this high frequency change which is typically 1ms and below. And I prefer to keep PELT averaging calculation inside scheduler instead of letting driver doing their own averaging which will be most of the time not aligned with what scheduler wants > > [...] >