Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp90291ybl; Tue, 3 Dec 2019 22:19:00 -0800 (PST) X-Google-Smtp-Source: APXvYqyy02P1ePKwnW13ho9ZWL5A+wHnWGvITACM09SQuY+SfaetchQwKbi90OiGcacuuBmEXMZ3 X-Received: by 2002:a9d:39b5:: with SMTP id y50mr1394460otb.162.1575440340578; Tue, 03 Dec 2019 22:19:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575440340; cv=none; d=google.com; s=arc-20160816; b=IfH+99qVCB0lKlNRCrkYlKIpg++hWOTHT2vAsdQfqrx9/hAYNz1+3stSAgpeU5qwqk xXJb2ndyW2RRILOJ7708+7mnObZcYU1Q6RDj56GBa8amct/CZLZuRR7xu5WmlMk5RuPe Nua9D1rsJhDp8RCqa1I2bTaKtFR7G6bu2M4g7+04eJdPI49k39kDuwk0Pf4tlswNlu3l fzYVVxr4KK/+ZmyWIGNci00GGZvtIFO9exaJ3MQl0rJidy63jh9g8GB3btL76taZJzLB NOH1rjMUQqzmxrCiYdeSmMCBzHGpDrM+5ya24VW1Z6mQ3egOR8hKuAOThnCfDwb/Etl1 v7HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :date:cc:to:from:subject:message-id; bh=chkp6tE++Kz9k7OhxB7mayMJmFMeIM5BY0YgCo6nU+k=; b=Y03XskWOVmkeQJZu28Y2dKhU0eww0dg/7V5xAu64po7BbXc0zjyrFr7k4MzKnv5oal RPKgYexAo7QNrWPEMtwxuaD3qA3FScKiD0Il97QmfnwY4PskqdWBlM+HiyYsGfvJR+ha FwexDlcdZvXsQa3KKhpQHJFyF8/rIgemVPOm1gFphsXt9cbb1AWrmInY6JGPyqU8Wwch EkGE2mYucc/HRirgG1GS9L+C0o8ds8PYsPtfosUcFUHTHpgsSo31oy7/yjSBhvPQ4NGf h9fZHaD5syD26ap6WdyF5y2p/MYIpMiU8bBEQtQ6sjTww+1uR8wFz5xdebdcMRT9e4JH 5dgw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f4si2787700oib.104.2019.12.03.22.18.47; Tue, 03 Dec 2019 22:19:00 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726794AbfLDGQ7 (ORCPT + 99 others); Wed, 4 Dec 2019 01:16:59 -0500 Received: from mga07.intel.com ([134.134.136.100]:59519 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725791AbfLDGQ6 (ORCPT ); Wed, 4 Dec 2019 01:16:58 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Dec 2019 22:16:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,276,1571727600"; d="scan'208";a="412469165" Received: from yuanwan1-mobl.ccr.corp.intel.com ([10.249.174.225]) by fmsmga006.fm.intel.com with ESMTP; 03 Dec 2019 22:16:56 -0800 Message-ID: <7f4da1c663268f53f2123424c1b8abdbe8316556.camel@intel.com> Subject: [GIT PULL] Thermal management updates for v5.5-rc1 From: Zhang Rui To: Linus Torvalds Cc: LKML , Linux PM list , Daniel Lezcano , "Zhang, Rui" Date: Wed, 04 Dec 2019 14:16:55 +0800 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Linus, Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git thermal/next to receive the latest Thermal Management updates for v5.5-rc1 with top-most commit 163b00cde7cf2206e248789d2780121ad5e6a70b: thermal: Fix deadlock in thermal thermal_zone_device_check (2019-11- 14 22:41:09 +0800) on top of commit a99d8080aaf358d5d23581244e5da23b35e340b9: Linux 5.4-rc6 (2019-11-03 14:07:26 -0800) Specifics: - Fix a deadlock regression in thermal core framework, which is introduced in 5.3. (Wei Wang) - Initialize thermal control framework earlier to enable thermal mitigation during boot. (Amit Kucheria) - Convert the Intelligent Power Allocator (IPA) thermal governor to follow the generic PM_EM instead of its own Energy Model. (Quentin Perret) - Introduce a new Amlogic soc thermal driver. (Guillaume La Roque) - Add interrupt support for tsens thermal driver. (Amit Kucheria) - Add support for MSM8956/8976 in tsens thermal driver. (AngeloGioacchino Del Regno) - Add support for r8a774b1 in rcar thermal driver. (Biju Das) - Add support for Thermal Monitor Unit v2 in qoriq thermal driver. (Yuantian Tang) - Some other fixes/cleanups on thermal core framework and soc thermal drivers. (Colin Ian King, Daniel Lezcano, Hsin-Yi Wang, Tian Tao) thanks, rui ---------------------------------------------------------------- Amit Kucheria (13): drivers: thermal: tsens: Get rid of id field in tsens_sensor drivers: thermal: tsens: Simplify code flow in tsens_probe drivers: thermal: tsens: Add __func__ identifier to debug statements drivers: thermal: tsens: Add debugfs support dt-bindings: thermal: tsens: Convert over to a yaml schema drivers: thermal: tsens: Create function to return sign-extended temperature drivers: thermal: tsens: Add interrupt support 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 AngeloGioacchino Del Regno (2): thermal: qcom: tsens-v1: Add support for MSM8956 and MSM8976 dt: thermal: tsens: Document compatible for MSM8976/56 Biju Das (2): thermal: rcar_gen3_thermal: Add r8a774b1 support dt-bindings: thermal: rcar-gen3-thermal: Add r8a774b1 support Colin Ian King (2): thermal: qcom: tsens-v1: Fix kfree of a non-pointer value drivers: thermal: tsens: fix potential integer overflow on multiply Daniel Lezcano (2): thermal: cpu_cooling: Remove pointless dependency on CONFIG_OF thermal: cpu_cooling: Reorder the header file Guillaume La Roque (3): dt-bindings: thermal: Add DT bindings documentation for Amlogic Thermal thermal: amlogic: Add thermal driver to support G12 SoCs MAINTAINERS: add entry for Amlogic Thermal driver Hsin-Yi Wang (1): thermal-generic-adc: Silent error message for EPROBE_DEFER Quentin Perret (4): arm64: defconfig: Enable CONFIG_ENERGY_MODEL PM / EM: Declare EM data types unconditionally thermal: cpu_cooling: Make the power-related code depend on IPA thermal: cpu_cooling: Migrate to using the EM framework Tian Tao (1): thermal: no need to set .owner when using module_platform_driver Wei Wang (1): thermal: Fix deadlock in thermal thermal_zone_device_check Yuantian Tang (1): thermal: qoriq: add thermal monitor unit version 2 support .../bindings/thermal/amlogic,thermal.yaml | 54 +++ .../devicetree/bindings/thermal/qcom-tsens.txt | 55 --- .../devicetree/bindings/thermal/qcom-tsens.yaml | 170 +++++++ .../bindings/thermal/rcar-gen3-thermal.txt | 1 + Documentation/driver-api/thermal/sysfs-api.rst | 26 +- MAINTAINERS | 10 + arch/arm64/configs/defconfig | 1 + 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/Kconfig | 12 + drivers/thermal/Makefile | 1 + drivers/thermal/amlogic_thermal.c | 333 +++++++++++++ drivers/thermal/cpu_cooling.c | 404 +++++++---- ----- drivers/thermal/qcom/tsens-8960.c | 4 +- drivers/thermal/qcom/tsens-common.c | 529 +++++++++++++++++++-- drivers/thermal/qcom/tsens-v0_1.c | 11 + drivers/thermal/qcom/tsens-v1.c | 198 +++++++- drivers/thermal/qcom/tsens-v2.c | 13 + drivers/thermal/qcom/tsens.c | 62 ++- drivers/thermal/qcom/tsens.h | 288 +++++++++-- drivers/thermal/qoriq_thermal.c | 120 ++++- drivers/thermal/rcar_gen3_thermal.c | 4 + drivers/thermal/thermal-generic-adc.c | 9 +- drivers/thermal/thermal_core.c | 107 +---- drivers/thermal/thermal_mmio.c | 1 - include/linux/cpu_cooling.h | 18 +- include/linux/energy_model.h | 3 +- include/linux/thermal.h | 11 - kernel/sched/cpufreq_schedutil.c | 2 +- 37 files changed, 1878 insertions(+), 589 deletions(-) create mode 100644 Documentation/devicetree/bindings/thermal/amlogic,thermal.yaml delete mode 100644 Documentation/devicetree/bindings/thermal/qcom- tsens.txt create mode 100644 Documentation/devicetree/bindings/thermal/qcom- tsens.yaml create mode 100644 drivers/thermal/amlogic_thermal.c