Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3736829rdh; Fri, 29 Sep 2023 00:23:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IExR6zb6EZsUkY4MnDqQiPAENXWGREYH88K1q4XNgULZxcHRhgtFN6vFtzB8qv/aDCvkCyv X-Received: by 2002:a05:6a00:849:b0:68c:44ed:fb6 with SMTP id q9-20020a056a00084900b0068c44ed0fb6mr5731902pfk.16.1695972184027; Fri, 29 Sep 2023 00:23:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695972184; cv=none; d=google.com; s=arc-20160816; b=HeJLgyWcX1myK6BL5qBLHdCo30+zAJ7De5Aa282grfsFP5e42dkDoeFrrQ/oiFRbgw +Ts1Tgw88JMpttrbHJr9F9Ef/lH0uW3qsEbbQ3UbjOxIb3mtWaeJvrp1jzBjW9xG6ZUk FW0uvpWVTdU81UyPtmSa9SI3ubgk1m0OJkNc4IHZTEZTxeoVrzQViQ+CmktMGUV4YkW4 P7LdBiD7r1WfMteGdP2u82Bz8G24bS/2CSs9rXgEbNzWZos3+R6uaj32npcXqw5vO8gg OCIfqHHwQtu1xgJNeU79X/p0D6ZXHIaoF+TJQb3EGF75LuyKYyV3O5lPe0cCltdy861Q 4+2Q== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=aAbS0TxEHjNcwvVxafM8h4BV8/mGq7ptN6H+RhONgJI=; fh=+lj0nu/6g3FxlCkuDhVlKiY0VQCHja+xBRAiorJACmQ=; b=UVi4CrSnvDPKkTGP7T+um0tY99RIqnAprmWP9pAGv7vUtHJb3lBJv7PTx3LyfA0Oo6 6BED9yAmUt/4Jqx2LnTYkEqHXtzF7cTEhSNMpmFR3+8PiA0OxuZnXImdEZRG1yh7M07J 2ys4IxnXvgs+6itzs8icNHcIJXP/K3stnVTZNZ8gW8cf0TOrEjucSS1GiIOBFlCWibt0 u7mWb0QftMa90HR2ejKATI5MyaUE96PvnXNWGMA1SR7afxNyV5GFJfh8sDOcgwTvkN0p SLPPYfWD/S72+PbuIOyfqQCyJp5h8jcBSn8GqP4Fb5DKp/MJWzdjodROgjscuoJGlP/0 8UAQ== 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:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id u23-20020a056a00099700b00687008df88dsi23030632pfg.52.2023.09.29.00.23.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 00:23:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 94B8B84D1220; Fri, 29 Sep 2023 00:23:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232777AbjI2HWw (ORCPT + 99 others); Fri, 29 Sep 2023 03:22:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232663AbjI2HWu (ORCPT ); Fri, 29 Sep 2023 03:22:50 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 26628199; Fri, 29 Sep 2023 00:22:48 -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 D06DF1FB; Fri, 29 Sep 2023 00:23:24 -0700 (PDT) Received: from [192.168.1.13] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 07A033F6C4; Fri, 29 Sep 2023 00:22:43 -0700 (PDT) Message-ID: Date: Fri, 29 Sep 2023 09:22:37 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH] cpufreq: Rebuild sched-domains when removing cpufreq driver To: Viresh Kumar Cc: Dietmar Eggemann , linux-kernel@vger.kernel.org, Shrikanth Hegde , vschneid@redhat.com, "Rafael J. Wysocki" , linux-pm@vger.kernel.org References: <20230918112937.493352-1-pierre.gondois@arm.com> <20230928071810.hkdmuoaasrv4b2oq@vireshk-i7> <93262faa-7089-f2a2-3df7-058c338adfc6@arm.com> <20230929032743.6mjcyyx3cmjjxsix@vireshk-i7> Content-Language: en-US From: Pierre Gondois In-Reply-To: <20230929032743.6mjcyyx3cmjjxsix@vireshk-i7> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Fri, 29 Sep 2023 00:23:01 -0700 (PDT) On 9/29/23 05:27, Viresh Kumar wrote: > On 28-09-23, 14:49, Pierre Gondois wrote: >> Another solution would be to call sched_cpufreq_governor_change() >> from cpufreq_schedutil's init()/exit() callbacks. This would make >> more sense as EAS/schedutil cpufreq are tightly bound, and it would >> allow to cover all the possible paths. >> >> When tried locally, it seems to cover all scenarios: >> - insmod/rmmod a cpufreq driver >> - changing the governor policy >> - offlining all the CPUs of a pd > > Right now it is done for all governors. We don't need that ? We just care about > schedutil here ? > Yes exact, EAS requires the schedutil governor to be used by all policies. The purpose of this function is to re-evaluate if EAS enablement conditions are met. I.e., if one policy changed from/to schedutil, if EAS must be [de|re]activated.