From patchwork Mon Jan 14 10:21:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 155421 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3489040jaa; Mon, 14 Jan 2019 02:21:24 -0800 (PST) X-Google-Smtp-Source: ALg8bN5B1DAElpfoPJTO4a5tiJgofvQDllMaS6SQlNVQJFUaB99DPLo8fIIod3M1DqVPFBzmIixV X-Received: by 2002:a62:1212:: with SMTP id a18mr25469294pfj.217.1547461283939; Mon, 14 Jan 2019 02:21:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547461283; cv=none; d=google.com; s=arc-20160816; b=AxBJcf3pD5b1fw3EhJKC345RBEHXPRVIK+aDesnVdieh+V5zRB8ipHndXztLqYXoHT Ndz6tdKZAVWAJowF0vgJdw+gpov3WWmBMq7YaIEzyd4ZH9/nws/WR34PPmhNuaYxk1EE OVFaWQclK3591MkkyrqZ/9ikdI2cwQ4FNTpInMR73NQwG+ktTdy2pNkuLiX85ODZZKaA YA5x6piX/7A9NjtKRfO6zoMBnSvm0g2Q+WxwpvWGWBx+mq64m1sHaKH8S7I5PxSRMbBm laOEqd/UUhzMPGdREn7L832MJeeG2y0S0qBVZJemhNLQIHf7peyklLiMG3rFa0DshmLN aO2g== 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=+q/dK73tHXxtdjEDrD8QwoRGWsQ9m1+k89z7XhmwxY0=; b=shCcOw2AGRr2ZHWlGRqiMD8mtvgQ2O/uIrKCZ0s3aA/MFWbFj1yS/ZcPKUsTIzwAMD 7lWCYwAgJ1zr9/+542TXFQO9nUxyxAssbNddOtpv+pi4DiM58BsG1LjiA8Fs+CkCAOou h7mqwzRjSBmA50sGG/wkw9xEui+jLR3IOaxWP/vDBYlufW102Hh+L0QU7/BR+Ywa55cz srwFxygG7tvmdfilXfCDgkZWhyrTjixG5V21YW/blqPkvs1Am8CAbyrhHcaQatNZvq3I bmVVLHThETZaP3wlMpMNcwUTHspGrg9QY6LpdiuYa9atks3pSsF9dLBhf+khDHFvTnO7 Ywig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VB0OtnA+; 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=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 b6si17157pgm.216.2019.01.14.02.21.23; Mon, 14 Jan 2019 02:21:23 -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; dkim=pass header.i=@linaro.org header.s=google header.b=VB0OtnA+; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726686AbfANKVW (ORCPT + 31 others); Mon, 14 Jan 2019 05:21:22 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:40291 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726659AbfANKVV (ORCPT ); Mon, 14 Jan 2019 05:21:21 -0500 Received: by mail-wm1-f65.google.com with SMTP id f188so8208972wmf.5 for ; Mon, 14 Jan 2019 02:21:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=+q/dK73tHXxtdjEDrD8QwoRGWsQ9m1+k89z7XhmwxY0=; b=VB0OtnA+R0ybHWQ8Ch+8EXfaWlytMUpKxFsHZCDgqf7Wo6QVZ2in4hp7ZuGxKLdklL Mms9S6vXh/M9tnVX/rI3JP/flQgigSnx5IO/0F1fnj6EJ6aHpV2WYmoDes2BN8x9JIH9 HX/nt5WPmkXjHQyWyoNZJA65er0vnRLrjAmTk= 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=+q/dK73tHXxtdjEDrD8QwoRGWsQ9m1+k89z7XhmwxY0=; b=Uv2U+Sc4euTrNh9Lr61g2JiIcXrVdYitBXZ5c076TblqmQKzwVC8HVNhn98b5oFFHe 3sNs1rfLVv83+oLmPMFJYE4MjnqcygBQZNwswxSvWcBKbQ0gx5807QgecXc09+GHdz03 XPFTNuLs4XrxNneK9OlLs3T25kpzHsJ+QCCHKm5zna+98LPhtWY/d9Nxe5yHb3KJvuft 9SsjMJqd35PFTdX2+4OxNZdRXdV2G4NBtDVAvg7iDY+I56EWK3cn//Xrc//J6NQZTDpk 5WoMsHyu8MDDAb0G2sSnBevSIA/6Mt68+NJlH/ZLmJCTWXrasAo5ZQJQS4DwR9PAxANo U8yg== X-Gm-Message-State: AJcUukeUU9VGxL0qM1SzBidfvHjMullC88RPjvkz5j/b2/Zyn+5IOJw5 g686e2oq0e8lt8w0pgyfaeRY56Jexi4= X-Received: by 2002:a1c:70b:: with SMTP id 11mr11661449wmh.74.1547461278843; Mon, 14 Jan 2019 02:21:18 -0800 (PST) Received: from localhost ([49.248.81.155]) by smtp.gmail.com with ESMTPSA id t70sm44682285wmd.36.2019.01.14.02.21.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 02:21:18 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, viresh.kumar@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, tdas@codeaurora.org, swboyd@chromium.org, dianders@chromium.org, mka@chromium.org, "Rafael J. Wysocki" , Daniel Lezcano , David Brown , Javi Merino , Mark Rutland , Rob Herring , Zhang Rui , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-pm@vger.kernel.org (open list:CPU FREQUENCY DRIVERS) Subject: [PATCH v2 0/9] Thermal throttling for SDM845 Date: Mon, 14 Jan 2019 15:51:02 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for thermal throttling on SDM845. We introduce a generic flag to be used by cpufreq drivers to tell the cpufreq core to auto-register a thermal cooling device. There are a few miscellaneous fixes to keep checkpatch happy. If this approach is acceptable I can send a series converting other cpufreq drivers to use this flag and get rid of driver code. Amit Kucheria (9): [ALREADY QUEUED] cpufreq: qcom-hw: Move to device_initcall drivers: thermal: of-thermal: Print name of device node with error drivers: cpufreq: Add thermal_cooling_device pointer to struct cpufreq_policy cpufreq: Add a flag to auto-register a cooling device cpufreq: Replace open-coded << with BIT() cpufreq: qcom-hw: Register as a cpufreq cooling device arm64: dts: sdm845: Increase alert trip point to 95 degrees arm64: dts: sdm845: wireup the thermal trip points to cpufreq thermal: cpu_cooling: Clarify error message arch/arm64/boot/dts/qcom/sdm845.dtsi | 193 +++++++++++++++++++++++---- drivers/cpufreq/cpufreq.c | 13 ++ drivers/cpufreq/qcom-cpufreq-hw.c | 5 +- drivers/thermal/cpu_cooling.c | 2 +- drivers/thermal/of-thermal.c | 4 +- include/linux/cpufreq.h | 34 +++-- 6 files changed, 210 insertions(+), 41 deletions(-) -- 2.17.1 Reviewed-by: Stephen Boyd