Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5846715rdb; Thu, 14 Dec 2023 00:53:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IFFXFsWb/10XY2wDSfP4U7T0zaOlgLJLpWcX2VpSbdEVkwL/irG826BZT5Cl39x20Xv02KO X-Received: by 2002:a05:6830:138a:b0:6d8:a456:d99d with SMTP id d10-20020a056830138a00b006d8a456d99dmr9857688otq.5.1702544004446; Thu, 14 Dec 2023 00:53:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702544004; cv=none; d=google.com; s=arc-20160816; b=vBYBYBpQQDsC6aOJ2vc7PINMkq01NlMIvMkLY5kHQYjdkl7l6j876YcogGNoUUHA0G FaVB4opcclew3fgHc7Fp8GRcn1qMMreLwHm2N6i2MaRMeEhEXGRekTNaliKCZZdQkqBK f3/u0+O0EYooQNoa4n6pUhAez9LaYDAmhc4j5wRyi4LEnZG6mGMisdJveHflwcpgYqmt HBI7aZIivG4D0xA+CLf/QX7AQoQ5V6VT0nUYoGxsUQMo5Amnd9XvrbinPIU/rz8ARWT1 nGJkVD5i10yJra1A5sz7drHWXwr2nxubeWSTcX11y9ersuCy1bPKbYVj6+HQhEfRaj4l KN2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=0RoJB+jDEkQNf1PemNcgYCWjUOFho3sTDXrLrrIdyVY=; fh=einXZlmn52980vZgd4Yn0IOCcSew6IQPpSUshUUnvKQ=; b=R/ZnDsFK184+Hczg5Hkxj8nGDaA2zrS7p3u3tZPnztyh+PShPNt5CQhSoZvPbl6qd4 zRXkOazgpRdQ2YYgcZM/QdBRsJUFzpLxyrVWEApoat0EFs64oIpBKf8GHsvvfx3rD/k+ DxjbxU0nEU8C0CEaso0c1ZdScmmOIN0R4+S/3kiAYVQ9GYM8HjUW6w+A6tAqeQ4p3zO2 CWEFMTm+WAcAueRJ4I0gjjTLsT9a5nTIjKsnlv/Rzt7mf96NuSEzdho2yFTFMbCvTBXF aiAxbDklZN2kJKDB8KHOYCRQCiwWemDmOTOnI6/xmaaUa49//AsexEo538yNWzGxGUXL dx8Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id d18-20020a056a00199200b006ce51863712si11097648pfl.330.2023.12.14.00.53.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 00:53:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 2120980DF981; Thu, 14 Dec 2023 00:53:20 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230117AbjLNIxH (ORCPT + 99 others); Thu, 14 Dec 2023 03:53:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjLNIxF (ORCPT ); Thu, 14 Dec 2023 03:53:05 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1902C95; Thu, 14 Dec 2023 00:53:12 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 65585C15; Thu, 14 Dec 2023 00:53:57 -0800 (PST) Received: from [10.57.85.242] (unknown [10.57.85.242]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 653083F762; Thu, 14 Dec 2023 00:53:07 -0800 (PST) Message-ID: Date: Thu, 14 Dec 2023 08:54:10 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 4/4] sched: Rename arch_update_thermal_pressure into arch_update_hw_pressure Content-Language: en-US To: Vincent Guittot Cc: catalin.marinas@arm.com, bristot@redhat.com, linux-pm@vger.kernel.org, juri.lelli@redhat.com, agross@kernel.org, viresh.kumar@linaro.org, rafael@kernel.org, linux-kernel@vger.kernel.org, rui.zhang@intel.com, dietmar.eggemann@arm.com, mgorman@suse.de, linux-trace-kernel@vger.kernel.org, mingo@redhat.com, peterz@infradead.org, konrad.dybcio@linaro.org, andersson@kernel.org, rostedt@goodmis.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, bsegall@google.com, vschneid@redhat.com, will@kernel.org, sudeep.holla@arm.com, daniel.lezcano@linaro.org, mhiramat@kernel.org, amit.kachhap@gmail.com References: <20231212142730.998913-1-vincent.guittot@linaro.org> <20231212142730.998913-5-vincent.guittot@linaro.org> <274a6562-46c9-4b03-9295-c24e5eb9e6cd@arm.com> From: Lukasz Luba In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Thu, 14 Dec 2023 00:53:20 -0800 (PST) On 12/14/23 08:36, Vincent Guittot wrote: > On Thu, 14 Dec 2023 at 09:30, Lukasz Luba wrote: >> >> >> On 12/12/23 14:27, Vincent Guittot wrote: [snip] >>> update_rq_clock(rq); >>> - thermal_pressure = arch_scale_thermal_pressure(cpu_of(rq)); >>> - update_thermal_load_avg(rq_clock_thermal(rq), rq, thermal_pressure); >>> + hw_pressure = arch_scale_hw_pressure(cpu_of(rq)); >>> + update_hw_load_avg(rq_clock_task(rq), rq, hw_pressure); >> >> We switch to task clock here, could you tell me why? >> Don't we have to maintain the boot command parameter for the shift? > > This should have been part of the patch5 that I finally removed. IMO, > the additional time shift with rq_clock_thermal is no more needed now > that we have 2 separates signals > I didn't like the left-shift which causes the signal to converge slowly. I rather wanted right-shift to converge (react faster), so you have my vote for this change. Also, I agree that with the two-signal approach this shift trick can go away now. I just worry about the dropped boot parameter. So, are going to send that patach5 which removes the 'sched_thermal_decay_shift' and documentation bit?