Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3682104rdh; Thu, 28 Sep 2023 21:48:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH/WdNzGPnsDkErS+FZLcJ2+lxY7nPzoWwjBfrWX7ER7qz5HuJWWkQ1qHC/jxwEj4nUKgKq X-Received: by 2002:a17:902:ea11:b0:1c6:1cd8:5b59 with SMTP id s17-20020a170902ea1100b001c61cd85b59mr2960000plg.1.1695962938227; Thu, 28 Sep 2023 21:48:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695962938; cv=none; d=google.com; s=arc-20160816; b=GmIZGgBfTfmqx5u/000yjr8YfNdwlb2K66nSCP/LBYc/6nYv9WRSt8U3Fx214py8x+ 4wMwewgrp6SPJVw74f3zyd/YFV8DUxiG2dFNu2+JnHcx639mUa8d+bdWnPDTqd1eiZKq LKtt8nWoxQ1aBRqbZ93mPypXLjYYHrkUXoGolJI/ZT8qaaakT5t5loyMuRGi/cggJkaz jC2RMs9TVZld0M1Tz0OU4kScT6408iypOukygzjdNYj4gh2CQQGrnqpPWW5IqmzHF2pN p3Cl8gAz+lOYe71RPIgSg8NLKAps9Qiiwl780gDfMZGYXhmNCRJq73XTFH2KawcM63Kf MFfA== 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=KtntkVvW66DKYrGtJ/jS2FGAG296faVgNeolyBQMZE4=; fh=DZ8RLqxgmmga2OdT0+OtS/p4CsaYzgiSlPZPPeQPzkg=; b=DBpY++ySfeM/hYbJLMNdpjPihJ5Srt31d0zB54xIovZU8J78Ow0MlNWLrkrfWVJkPc 0MBStkG7zfm6SoQjHgB6UX5G1Ll9CvadSsTnB8R7YZy38BqNZ48FxkWTjxghdwJ27339 WeRTGy+3TWuCrfXfCMfuJwwqpVfiCEjLmZRgacBcZR7mZrCkJpdpXa/a5cF85buEekT7 lZXd04aqKzuDm6aBWYZle6TmvcU9fv3SXnmIbAo5TjH/u9hE7v7qkDKaSVmEWExRD+rl LISyy11ODve/F0xeur9d/wms3Cr/0nQVA5PZcaEUEUfvpsD8meGo5vGNykxQg6xmof4p msfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Dl+CFExB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id ij27-20020a170902ab5b00b001c5fa6d75acsi16688174plb.494.2023.09.28.21.48.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 21:48:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Dl+CFExB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 0B0B283B0099; Thu, 28 Sep 2023 20:28:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229541AbjI2D1u (ORCPT + 99 others); Thu, 28 Sep 2023 23:27:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229799AbjI2D1t (ORCPT ); Thu, 28 Sep 2023 23:27:49 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8575D199 for ; Thu, 28 Sep 2023 20:27:47 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-691c05bc5aaso12019869b3a.2 for ; Thu, 28 Sep 2023 20:27:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695958067; x=1696562867; darn=vger.kernel.org; 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=KtntkVvW66DKYrGtJ/jS2FGAG296faVgNeolyBQMZE4=; b=Dl+CFExBKY00RhiYj3nXl3CeJr7DjSDLWJ3Dc5UtQ7qIrKWxHYNFSfpkNhQoPsYb7F EPvFTLEPPgVTMGSmQpfm024rX907pyGDAdaRLTrHWOzYT1Lz/AWqKLmfPJkxPefodHb6 Vr1jJ8yv5L1k3VmX8qLHVvSSL6J/TtDPB5ESRToz+Ev79Z8nxy/fqdnD8+DGEVE9odaR mhT8l0yVEvFGX3AY082t9N2AMXDmFZA91g/1vzZk1rZ0ovLiimWFX7stn2YS/WgypgoV klEJ/DXNlI82mFJz3WnBegIfSiE7Xf06hj2z/+v6joh3quSgGfW3Vz/jfIFOInjMVMbp UNAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695958067; x=1696562867; 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=KtntkVvW66DKYrGtJ/jS2FGAG296faVgNeolyBQMZE4=; b=jr5s81wmwBOiceHAMxTwVyYEUORScxr7J81NCfv+3xVq1+65l7YAroJpHQFjQwIR6e DHjLtCIszPNbXr4PX6JMUKA6JJFh3lC8rcuIQ0xwavix6/gMV1vWl8FdKlZ+NPge6CTZ 8BT4OIN9l+04YOV9sJGqjAc4ympJsSyCYe7phkYx0HfQlkRLo/BcxD2i8gaQe+kMH7gz /WgWUt0sefVFbLRv5T7ioOmIoFi4Auc+rxCO8bptXGEfeIb8Tf0f0eUZ/oTxAG6kHfPw BmrgFpyzenIOj73j0+pEbAEERZWZGB3cc8wylpe9+z43HUfZS2Z8v+3GiIcweTxLmLHh U4/g== X-Gm-Message-State: AOJu0YzDldRNokZZbwYFzTND0gaI43QbMC+lwICM5x1wsacZ7aaEWpXd puM8npUu05BGH7K/5ngWDTT1qg== X-Received: by 2002:a05:6a00:1394:b0:68f:edfd:2ac6 with SMTP id t20-20020a056a00139400b0068fedfd2ac6mr3817336pfg.0.1695958066695; Thu, 28 Sep 2023 20:27:46 -0700 (PDT) Received: from localhost ([122.172.81.92]) by smtp.gmail.com with ESMTPSA id w18-20020aa78592000000b0068890c19c49sm2662332pfn.180.2023.09.28.20.27.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 20:27:45 -0700 (PDT) Date: Fri, 29 Sep 2023 08:57:43 +0530 From: Viresh Kumar To: Pierre Gondois Cc: Dietmar Eggemann , linux-kernel@vger.kernel.org, Shrikanth Hegde , vschneid@redhat.com, "Rafael J. Wysocki" , linux-pm@vger.kernel.org Subject: Re: [PATCH] cpufreq: Rebuild sched-domains when removing cpufreq driver Message-ID: <20230929032743.6mjcyyx3cmjjxsix@vireshk-i7> References: <20230918112937.493352-1-pierre.gondois@arm.com> <20230928071810.hkdmuoaasrv4b2oq@vireshk-i7> <93262faa-7089-f2a2-3df7-058c338adfc6@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <93262faa-7089-f2a2-3df7-058c338adfc6@arm.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=unavailable 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 28 Sep 2023 20:28:01 -0700 (PDT) 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 ? -- viresh