From patchwork Mon Oct 21 12:15:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 177068 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3336188ill; Mon, 21 Oct 2019 05:15:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqxYF6Jj15sW+FysIbD/7cULlGnH4a1f2wJH3M0w4EsDJPwoKNV4V5feFurXgODTJ9/E4o// X-Received: by 2002:a50:cc43:: with SMTP id n3mr25061375edi.287.1571660122689; Mon, 21 Oct 2019 05:15:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571660122; cv=none; d=google.com; s=arc-20160816; b=cYFP0Esr5AKAdLMn0o2zMXr/cf6EtDGLzQ6sYOfCIhQ1mPtZnakrg03VftPYaDXJta Vsy8ICH5ar+OMuMMXnSlnNvKK2R7wk1HP12mbr2jqW8xTUgd3pFvWk74+iwmtzlLYogx qOvbufb4eMxXl5kh9VVIyEbOVTk3PyoduwG6k8kgxfKp0qV/H+3Gd9AylwSx2g6Id45p ebxWmb2ohC3ygq0yRj6r7lnvdDygiMf7oKtJjHdkoNLKX/bU40ZbSJLrzqU9vR1QeH3B nHMbdqOQaA+LXHcx02Mdl+6TJd7EEdQ6rS/l9pi7BIBcKBSM+H1vT42f7v70J/Vdb42d 161w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=pnzJsmuP9CKg9EDHDwS6w3J2PHJifgSu4We6SYgSAmQ=; b=RixA8Sczy4AlnsWSY9xB0NL6ypQP4/wN2/RsG58ButNLjOQK5iH28AmYtUYxENTbFX +nd39uVurlp8QGoEsXbI8rrQc1koqhkITZcCoge6fm25z7OlWQA4GF+sZY9mx19NYWOg +6triFPzVQD0SyEsq8MCCWTdzxVqpzLkzLmo200YAGltfFk7Fr9oujNKr/egMDWFwQgF qacoCEP1B/zVEnb2lKQSfJeUoucpe+EosE9FLz+nYzV6G0wMIhARGqGXSnKfpq06sx14 GlqKLOawaANGhmq4KuGVHg+rymEYlhUS/mq62j+pnyDGfXFkd8kPuCwRhC3w9sz5Nsga kSYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MPXS8Hgx; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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. [209.132.180.67]) by mx.google.com with ESMTP id i17si8260971ejc.233.2019.10.21.05.15.22; Mon, 21 Oct 2019 05:15:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MPXS8Hgx; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 S1728081AbfJUMPV (ORCPT + 10 others); Mon, 21 Oct 2019 08:15:21 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:46937 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727256AbfJUMPV (ORCPT ); Mon, 21 Oct 2019 08:15:21 -0400 Received: by mail-pg1-f194.google.com with SMTP id e15so7694774pgu.13 for ; Mon, 21 Oct 2019 05:15:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=pnzJsmuP9CKg9EDHDwS6w3J2PHJifgSu4We6SYgSAmQ=; b=MPXS8Hgx2hMZyNlkxK1TpJq79YlVtmaPiMszJobyCWB6W2W/iMtbsrJ3k8abj8Jjgd kKokTdR0uO+rz6zBWhKNqeITZRkQm1P0Hmv50IwnpFD6h/NLMA0ZkRzwp4YoYAAZ0Yrq 7QN4onmyAX49U1ISSKDimvWDGWYpeWW6Yc/TQ2zvNYmz/QHuegKU8gS55zwiL3U//q26 AfAmznmph4e8VBioWsB5opWwavJ00Q9dCofFRuLXmZauAJ1bmQH31xAtn7Ji0/Xt5aOq 95t/l5XDDehU95n2bGCHPHAwoszt9EVvBQRw+jDOtO+GI1oOZo9lab2e34tdUsFEdCFz HVsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=pnzJsmuP9CKg9EDHDwS6w3J2PHJifgSu4We6SYgSAmQ=; b=ole8564/UGMXnPAYpwlampASmt+QuTjsxKlGeMXoesE4a4Xix4KFFg/XCQL3egX1V9 OCClbOucEHjI/JC/vFLMiTZwFM/ZO5ajEhboyRKYSjdSUUxP7iZQL1dt8Z+oaXFePahC uAx+NQKWefC0yVTRkWZeBqbmfBnavcFKLrWhvDYN94NqUDa35NCAx/RKWpH1uyFF2sZR SD9+3/ugkSTj9Xr5JlfYivnpPana+4kdT7fJ9ANrPqbsVg2rlZjFI2s9y6XtaIAmQnMR qyH9BHUQDRXmiQkGNNNaeJfNLttJ+kuwCrkv/nywmivYnZQInMkW3/kTl9szSD0jHz80 7hFg== X-Gm-Message-State: APjAAAW46OU+gow/fYtvQkT2OMDCgoXFhcMSMUmsxODpyJ0C4mL3oTFi oh7Oi14BfWPNFgjdacULkQVGWQ== X-Received: by 2002:a62:7a8c:: with SMTP id v134mr23078737pfc.143.1571660120619; Mon, 21 Oct 2019 05:15:20 -0700 (PDT) Received: from localhost ([49.248.62.222]) by smtp.gmail.com with ESMTPSA id 203sm3006606pfa.165.2019.10.21.05.15.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Oct 2019 05:15:19 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, daniel.lezcano@linaro.org, viresh.kumar@linaro.org, sudeep.holla@arm.com, bjorn.andersson@linaro.org, edubezval@gmail.com, agross@kernel.org, tdas@codeaurora.org, swboyd@chromium.org, ilina@codeaurora.org, "Rafael J. Wysocki" , Amit Kucheria , Ben Segall , Dietmar Eggemann , Ingo Molnar , Juri Lelli , Mel Gorman , Peter Zijlstra , Steven Rostedt , Vincent Guittot , Zhang Rui Cc: linux-clk@vger.kernel.org, linux-doc@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH v5 0/6] Initialise thermal framework and cpufreq earlier during boot Date: Mon, 21 Oct 2019 17:45:09 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Changes since v4: - Collect Acks - Pick the US spelling for 'initialis^Hze' consistently. Changes since v3: - Init schedutil governor earlier too - Simplified changes to thermal_init() error path - Collects Acks Changes since v2: - Missed one patch when posting v2. Respinning. Changes since v1: - Completely get rid of netlink support in the thermal framework. - This changes the early init patch to a single line - change to core_initcall. Changed authorship of patch since it is nothing like the original. Lina, let me know if you feel otherwise. - I've tested to make sure that the qcom-cpufreq-hw driver continues to work correctly as a module so this won't impact Android's GKI plans. - Collected Acks Device boot needs to be as fast as possible while keeping under the thermal envelope. Now that thermal framework is built-in to the kernel, we can initialize it earlier to enable thermal mitigation during boot. We also need the cpufreq HW drivers to be initialised earlier to act as the cooling devices. This series only converts over the qcom-hw driver to initialize earlier but can be extended to other platforms as well. Amit Kucheria (6): thermal: Remove netlink support thermal: Initialize thermal subsystem earlier cpufreq: Initialize the governors in core_initcall cpufreq: Initialize cpufreq-dt driver earlier clk: qcom: Initialize clock drivers earlier cpufreq: qcom-hw: Move driver initialization earlier .../driver-api/thermal/sysfs-api.rst | 26 +---- drivers/clk/qcom/clk-rpmh.c | 2 +- drivers/clk/qcom/gcc-qcs404.c | 2 +- drivers/clk/qcom/gcc-sdm845.c | 2 +- drivers/cpufreq/cpufreq-dt-platdev.c | 2 +- drivers/cpufreq/cpufreq_conservative.c | 2 +- drivers/cpufreq/cpufreq_ondemand.c | 2 +- drivers/cpufreq/cpufreq_performance.c | 2 +- drivers/cpufreq/cpufreq_powersave.c | 2 +- drivers/cpufreq/cpufreq_userspace.c | 2 +- drivers/cpufreq/qcom-cpufreq-hw.c | 2 +- drivers/thermal/thermal_core.c | 103 +----------------- include/linux/thermal.h | 11 -- kernel/sched/cpufreq_schedutil.c | 2 +- 14 files changed, 19 insertions(+), 143 deletions(-) -- 2.17.1