Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp367875imw; Fri, 15 Jul 2022 05:02:39 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tfB5/AuGCuAPAZGw1aYuWSR//GC0BoEXlWMw8fAP1Ek/3A1OeJVUfOB/UPJjJoVeDgioIJ X-Received: by 2002:a05:6402:11d1:b0:43a:8c33:f549 with SMTP id j17-20020a05640211d100b0043a8c33f549mr18678203edw.354.1657886558768; Fri, 15 Jul 2022 05:02:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657886558; cv=none; d=google.com; s=arc-20160816; b=fNqQTldZ+gnYHyGw0FuvadOFzfOAcBxngCKS9Bl2g7af9+P+571h+j07GRWKkDxzP1 F7pDBv3digwC9AYeAtC4Qu1RU6Z2PeVM28l22wewyr8AiR0PtFOxsy3YGiA6Pmnkgo68 saUT1p440iQmD68jY1cy13sAGSUhl+6ehsYYDeXqK49E5WpkpiZX0/pmeIBGOU4YuBkQ WI3xMgCEPyh1Q+AmRSnvfOtkPZ2meLnavtTA1wqDD6B5uyM7wdOQEl8CFD/rpyfwz2jz asdh/lCnuxXoDVWHGdsmhsA0bTKXIVUbkOSURviMrVHPBBsSXY5e6TCc0d8iCRJSqigA CBUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=WBZsa9lyP4gCzC2HEvoO/iYsp14LWEjyfimLTk/xvRM=; b=FZsl0tRJYX0iZREKz775XJNCsNFUgStE2K2Ghy7nOKKFgDLHx4qyvjD9C+0gGOwcj/ nUKePYTTFB5TM9S3U+W/gqXIOBmnyvaTF2SiwkGYhqJf5yQVNmMCks9xJUZnk2i26YpU mkGFtBY95Q3YBAa9fgw/zlo9XcXpnBnsSzooknzkytvuPiEkncJ3Yquk3Z9Q2w3Fw88W uNhGur9dV1S5zmASfYqVsIbz1QHhBRm6ccPY+DaZC3LYpP0jQCE2CuUPXNFUizQ4oDr6 tbxSuChitxdzzHF1OdbU3NTHpHl7AqBafI6N+7QKAlgdG/fJggG372Oxhn2aNNBuNbkq ZD1Q== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z22-20020a05640235d600b0043ae0b9e568si6087983edc.436.2022.07.15.05.01.44; Fri, 15 Jul 2022 05:02:38 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232839AbiGOLo0 (ORCPT + 99 others); Fri, 15 Jul 2022 07:44:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234561AbiGOLoX (ORCPT ); Fri, 15 Jul 2022 07:44:23 -0400 Received: from mail-yw1-f179.google.com (mail-yw1-f179.google.com [209.85.128.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00DEA2AE2E; Fri, 15 Jul 2022 04:44:23 -0700 (PDT) Received: by mail-yw1-f179.google.com with SMTP id 00721157ae682-31dfe25bd49so7014837b3.2; Fri, 15 Jul 2022 04:44:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WBZsa9lyP4gCzC2HEvoO/iYsp14LWEjyfimLTk/xvRM=; b=nOSocrJr+Tt6gckDbeiGX7CdnEssOFqFOyWrPG7vAwoLRpNBz9H/3Jaxd/WUnekuZK hB89Bg5u32GeCrSsaqjcMpTdG6X+pCDmkKRREsy4u94zhWKggKvwbwJ0q5Si3Xwk3L6t erUABZxBdfsVnd3L03nABv/ENs2HkKOmK6B9fsEVomK1FKGiJfoKlsd/E+12gDkne2Yn rrKFDCaRkYn/azjX/QroDZuM+PMzKU/w83+pi4rigCf/MFarXm524BTssmcyBOY6fz2g b80TFjK0ttX7u8rYKfvvhnMV9XKfALQQed1qClFQJeeLY+CUgPNMAscOyPQuJIBL8t6D 8uGw== X-Gm-Message-State: AJIora8UgMYzG+Wz4FCICrt/KejLj94+/rHfLtfuxNSJSIcY6RhJ8F3R rujVW3EOiutQ6mz/TaolexKqX2WmEGh4FZAzzYI= X-Received: by 2002:a81:58c1:0:b0:31d:6b54:3fd5 with SMTP id m184-20020a8158c1000000b0031d6b543fd5mr15386267ywb.7.1657885462231; Fri, 15 Jul 2022 04:44:22 -0700 (PDT) MIME-Version: 1.0 References: <20220711124229.16516-1-lukasz.luba@arm.com> <1198724e-d94f-0b7c-9c4a-90595f8426d2@arm.com> In-Reply-To: <1198724e-d94f-0b7c-9c4a-90595f8426d2@arm.com> From: "Rafael J. Wysocki" Date: Fri, 15 Jul 2022 13:44:09 +0200 Message-ID: Subject: Re: [PATCH] cpufreq: schedutil: Move max CPU capacity to sugov_policy To: Lukasz Luba Cc: "Rafael J. Wysocki" , Viresh Kumar , Linux Kernel Mailing List , Linux PM , Dietmar Eggemann , Vincent Guittot Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no 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 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.