Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5923522ybe; Tue, 17 Sep 2019 16:10:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqyWidaa+5SPcxN1qUuuxlBHc9/b0FoDZeMy+URuYmGjV3sx2pEsb+D8CCDcLRmpRvBzZdSd X-Received: by 2002:a17:906:f0d5:: with SMTP id dk21mr6858591ejb.118.1568761804256; Tue, 17 Sep 2019 16:10:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568761804; cv=none; d=google.com; s=arc-20160816; b=TB6GEidr/2SHb+uGYFeZePC1pRwKqG1HpkPdfblhb/h0CjjN0jsr4sziAp43UmPdC0 kKGKFFh80hWcv1YCNuC952OzpqzLdcYGS4g/GT4BUKt4eXLoSdL5LtrY232rP2x47gHo xiynK0kIHOIMXABKnj5TcXUw01GF1iAKYJhcsVx30rebZihdz1Jn73uVKfzRPYJ1/RMq dCXjpXnSOEW7kQ7UyZeCUqLmw0y9GAMjFTXuPH60rVav9D+skHaIs2IKqCYBvfDt/OYP /AHcTUS8eoQIs0UNbtl2wmXTiwZvSmEZF/kUk4GGGwHJFg0TNJmTKoDRnprtdpM/C3l2 qmvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=w0s1Xo5VPT2f+pMagXmNgu+i1TawiVePQEtIDVA+DQg=; b=w0/pwg7rniNPi4xMS82pP3vHlUQaxskCfDOBvOLaFugPij7tFZxXEzXRjfMSW2MR/7 pc1uPiFWXDK/HAn3NnVYE2Vr0gYGnBOWo0EeYORzr7VtqhCfVCZsVbEiPFYhgpGGBqxn 3GBqvZ0xGW53AF5xjWo/g91yLNxXffDjJzYtXE4lgckLTnDzqg1LMN6I6Qe3401Fdx1Z GKpTiuqFaGhqSlPBseVIA8Mm/5SffH0aryWQ4hcj6K7U04ZdtqdV1avcRpRkXXK9Dw6Y 5uwy897OTNCiii7iWSucDv6+1d3ej3RwHYzCQ5EeML6JIzGOjg+UT8T7HIy+QdDpXQSB pS5A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p28si2234055ejn.88.2019.09.17.16.09.40; Tue, 17 Sep 2019 16:10:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727478AbfIQNUl (ORCPT + 99 others); Tue, 17 Sep 2019 09:20:41 -0400 Received: from foss.arm.com ([217.140.110.172]:55808 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726131AbfIQNUl (ORCPT ); Tue, 17 Sep 2019 09:20:41 -0400 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 E2BD828; Tue, 17 Sep 2019 06:20:39 -0700 (PDT) Received: from bogus (e107155-lin.cambridge.arm.com [10.1.196.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 078F33F575; Tue, 17 Sep 2019 06:20:37 -0700 (PDT) Date: Tue, 17 Sep 2019 14:20:35 +0100 From: Sudeep Holla To: Daniel Lezcano Cc: Amit Kucheria , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, agross@kernel.org, tdas@codeaurora.org, swboyd@chromium.org, ilina@codeaurora.org, "Rafael J. Wysocki" , Sudeep Holla , Viresh Kumar , Zhang Rui , linux-pm@vger.kernel.org Subject: Re: [PATCH 5/5] cpufreq: qcom-hw: Move driver initialisation earlier Message-ID: <20190917132035.GB30016@bogus> References: <20190917093412.GA24757@bogus> <58e60ca4-9615-bbdf-5fe7-2a0e1d7f48d8@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <58e60ca4-9615-bbdf-5fe7-2a0e1d7f48d8@linaro.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 17, 2019 at 02:47:22PM +0200, Daniel Lezcano wrote: > > Hi Sudeep, > > On 17/09/2019 11:34, Sudeep Holla wrote: > > On Thu, Sep 12, 2019 at 04:02:34AM +0530, Amit Kucheria wrote: > >> Allow qcom-hw driver to initialise right after the cpufreq and thermal > >> subsystems are initialised in core_initcall so we get earlier access to > >> thermal mitigation. > >> > >> Signed-off-by: Amit Kucheria > >> --- > >> drivers/cpufreq/qcom-cpufreq-hw.c | 2 +- > >> 1 file changed, 1 insertion(+), 1 deletion(-) > >> > >> diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/qcom-cpufreq-hw.c > >> index 4b0b50403901..04676cc82ba6 100644 > >> --- a/drivers/cpufreq/qcom-cpufreq-hw.c > >> +++ b/drivers/cpufreq/qcom-cpufreq-hw.c > >> @@ -327,7 +327,7 @@ static int __init qcom_cpufreq_hw_init(void) > >> { > >> return platform_driver_register(&qcom_cpufreq_hw_driver); > >> } > >> -device_initcall(qcom_cpufreq_hw_init); > >> +postcore_initcall(qcom_cpufreq_hw_init); > > > > I am fine with core framework initcall pushed to earlier initcall levels > > if required, but for individual/platform specific drivers I am not so > > happy to see that. > > > > This goes against the grand plan of single common kernel strategy by > > Android moving all drivers as modules. We might decide to make this > > a module. > > module = mounted file system = very late initialization > > Is that the plan? Force every driver to load too late? > Yes. Something similar to what we have on desktops/servers. > There are core drivers which must be loaded as soon as possible. If the > qcom driver is one of them, then what is the problem? > I am fine with that if it's really issue but it shouldn't become the defacto trend. > "The grand plan" will have to solve this first before doing the module > move. > Sure, I just expressed my view as it looks to be going in different direction for me. > > Also there are few cpufreq drivers that are modules. Will > > they have issues ? If not, why do we need this change at all. > > Because some boards don't have thermal issues with the cpufreq drivers > as module, other boards have. > OK, so this platform boots with default high OPP and needs thermal mitigation that early ? If so, that's fine. > > Needing > > thermal mitigation during boot this earlier is still too much of > > expectation, I would rather boot slowly than relying on this feature. > > And what if we want to boot faster? The boot time is one of a key point > of benchmark. > I understand the requirement, though for me it's really sounds stupid. As Quentin pointed out, it would be good to get all those benchmark details, and preferably in the commit log so that we can look back whenever someone else take the same approach later. -- Regards, Sudeep