Received: by 2002:a05:6358:795:b0:dc:4c66:fc3e with SMTP id n21csp610658rwj; Sat, 29 Oct 2022 08:07:03 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4795Vx1ui7GRlNi2cK45q0PaTwEK74Lb39Qzo4q5MIVEo+GV18dmhdZ3nfQStOLLvpGTB8 X-Received: by 2002:a05:6402:4312:b0:45c:c1e9:9dc8 with SMTP id m18-20020a056402431200b0045cc1e99dc8mr4667449edc.154.1667056023456; Sat, 29 Oct 2022 08:07:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667056023; cv=none; d=google.com; s=arc-20160816; b=fbeW5cAHJ9FP0Z+8Fz5fbN5Ak2P+sSXyjlp9FAwn6IY7oNt0CCg+LqFN+n5rwDD5WU WEEUZuKqYTzIuqZEu/6JtbIXiE/aKVk4NTf1tIT0BvY/PP2cjh6FxyHItfTQlEIYxX62 lTwBcet59orjlK5ScbTTQDtz/n2Rf8g4hvGCRN/3kaErKrrplRu6U6phtEVzbNWxXm5Y 7iL/oiTFnFR+2Lpsu/GNv3FD1Trs6RJYwYmMY+j6EOAfUeiU40uiQDJExNdUS3uu+KJs oHSlI2HAnTWrRbnVuwrBwAlX0XQwwZkl4IhGo3czMVauIf9ZYzpzO2VQzcdcspscoL3P XxaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=egIFBbyuyPRuqRSw2VhKFaCIFGWGkya7ImgQMirhDvU=; b=piTCf52Ehz6bRVSZJF6EiRkkZJsnWlPyKhHuu+3KMfe/jF/abT2tWc/48lsOx/4xPx ZclL0KbMOZHQydXT3vAZXU7iA6iAhgqkcXmj0yOqqtgHBDu5LnWdc2KgUc2ZEw+fAyiq X+l/D1sxe7GfiGVYSSURAjTMBBG7qHovOzvWuItwtZ8C2BnK2G8VrUP+5fIKjyRkVaDh gjSPmjRqtxf7kr3iGay+t+hMquQHVzL5RZJeyj88GYmgDZ4E09lYFOdlcXj9qZRQUlom pNnz/908+Ynu9lHr/IEnh/uPEvf519QDGrqrpsBOrRzduoOhzoy1jB5b3jnsoifelXYR P8JQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nd19-20020a170907629300b0078ae5192906si2134340ejc.193.2022.10.29.08.06.36; Sat, 29 Oct 2022 08:07:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229841AbiJ2O3K (ORCPT + 99 others); Sat, 29 Oct 2022 10:29:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229613AbiJ2O3J (ORCPT ); Sat, 29 Oct 2022 10:29:09 -0400 Received: from relay08.th.seeweb.it (relay08.th.seeweb.it [5.144.164.169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5341863375; Sat, 29 Oct 2022 07:29:08 -0700 (PDT) Received: from [192.168.1.101] (95.49.29.156.neoplus.adsl.tpnet.pl [95.49.29.156]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 316E83EE8A; Sat, 29 Oct 2022 16:29:06 +0200 (CEST) Message-ID: <90b7e0e0-a354-f64d-8c53-aa80df684a3a@somainline.org> Date: Sat, 29 Oct 2022 16:29:05 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: [PATCH v2 12/12] arm64: dts: qcom: sc8280xp-x13s: Add thermal zone support Content-Language: en-US To: Manivannan Sadhasivam , andersson@kernel.org Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, johan+linaro@kernel.org, quic_jprakash@quicinc.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, steev@kali.org References: <20221029051449.30678-1-manivannan.sadhasivam@linaro.org> <20221029051449.30678-13-manivannan.sadhasivam@linaro.org> From: Konrad Dybcio In-Reply-To: <20221029051449.30678-13-manivannan.sadhasivam@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29.10.2022 07:14, Manivannan Sadhasivam wrote: > Add thermal zone support by making use of the thermistor SYS_THERM6. > Based on experiments, this thermistor seems to reflect the actual > surface temperature of the laptop. > > For the cooling device, all BIG CPU cores are throttle down to keep the s/throttle/throttled Is it okay to let the 4xA78C run at full throttle in thermal emergencies though? > temperature at a sane level. > > Signed-off-by: Manivannan Sadhasivam > --- > .../qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 46 +++++++++++++++++++ > 1 file changed, 46 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts > index ca77c19c6d0d..96e2fa72f782 100644 > --- a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts > +++ b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts > @@ -29,6 +29,52 @@ backlight { > pinctrl-0 = <&edp_bl_en>, <&edp_bl_pwm>; > }; > > + thermal-zones { > + skin-temp-thermal { > + polling-delay-passive = <250>; > + polling-delay = <0>; > + thermal-sensors = <&pmk8280_adc_tm 5>; > + > + trips { > + skin_temp_alert0: trip-point0 { > + temperature = <55000>; > + hysteresis = <1000>; > + type = "passive"; > + }; > + > + skin_temp_alert1: trip-point1 { > + temperature = <58000>; > + hysteresis = <1000>; > + type = "passive"; > + }; > + > + skin-temp-crit { > + temperature = <73000>; Ouch, I didn't know we were serving burnt fingers at the cafeteria today :D Or maybe this just looks scary.. The laptop looks plastic, so maybe it won't cause instant burns? Konrad > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + > + cooling-maps { > + map0 { > + trip = <&skin_temp_alert0>; > + cooling-device = <&CPU4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&CPU5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&CPU6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&CPU7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + }; > + > + map1 { > + trip = <&skin_temp_alert1>; > + cooling-device = <&CPU4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&CPU5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&CPU6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&CPU7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + }; > + }; > + }; > + }; > + > vreg_edp_bl: regulator-edp-bl { > compatible = "regulator-fixed"; >