Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7765220pxb; Thu, 18 Feb 2021 21:04:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJxFjF7nd/YU2/TjeDxNjjGPNHipgaRkkOfQamI3kHaXNwqZLk/lbU+AyLySZfkJ1n2ipC+F X-Received: by 2002:aa7:db01:: with SMTP id t1mr7425082eds.229.1613711046467; Thu, 18 Feb 2021 21:04:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613711046; cv=none; d=google.com; s=arc-20160816; b=p1yYemKv437F1bx/IOkszMFdagWKxce+PxMAzy76XaQYPbUZrpTg7PFISU4S1+vhdv suv+tLLkvL6vY0KvZPp2iiCgDlIGRlJZ0dnrqiuf9VNL92n51cn6NN+VO5PBzGGsYO2Z 5tLPHGYZ8saxuN12tCWakHC+VyunIW7ojUcE2f/XzWuNd6g0pahrULovk6kZJbV7Z6u8 oVa4uMQShwHVVsUonNdZdaRK1iz7ZwrV9rU4Wy/Tj90hi/WRJT/AMFsnGPMGTt18D4mB Q03JMUcPVN5tZno8gKb9qqZCt4sE0BLFu6/A9E4ethufL0NQSdTErpiGDYAKg/ToReI3 is3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=VQ8JfAUf/ySg/ATklOLfVi6FRg+WrMTayYjOprp1Sx0=; b=rzrUbsjQ6bc30GuD85JL5dDG4JgNv8R3MEHDs7HpUJacEIGCfzLmPzi3x0V17bQRC8 Pd2FYxSyetob3jqqmW2sDIP79YcE9tgcno8Gpq22lh6KxIZXx/aStWmBAl7Dcoo1Th9y WlHW9O/SWFJtzW3cpwnQkIPMnRrenNZq2SuQ2fjCtJrLyQMOMv5m2UgTjBCML3sKsK4u wOZU7Ds7eWAJ7Xvtc1osv8dYzGGmR0lvCAJXjuIBvBIImYFfnn8mqCHOCvkQcjoZWUhZ lI4qSzyVXtkOLwyCtNaDJ9qF99oEurwwt/1fnErAFEG6chnnx3NsFWXNOFBu6bvr+y4u qljA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="zrt/i2IK"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kl4si5219350ejc.341.2021.02.18.21.03.29; Thu, 18 Feb 2021 21:04:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="zrt/i2IK"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S229620AbhBSE7J (ORCPT + 99 others); Thu, 18 Feb 2021 23:59:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229544AbhBSE7G (ORCPT ); Thu, 18 Feb 2021 23:59:06 -0500 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CD23C061756 for ; Thu, 18 Feb 2021 20:58:26 -0800 (PST) Received: by mail-pg1-x529.google.com with SMTP id t11so2805214pgu.8 for ; Thu, 18 Feb 2021 20:58:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=VQ8JfAUf/ySg/ATklOLfVi6FRg+WrMTayYjOprp1Sx0=; b=zrt/i2IK+MNx8nousJ5vhUkJhPOg+W4lAaza3KU7WU5akL9GwRYl6fQtYhNv5OPgY+ DH+LAVbb4FtDeXzzY815wVASFyQv3PCGNAStQH0V4uw8EBNU1Ir8Hsl/6tzswvd1TC8c cU0qPNlAxe9fwZ4gRAFODY1w66JGzR3S+RYHoonlLtQt9BbnkLkdx8RBgxU2LTn/utZb /YDLg1RG0yahHSXebbwpRlOJdhqjI14F0xjzasUbv7hvqKPJm2vwlVBm6T1JMwWWT2N9 NkJkVQb6OtohZ1RPApNY6L7wwiT0oR+nP9JDUape8vht0cXFLole/ud9E1+fq/+LyGZP fUgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=VQ8JfAUf/ySg/ATklOLfVi6FRg+WrMTayYjOprp1Sx0=; b=swBT+tzo7gsAv0k4y6WblPLs4ErMZEpJJP7Tb4TXC26nifciHQAv1Kii0est+4KgX3 U73rwOV/QVLkFP5V7iEN+7MkPeKJ998M1l9W7nsqau5bjfk4lRbWSv3DmTYayLhS3dUg LvRE0X13AbsCToCFfAml5hbaK1Mew7qnupzD57WDRcuYj2r5tg1pwZURajfG1AZoyRQB 6ZdaO1JBI4EmJ7PI7Ufrukh4FKpNELmiuRzT4y3KIihvjjkbAqaIiYbECQ/GnGuYfCJE qFwD4FL+l7p+0uVj7lmCxuptcFv3nCfyY7vgzsLYgGk56v8YbHAJRI0qvL+MY7fWX65E CBTQ== X-Gm-Message-State: AOAM5316wnrGwhghV3U+5AvzglSl2oZv0J3Ag7Zur8BgVzX3XTsd3Gef gZl/Vq9QJzE8PpXru3YPZjmlqg== X-Received: by 2002:a63:1845:: with SMTP id 5mr7015563pgy.244.1613710706075; Thu, 18 Feb 2021 20:58:26 -0800 (PST) Received: from localhost ([122.172.59.240]) by smtp.gmail.com with ESMTPSA id s18sm7433890pfm.129.2021.02.18.20.58.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Feb 2021 20:58:25 -0800 (PST) Date: Fri, 19 Feb 2021 10:28:23 +0530 From: Viresh Kumar To: Ionela Voinescu Cc: Rafael Wysocki , Catalin Marinas , Will Deacon , Vincent Guittot , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, Sudeep Holla , Greg Kroah-Hartman Subject: Re: [PATCH V3 1/2] topology: Allow multiple entities to provide sched_freq_tick() callback Message-ID: <20210219045823.beeijwaymd63prk7@vireshk-i7> References: <20210203114521.GA6380@arm.com> <20210205091424.3od3tme3f7mh7ebp@vireshk-i7> <20210217002422.GA17422@arm.com> <20210218093304.3mt3o7kbeymn5ofl@vireshk-i7> <20210218163635.GA23622@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210218163635.GA23622@arm.com> User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18-02-21, 16:36, Ionela Voinescu wrote: > Yes, we don't care if there is no cpufreq driver, as the use of AMUs won't > get initialised either. But we do care if there is a cpufreq driver that > does not support frequency invariance, which is the example above. > > The intention with the patches that made cpufreq based invariance generic > a while back was for it to be present, seamlessly, for as many drivers as > possible, as a less than accurate invariance default method is still > better than nothing. Right. > So only a few drivers today don't support cpufreq based FI Only two AFAICT, both x86, and the AMU stuff doesn't conflict with them. drivers/cpufreq/intel_pstate.c drivers/cpufreq/longrun.c > but it's not a guarantee that it will stay this way. What do you mean by "no guarantee" here ? The very core routines (cpufreq_freq_transition_end() and cpufreq_driver_fast_switch()) of the cpufreq core call arch_set_freq_scale() today and this isn't going to change anytime soon. If something gets changed there someone will need to see other parts of the kernel which may get broken with that. I don't see any need of complicating other parts of the kernel like, amu or cppc code for that. They should be kept simple and they should assume cpufreq invariance will be supported as it is today. -- viresh