Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp265225rwb; Tue, 4 Oct 2022 03:52:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5H5lF7DfPLDUG5uPvmIFkMpmO5YzP4S/HrbuVF1nmHPRVG56W5X/EwAqWJFwO+wKDrFxJO X-Received: by 2002:a17:90a:be0c:b0:20a:c658:c16c with SMTP id a12-20020a17090abe0c00b0020ac658c16cmr5066175pjs.195.1664880731870; Tue, 04 Oct 2022 03:52:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664880731; cv=none; d=google.com; s=arc-20160816; b=h75ULfHnW9egG55GTM6TCwMsvYrVFdvDGQYNqXb6U4U/fhW9tVTw1BAF65QBwmxR5+ NTcCXbf7vhSbHFCnNIEgwX4A/HZlQ6pYTyqAuiFsKhaIjgCJSU9LbNlKIUHgtTi4fRx/ CR/799YDF2Xlw62/0gfyba13Sj0D4W4CCuZp5Sp8cG/B5EN9ZI2g9wj8lKuPZjtiCjBC MONCfv6C3EuEUyQuosccsCd8F4sw/MI87n5iVUSYfwyxsK6tArgRM7OV3vDt3C9xJtlp 939z3xE1jQS8hJ3nqJb1Zzsjr1JET57DLEz1UT1v1El36k2WYn5oXezjlZeW0QScobZd XpAA== 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:dkim-signature; bh=cEukjb2UHK5KqOanQB61zhcVE7DRFNm5dcKOe0eZBnI=; b=Jwy9tRXoOl8h8S8sURIcM3oOPuUB+rL8bx3tdtnkNbMdANaNz0Jurf/sN4RgLjkMYp RLg+rpWjVV2EwsVLgnxsVQDMmEI54iJ2UT1fY3mNiSTwxOhXtNAlDbnONzjAyBw09ofF ZcJ09yLx/eK4EIiiTYlCkhwdbESM0RxP5npk6mknR5ELjJk9rprQb34GElyj2GvP3qOV 8+hfAb63AHXyfSBW+RN7aoXDG0J8T0dCIRKWEn2zgu6OTngHqlvMl8PwpHV7feGj9D4J /bFGs5lwfRl/vIir5fbbyX9u379jBQJLxJQk6Ccd2NBYNSPBUW9Xd91oZWy0/PtH4sjw Z4NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dhKSlYdY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u33-20020a634561000000b0045426ebb749si2478249pgk.137.2022.10.04.03.51.59; Tue, 04 Oct 2022 03:52:11 -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; dkim=pass header.i=@linaro.org header.s=google header.b=dhKSlYdY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229637AbiJDKrg (ORCPT + 99 others); Tue, 4 Oct 2022 06:47:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbiJDKre (ORCPT ); Tue, 4 Oct 2022 06:47:34 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C9D650730 for ; Tue, 4 Oct 2022 03:47:33 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id a10so8345178wrm.12 for ; Tue, 04 Oct 2022 03:47:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=cEukjb2UHK5KqOanQB61zhcVE7DRFNm5dcKOe0eZBnI=; b=dhKSlYdYkxEW6eonWePf90D/2Wkp27oLOK/2b1lxm0GZ2l8Rbv60TIC/4og+E/LlpZ zE8hxUxVfxYcMGcewbLcPorJ6pTTOEf+ogZkrm+IZqcESkFi1KjcJh4jNpNGlmdA0FQ1 vAAgBLlA1+wc8iJ6CdcCUk+jhQz8AcU2Bvn+AMdw1LGeK8jbgFajfwM+5lsDE6HSB5C6 Xfol4ujqekdk5SSbQFqbKEJD5LdGYHO61fWF8HLwQ0OhZt0kwc5S9A9v7CDrY/qbyjhJ 5uzHI1SzYbt5kQtrlSO9CpPwnPCvMlex+1V5jd2/gSVlRm8XEt3aca0Kq1ABqguQS+d+ AruQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=cEukjb2UHK5KqOanQB61zhcVE7DRFNm5dcKOe0eZBnI=; b=7++vZb6K3URsV8YiwIihBK7Kum9pQ+HOVdDk1ajdgE3OszJvGhhQo0R/gRNOFEtDHC uM41o1vNl5XlN60tQMJhrIF3Uo8uN8/TRu/5B5mcRW5Oyi8EfPI56nfX2cHNO6NJZoD2 E16dDtQMFLQ4QH74HEi/m2aJZbAK8854Q66oPpnCzSZvTm/jyiJb/+oj7XZfzN41GGmt tmMnXCIfVoe1HWYAcDvUBwIx0gpi3VoEiKGTC04/yqFdjSf8Pzg9ROeFOlsUKplNst7T trQAmbAvO0/dO4oBxJt+0SNULD7vGJuEYFcMt7893mP7fgBV3MWRE1iacHeQqKbY40su 94zw== X-Gm-Message-State: ACrzQf1pePu6tNUvigy+PKjkJ3T24ulAianIxaYCjzHlJmL3Ph2LJQ6+ 4BIiLYDatIdRmSg7lkMVZDb+cw== X-Received: by 2002:a05:6000:4c:b0:22e:48e0:1a0b with SMTP id k12-20020a056000004c00b0022e48e01a0bmr3105069wrx.618.1664880452067; Tue, 04 Oct 2022 03:47:32 -0700 (PDT) Received: from ?IPV6:2a05:6e02:1041:c10:c456:8337:99aa:2667? ([2a05:6e02:1041:c10:c456:8337:99aa:2667]) by smtp.googlemail.com with ESMTPSA id k18-20020a05600c1c9200b003b5054c6cd2sm25870085wms.36.2022.10.04.03.47.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Oct 2022 03:47:31 -0700 (PDT) Message-ID: <17f3fd40-70c1-2e8d-8002-dfe9690aed88@linaro.org> Date: Tue, 4 Oct 2022 12:47:30 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v3] arm64: dts: mediatek: mt8183: disable thermal zones without trips. Content-Language: en-US To: Amjad Ouled-Ameur , Rob Herring , Krzysztof Kozlowski , Matthias Brugger Cc: linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20221004101130.17256-1-aouledameur@baylibre.com> From: Daniel Lezcano In-Reply-To: <20221004101130.17256-1-aouledameur@baylibre.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Hi Amjad, On 04/10/2022 12:11, Amjad Ouled-Ameur wrote: > Thermal zones without trip point are not registered by thermal core. > > tzts1 ~ tzts6 zones of mt8183 were intially introduced for test-purpose > only. > > Disable the zones above and keep only cpu_thermal enabled. It does not make sense to disable the thermal zones. Either the thermal zones are needed or they are not. Keeping them for debug purpose is not desired. Alternatively to removal, you can: - remove 'sustainable-power' - add a passive trip point, optionally a hot trip point and a critical trip point The passive trip point will allow the userspace to set a value in order to get notified about the devices temperature (writable trip point). The hot temperature will send a notification to userspace so it can take a last chance decision to drop the temperature before the critical temperature. The passive trip point temperature could be a high temperature. The mitigation is also managed from userspace as a whole. > Signed-off-by: Amjad Ouled-Ameur > --- > arch/arm64/boot/dts/mediatek/mt8183.dtsi | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi > index 9d32871973a2..53f7a0fbaa88 100644 > --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi > @@ -1191,6 +1191,7 @@ tzts1: tzts1 { > polling-delay = <0>; > thermal-sensors = <&thermal 1>; > sustainable-power = <5000>; > + status = "disabled"; > trips {}; > cooling-maps {}; > }; > @@ -1200,6 +1201,7 @@ tzts2: tzts2 { > polling-delay = <0>; > thermal-sensors = <&thermal 2>; > sustainable-power = <5000>; > + status = "disabled"; > trips {}; > cooling-maps {}; > }; > @@ -1209,6 +1211,7 @@ tzts3: tzts3 { > polling-delay = <0>; > thermal-sensors = <&thermal 3>; > sustainable-power = <5000>; > + status = "disabled"; > trips {}; > cooling-maps {}; > }; > @@ -1218,6 +1221,7 @@ tzts4: tzts4 { > polling-delay = <0>; > thermal-sensors = <&thermal 4>; > sustainable-power = <5000>; > + status = "disabled"; > trips {}; > cooling-maps {}; > }; > @@ -1227,6 +1231,7 @@ tzts5: tzts5 { > polling-delay = <0>; > thermal-sensors = <&thermal 5>; > sustainable-power = <5000>; > + status = "disabled"; > trips {}; > cooling-maps {}; > }; > @@ -1236,6 +1241,7 @@ tztsABB: tztsABB { > polling-delay = <0>; > thermal-sensors = <&thermal 6>; > sustainable-power = <5000>; > + status = "disabled"; > trips {}; > cooling-maps {}; > }; -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog