Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp387483imw; Fri, 15 Jul 2022 05:23:30 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sCqShDa7p1sMyB8pv4s84PxFDpxAHj5YeCXGGrXKpEgB3FDdK5jYbWfH6K8prpOoAGkYzw X-Received: by 2002:a17:902:eaca:b0:16b:dbde:130d with SMTP id p10-20020a170902eaca00b0016bdbde130dmr13230674pld.48.1657887810619; Fri, 15 Jul 2022 05:23:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657887810; cv=none; d=google.com; s=arc-20160816; b=0k2z/N8r5EWAMQm6AFcDwpT5njCI+PW5I8DLFxZWiI/gW8ONv5hhFaPF+HC0dJiFk9 LD9bKl2AKF94+kEH99ghm7foTsqvMR1vS8KQ5Eh7KOhB/6mXIaSBRTjsdLDtv1vOxUh1 DQVnK9hnHK8xIA3/9qxAaE4Fm/0CNY3djaH0rs7ked99Gof+i3ZMT15UdyhDA6pxN9rl o9QZ1/uObHjxuG+/bC78/jVJOB8SIe45rxDqFTSg7RYI484ILBiId7lPJSZIQQqbOLU+ fEKmAYmomDEqEywRfVQzMSEVx0UWzIawje5gAYyveg/3NMNsA6P7R+nRCSbxkY3hZYUu m/1g== 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=ZxRuhY56E2PHLzzJdfXL6KDR4XjJIzxImlbkQlVODBI=; b=GVvhsreROV2llB6hTMvs8q9Imw2apd9EgKRFtRnwBQL+t59e+dwB2ZIfDnfX8f0JiN tPER8nLyJS9avc26hA9U3A7NW6gUkYTaRwrfMWTVp8AynzZu3dIyccam1/GkOe9tL6Ip tWR41j6Etm5DCGm5sPgQOgn3w92Fqg6Po5AVnDO6Odb5n7KK3rraNRcO5QxeG2qlHt1x 54WAI+ydoYINVehZCg1qZjjjxEKNz4GB3p5dhl1GlVecTaO+o1sIexwy0UPlEUWczpLN DX6tlkq/N1Dy7+mozWYSYrJJyrVpJsEK6/pB47GEjEXv2GxdQDgSft/KRWBtAFnZOATw 0qSA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o16-20020a634e50000000b0040cd2567341si5383061pgl.354.2022.07.15.05.23.01; Fri, 15 Jul 2022 05:23:30 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234603AbiGOLro (ORCPT + 99 others); Fri, 15 Jul 2022 07:47:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234538AbiGOLrm (ORCPT ); Fri, 15 Jul 2022 07:47:42 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D5A9E88F12; Fri, 15 Jul 2022 04:47:40 -0700 (PDT) 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 E705B1474; Fri, 15 Jul 2022 04:47:40 -0700 (PDT) Received: from [10.57.11.112] (unknown [10.57.11.112]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 48E533F73D; Fri, 15 Jul 2022 04:47:39 -0700 (PDT) Message-ID: Date: Fri, 15 Jul 2022 12:47:37 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH] cpufreq: schedutil: Move max CPU capacity to sugov_policy Content-Language: en-US To: "Rafael J. Wysocki" Cc: Viresh Kumar , Linux Kernel Mailing List , Linux PM , Dietmar Eggemann , Vincent Guittot References: <20220711124229.16516-1-lukasz.luba@arm.com> <1198724e-d94f-0b7c-9c4a-90595f8426d2@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=-6.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_NONE 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 On 7/15/22 12:44, Rafael J. Wysocki wrote: > On Fri, Jul 15, 2022 at 10:47 AM Lukasz Luba wrote: >> >> Hi Rafael, >> >> gentle ping. >> >> On 7/11/22 13:42, Lukasz Luba wrote: >>> There is no need to keep the max CPU capacity in the per_cpu instance. >>> Furthermore, there is no need to check and update that variable >>> (sg_cpu->max) everytime in the frequency change request, which is part >>> of hot path. Instead use struct sugov_policy to store that information. >>> Initialize the max CPU capacity during the setup and start callback. >>> We can do that since all CPUs in the same frequency domain have the same >>> max capacity (capacity setup and thermal pressure are based on that). >>> >>> Signed-off-by: Lukasz Luba >>> --- >>> kernel/sched/cpufreq_schedutil.c | 30 +++++++++++++++--------------- >>> 1 file changed, 15 insertions(+), 15 deletions(-) >> >> The patch got Ack from Viresh. >> Could you take it? > > Yes, it's there in my queue. Same for the EM changes. Thank you Rafael!