Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5630921ybe; Tue, 17 Sep 2019 10:59:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqw3QgvWzzZ/DkMUIXFPnIgc4f7Y2bieRZgocT1xGvyhYndBKiEoEelSJ89voCKgdjFuMZGJ X-Received: by 2002:aa7:ce89:: with SMTP id y9mr5863771edv.255.1568743198001; Tue, 17 Sep 2019 10:59:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568743197; cv=none; d=google.com; s=arc-20160816; b=iImNoQEvEITRn5StKdFtPLZcLWiFWg0JbZ/+eaheUkUME9dyCp1dhpR6DuPjjV3Nec Gq8rgEa1G+dhIyypCD6yVH+Ik6v1XznuJDHXqFMeze4QuAKhjf3rqjwYfD7McgIWNWLC KaL3sQrYo/foo/MDnckNh39Rt3DriatAx9tA5N1cc28Og6f9E1g9yxj9H4iRfLyFnZR4 EGCacXG6lDCVFoFh397u+GkKzojmbfmYGHcba8yZ9e5M17q/z7xSf3xpmJ6QU1UU/7m8 vE5yDxBL/nYqBn9gsphGWkXnv9wsCN3sWPTHyNzSdkhkpzwDdjroLKpZamrj0sq1Vscc c4qw== 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=Pyyu27DvM+xD4aHNunki/JDFrOjcioodfLu77vg4kO8=; b=Nh162C94CSCw5kKCAXP6p7XTxYCYc3ia4oZKIXNPnJ+l6/fTQINHcal7CqEER63C2n X8uMCBFEI86KvhxG1StjOzW5zNT2hAuTHytmBHNKVt2GmiwzYU79+Tf+XoDs9AggoaWD Z8NG2VVqn9UVtKfikfek6mZpu3l4HSDWJb5cyh1aQCoCK+FAufpnaFoQ2lAaOsYXtXNf CEiKtQ2L9d2f7ufvNDP6vkFZnZFvNUbA0IHQyRifHySHZfqk1etk9Lx9pUoedzoEAdbe YjbaFaMwocicrp3z0/DrG+xuqlqKRSBfIKkzNqDtCPD5e8B+2UY0OckrMVCnq+whZJNQ baAg== 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 8si1829579edz.299.2019.09.17.10.59.32; Tue, 17 Sep 2019 10:59:57 -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 S1727856AbfIQOYt (ORCPT + 99 others); Tue, 17 Sep 2019 10:24:49 -0400 Received: from 11.mo1.mail-out.ovh.net ([188.165.48.29]:34419 "EHLO 11.mo1.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725922AbfIQOYt (ORCPT ); Tue, 17 Sep 2019 10:24:49 -0400 X-Greylist: delayed 4198 seconds by postgrey-1.27 at vger.kernel.org; Tue, 17 Sep 2019 10:24:48 EDT Received: from player699.ha.ovh.net (unknown [10.109.143.24]) by mo1.mail-out.ovh.net (Postfix) with ESMTP id B1F7018FC20 for ; Tue, 17 Sep 2019 15:05:42 +0200 (CEST) Received: from qperret.net (115.ip-51-255-42.eu [51.255.42.115]) (Authenticated sender: qperret@qperret.net) by player699.ha.ovh.net (Postfix) with ESMTPSA id 73C3D9E63A6C; Tue, 17 Sep 2019 13:05:27 +0000 (UTC) Date: Tue, 17 Sep 2019 15:05:22 +0200 From: Quentin Perret To: Daniel Lezcano Cc: Sudeep Holla , 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" , Viresh Kumar , Zhang Rui , linux-pm@vger.kernel.org Subject: Re: [PATCH 5/5] cpufreq: qcom-hw: Move driver initialisation earlier Message-ID: <20190917130522.GA31601@qperret.net> 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) X-Ovh-Tracer-Id: 15719251551264529282 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedufedrudeigdefgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Daniel On Tuesday 17 Sep 2019 at 14:47:22 (+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? > > 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? > > "The grand plan" will have to solve this first before doing the module > move. > > > 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. > > > 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. Could you share test results for this ? It'd be nice to see what if the gains in boot time outweight the additional pain for android folks ... Thanks, Quentin