Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5659594rwb; Mon, 5 Dec 2022 02:12:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf4CpDCX80bpsujW/0H3iZYA8MUHncfgk5LG76ujVBL4DkFwRr7zwqAwdtNbe1RBpKegig+h X-Received: by 2002:a17:902:c20d:b0:189:6889:a047 with SMTP id 13-20020a170902c20d00b001896889a047mr48495646pll.16.1670235163457; Mon, 05 Dec 2022 02:12:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670235163; cv=none; d=google.com; s=arc-20160816; b=ykgNJTtbTlkBAwl1aIzK7Gp7m60aEPALRq8ajvMXZ4MHF3fCfkiYtldrZzTizRirB8 ik86kBB3RiuV5os7z1qMQxzN1DkDiypElcLlnad2zLoNvFksjlHmbggpDfwSDCgZMDWx 0505TN8K4VIvc4RPTpv6LwRDu4Go7KoGTZyMRBVbCjOox9es3ReUxTNPCj2qwo64RQL1 lEcen4DV+RRt6SW+6wEgWn+wYhKU39ShGRAhkwVs0o2+gnSxEFTrmjCa+ODqGI/ZvzQk HVjJxdNx/7i47gt764gCJWuC2GXbcekwy5k283dyccTuIukRhLvj/skdqM/0Mhm4oTHd 2/LQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=RU0EbWEBXFTTYKd6dj/Z3UvzwEwK63Rxz3z+L6vr4Dw=; b=RYI6G3utQH/R1LN3EqMej3NZMUbtK7zATIGIX61HlNGcBz/4YnNl3CsUo4eyNNo0ly xlZDbLOMx78Jzoib4HkY0EpBuHJCGHbDI/PMd8ptU9zTeAKMbMRy85etMufc/gQ0IZ1W IAjUDeF+tL4cmOkAzm+pkg0ZQVqfB3OO3WyZu3vdfPxDtN2jzJOpotABWSdNuarV1aD4 YoVWVzm6y37PkBi7h9CEMZRPhOJyh9l+jIajN99PdjlDdn5nxq9IVvqeAuMz9Klbt1lb IVD/MrU42usNyewVy70NjL3/pxIAT4Vz9+Cm5Cg0AhNnDFR2f1rLGQ01MmVAZtQ48bsc weew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=whJOuRXQ; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u15-20020a170902e80f00b00186e8526793si15365763plg.143.2022.12.05.02.12.32; Mon, 05 Dec 2022 02:12:43 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b=whJOuRXQ; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230446AbiLEJTH (ORCPT + 82 others); Mon, 5 Dec 2022 04:19:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230292AbiLEJSm (ORCPT ); Mon, 5 Dec 2022 04:18:42 -0500 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 962C113D48 for ; Mon, 5 Dec 2022 01:18:34 -0800 (PST) Received: by mail-pg1-x536.google.com with SMTP id s196so9974672pgs.3 for ; Mon, 05 Dec 2022 01:18:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=RU0EbWEBXFTTYKd6dj/Z3UvzwEwK63Rxz3z+L6vr4Dw=; b=whJOuRXQHyEQIV4vaxbJArTYaaA92Dp1YGO7kPBbWHQ48nCetaNBUIRIVfU3F2RZNt Z525IMzUv+VRUeduRo/t30JB9SQkianm77FHk0G/zJqj7pr5lIM7GY1mAZfOTBFTQs5C TAxXhTl44hwetuXrx076SP1r0ksFzKdelZ1EWnxvEPJUIrgmejr2TP86WpaTaLuVdhXL /nztUHNeprxeJrBBtdmtCcuPhn/NvyHIQaXNTHC5rWia9bY5mBs8K4Hf/H8627lG0EPF QT/nqcLJUNyY6Eb0oaM8VNYN7CEnfh6FlfusxE2sfsD+svizrB9aAQ5GwOJraMHxD8MD NNbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=RU0EbWEBXFTTYKd6dj/Z3UvzwEwK63Rxz3z+L6vr4Dw=; b=yKFLfDObvcVS5Mx0dgPanmFzf1s12SjBo5az5iRqMMdboMm5TlqCuZo72Qhkwe5PYy v6qRPp3tiGUiql2HFGmCp7Wj8f4c0FObpZMCUCFa1ZhNblhDoz5iepsmXpUDqpEwNNbl 0M01xstUmDG5a9t2Ez2AW3D+AaJyOvRa1DAcqGR61GXTTYAXHWaY5goC19OmTwerocLU 5BIwd+WQi9RugoJtzqjrIJ3kLgqKeNzoEAJYgs5INJCvo3PxHEk83hAGBmlXBRIv2rnj 1kk4C9A5ISaZbbR3YmgMn2a2xGeRlAQt6t3STR1BiaY6ZsDi385KskKOci8rwjS9J9LG Di/A== X-Gm-Message-State: ANoB5pnVmVx73ow0KC9NalMHpHl/J06VBK69YcF+Vf/KS4v9RVIkiHCg YKh4bszctFbeIId0qC89WZoGaQ== X-Received: by 2002:a63:5016:0:b0:478:538a:aec6 with SMTP id e22-20020a635016000000b00478538aaec6mr24570161pgb.290.1670231913300; Mon, 05 Dec 2022 01:18:33 -0800 (PST) Received: from localhost ([122.172.87.149]) by smtp.gmail.com with ESMTPSA id f11-20020a17090a664b00b00216df8f03fdsm10497273pjm.50.2022.12.05.01.18.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Dec 2022 01:18:32 -0800 (PST) Date: Mon, 5 Dec 2022 14:48:30 +0530 From: Viresh Kumar To: Lukasz Luba Cc: "Rafael J. Wysocki" , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Sam Wu , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , Saravana Kannan , "Isaac J . Manjarres" , kernel-team@android.com, "Rafael J. Wysocki" , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] Revert "cpufreq: schedutil: Move max CPU capacity to sugov_policy" Message-ID: <20221205091830.pttdbyts4hujkpq2@vireshk-i7> References: <20221110195732.1382314-1-wusamuel@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221110195732.1382314-1-wusamuel@google.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Lukasz, On 10-11-22, 19:57, Sam Wu wrote: > diff --git a/kernel/sched/cpufreq_schedutil.c b/kernel/sched/cpufreq_schedutil.c > index 9161d1136d01..1207c78f85c1 100644 > --- a/kernel/sched/cpufreq_schedutil.c > +++ b/kernel/sched/cpufreq_schedutil.c > @@ -25,9 +25,6 @@ struct sugov_policy { > unsigned int next_freq; > unsigned int cached_raw_freq; > > - /* max CPU capacity, which is equal for all CPUs in freq. domain */ > - unsigned long max; > - > /* The next fields are only needed if fast switch cannot be used: */ > struct irq_work irq_work; > struct kthread_work work; > @@ -51,6 +48,7 @@ struct sugov_cpu { > > unsigned long util; > unsigned long bw_dl; > + unsigned long max; IIUC, this part, i.e. moving max to sugov_policy, wasn't the problem here, right ? Can you send a patch for that at least first, since this is fully reverted now. Or it doesn't make sense? -- viresh