From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 17FB6CA9ECE for ; Thu, 31 Oct 2019 04:44:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D4AB12087E for ; Thu, 31 Oct 2019 04:44:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=verdurent-com.20150623.gappssmtp.com header.i=@verdurent-com.20150623.gappssmtp.com header.b="uLXw2V90" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726830AbfJaEoI (ORCPT ); Thu, 31 Oct 2019 00:44:08 -0400 Received: from mail-vs1-f66.google.com ([209.85.217.66]:41279 "EHLO mail-vs1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726667AbfJaEoI (ORCPT ); Thu, 31 Oct 2019 00:44:08 -0400 Received: by mail-vs1-f66.google.com with SMTP id i22so3228424vsl.8 for ; Wed, 30 Oct 2019 21:44:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=verdurent-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SSmWUE5CWichZhorX+55ZMLpjQalQ+giQWwoK8E5DBs=; b=uLXw2V904nlYKDyGs7+03vpTybp9imp69onWRxi5LnYo/gQ/0tRaV30wNRVWnbqzkR yi2cBc2+H/thF2p6ll4zVGL4SoWukUqJblmt0/6l56k0FqNASTUyqnEgAA1yeDlegI7o ep1Ph1/xVKjDP2yDo1I69libARWuTwjYkSv5iSkUfc0aEMTO/rcr4fRpLG8CUHjK8nob KNFueQNCpG7agYHiUD1f0qA7GEP/wfqr1+8DHEq8zwSzHbbpWh/CTpOAoLba1HYN0F8H 2M9m94Qbhc6R/TzTKRgI9GkyayueiV+hwZmbpmQjFhCNZYpSgjFMhoWA+d5IilChshgK rj7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SSmWUE5CWichZhorX+55ZMLpjQalQ+giQWwoK8E5DBs=; b=YH1FZPmPPxUBEZMIKfdLiHNtltESDIJgqIjVNdzLVZ7dJk724vUJefFMZHOBtZ1cMb syj3u7IV6XlYZeKyQ3M+49SAz6dy/YqQtHNJ6OH8nEABvcTSojYllBDQgQx7LPUXS68e SvyHomhyVzmIYLJZcbjp1TOZTaF/g0thJ9Y4N03d7cwBs/7WYeEe9SqlEbspV3D4cnFf 7gqjdQJ89e7LRGG3QOicvklu6CaM6p3sgHCAuNFc8Af3muABnv4BwT3T7gL82jhI3DVf hkwX6+MAxxFwKKX3nSZItvfVVWhAAvjOS48ElReXYAskbN5lh9lcSL4Bb+BMrPSRVixg v8OQ== X-Gm-Message-State: APjAAAVJtqkf7jX4c0jMJsM6TQ3MN7MoW1x7N4+AL3Z24sBMw3sC8+p8 XJ3Kq+nh3BvH0Kq6LralBIrm4jRu2g3ZPgyq5lnBqQ== X-Google-Smtp-Source: APXvYqymGEbluLxhfYWqSz8igslfm5GCyFzNh+plgN1+M3mEWoUW2BmZ6Kvloy7vw2iDYKUG+MxHDSQGtVOBQzvkTpU= X-Received: by 2002:a67:b60c:: with SMTP id d12mr1611322vsm.159.1572497046919; Wed, 30 Oct 2019 21:44:06 -0700 (PDT) MIME-Version: 1.0 References: <4efc55ad929dbb3432e72b96cb27876efa496242.camel@intel.com> In-Reply-To: <4efc55ad929dbb3432e72b96cb27876efa496242.camel@intel.com> From: Amit Kucheria Date: Thu, 31 Oct 2019 10:13:55 +0530 Message-ID: Subject: Re: [PATCH v5 0/6] Initialise thermal framework and cpufreq earlier during boot To: Zhang Rui Cc: LKML , linux-arm-msm , Daniel Lezcano , Viresh Kumar , Sudeep Holla , Bjorn Andersson , Eduardo Valentin , Andy Gross , Taniya Das , Stephen Boyd , ilina@codeaurora.org, "Rafael J. Wysocki" , Ben Segall , Dietmar Eggemann , Ingo Molnar , Juri Lelli , Mel Gorman , Peter Zijlstra , Steven Rostedt , Vincent Guittot , linux-clk , linux-doc@vger.kernel.org, Linux PM list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rui, I'm assuming that since Rafael acked it, he is ok with this going thru the thermal tree. Regards, Amit On Thu, Oct 31, 2019 at 8:12 AM Zhang Rui wrote: > > Hi, > > Given that all the patches in this series have got the ACK from the > subsystem maintainers, I suppose we can take all the patches through > thermal tree, right? > > thanks, > rui > > On Mon, 2019-10-21 at 17:45 +0530, Amit Kucheria wrote: > > 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(-) > > >