Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp391884imm; Wed, 29 Aug 2018 02:41:29 -0700 (PDT) X-Google-Smtp-Source: ANB0VdacctfuZXqbua0nATyDmGEh9pW79nvj1HM2imp5D6UnzU5wD32qLYiGD6YB+jmTesqdGw8o X-Received: by 2002:aa7:824d:: with SMTP id e13-v6mr5168410pfn.97.1535535688983; Wed, 29 Aug 2018 02:41:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535535688; cv=none; d=google.com; s=arc-20160816; b=w5L6OuMR9w64d9AcvyC4EKMZdfA+IR+Cu6v+AksDIDHeZ8+3USYOLpbXroh6rDKK6m vApN5z1Y5rOYEpMrqbsMHIpo3TOnoF5p7PKlFRyFFLhZn+zhNAjgmUffwQ2xK74V6+sS pzyd+I+S3nHsVcFyNrrypLRWUeKq/O+3NQktQteCRTLg6PjtBWuO3dn83nMRsaFKncwz aX9xLuuIMLqFb+UNaR88zNRX4FyscyKwMK9TufiAWpZsj2ANp5LGTpCUeAE2qfYBNVzv dnokT8rUxaUidiGWN8/LjNcPKFRFdqwip0vv6k3+z2SsTckCy2clwSTaWAH2KW2TsX/4 OnuA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=XaQFF/xff0yREjpC6ERkVeejCS+syQoLY8fD7LF5qJY=; b=DiqIblGhMBiPVQi46DdNNzIlV1cQ6kvEO+olM8LPwzW5pACIbjj1h8DdHUud5bsD+3 RCeeSgbDKu+AiRqphBUh6VgCN1ccHl3gWYeSRqC8DXxIzCR9J4jkssgaFfcD3RaxoAiW o2jQ7p6uvvCZvjkA26BE1qK/5HD8ttCb5IpN6gxjDTH7AFj/m9CH2ZijBp/hAZJpF56i GpnVGUwoRtfTe7wqKeV9KN9EOQL4UUde/zDT0XfAB8kf54wdqhNFj635HjcJ2L7nYJ6y 8AVdebdJJFPB99/OAaMtu5k1vD5QwNqoIdd0ftlaM5ZYU+CkqBekFdDXHCGvSDRN65Ph i3uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fyCPjllY; 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 p20-v6si3171991pgk.393.2018.08.29.02.41.13; Wed, 29 Aug 2018 02:41:28 -0700 (PDT) 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=fyCPjllY; 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 S1728110AbeH2NfV (ORCPT + 99 others); Wed, 29 Aug 2018 09:35:21 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:41375 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728030AbeH2NfU (ORCPT ); Wed, 29 Aug 2018 09:35:20 -0400 Received: by mail-wr1-f66.google.com with SMTP id z96-v6so4149745wrb.8 for ; Wed, 29 Aug 2018 02:39:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=XaQFF/xff0yREjpC6ERkVeejCS+syQoLY8fD7LF5qJY=; b=fyCPjllY06DtP5R+coW5xxfZXes++UtdeSx02mK0RqnFxJOtSKDDfXBc1BD9Az3dDB JtbHi2MJJYJiQuovs26htg4lfDCkgjhCfsVpM5P/gAOQo+xaDmQKQPjx22oLLeSNDcJv G46zVCnJWlzeptPB84lZhljTjTqmRMh0P/P6U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=XaQFF/xff0yREjpC6ERkVeejCS+syQoLY8fD7LF5qJY=; b=YYb9TZhnwS7OTpwEGfSZ9YThdX4DRbPQ06cWPoZowhv1KWRMc51jRuRNsvCNmlDNOk 5zJvRCGOPfmwHF4dI2/8Yo6hynPRicyvOnmtlt3reorSjowPGsyRpQw70r/+W8A96lgq XO5itAsXgIviXJe5DQyrmpIitgWPiFn4XvBskdagdizNXh/R7lT8Kd4tu6C94EYcw/0T xRvdBeiiQ/X8YK/uXL/Pryc3Ii+78z//cJOCGn65IhyMrKAzeCSPokdMfWuHRQewJdIA 52cuBf8dVqu1UcChmtJvW8JwMqEnZHqjP45LI2ndkuPCsD+L12Wvupfg0cE/wmii2C9U dAMQ== X-Gm-Message-State: APzg51D3KVLAiUGYAJLj+abBqmyxFTPgbvJff8MRu9jS6zEPXg4yZLCH Q5bIECnVTOgjLi0adpmON3eJ/Q== X-Received: by 2002:adf:dfca:: with SMTP id q10-v6mr3527664wrn.113.1535535556579; Wed, 29 Aug 2018 02:39:16 -0700 (PDT) Received: from [192.168.0.22] (sju31-1-78-210-255-2.fbx.proxad.net. [78.210.255.2]) by smtp.googlemail.com with ESMTPSA id r140-v6sm6391410wmd.7.2018.08.29.02.39.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Aug 2018 02:39:15 -0700 (PDT) Subject: Re: [PATCH v1] arm64: dts: sdm845: enable tsens thermal zones To: Amit Kucheria , linux-kernel@vger.kernel.org Cc: rnayak@codeaurora.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, andy.gross@linaro.org, dianders@chromium.org, mka@chromium.org, edubezval@gmail.com, David Brown , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: From: Daniel Lezcano Message-ID: Date: Wed, 29 Aug 2018 11:39:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18/07/2018 09:49, Amit Kucheria wrote: > One thermal zone per cpu is defined The thermal zones are very close, especially when the CPUs belong to the same 'cluster'. Very likely the temperature will propagate from one core to another core, so when one core reaches the trip0, there is good chance the other cores will be close and cross the trip0 threshold too. Having multiple thermal zones, one per CPU, may trigger an interrupts storm with the passive polling timer delay. Does this board have a cooling device per CPU also ? > Signed-off-by: Amit Kucheria > --- > arch/arm64/boot/dts/qcom/sdm845.dtsi | 170 +++++++++++++++++++++++++++++++++++ > 1 file changed, 170 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi > index 01ff146..a75be7c 100644 > --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi > +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi > @@ -340,4 +340,174 @@ > }; > }; > }; > + > + thermal-zones { > + cpu0-thermal { > + polling-delay-passive = <250>; > + polling-delay = <1000>; > + > + thermal-sensors = <&tsens0 1>; > + > + trips { > + cpu_alert0: trip0 { > + temperature = <75000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + > + cpu_crit0: trip1 { > + temperature = <110000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + }; > + > + cpu1-thermal { > + polling-delay-passive = <250>; > + polling-delay = <1000>; > + > + thermal-sensors = <&tsens0 2>; > + > + trips { > + cpu_alert1: trip0 { > + temperature = <75000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + > + cpu_crit1: trip1 { > + temperature = <110000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + }; > + > + cpu2-thermal { > + polling-delay-passive = <250>; > + polling-delay = <1000>; > + > + thermal-sensors = <&tsens0 3>; > + > + trips { > + cpu_alert2: trip0 { > + temperature = <75000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + > + cpu_crit2: trip1 { > + temperature = <110000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + }; > + > + cpu3-thermal { > + polling-delay-passive = <250>; > + polling-delay = <1000>; > + > + thermal-sensors = <&tsens0 4>; > + > + trips { > + cpu_alert3: trip0 { > + temperature = <75000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + > + cpu_crit3: trip1 { > + temperature = <110000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + }; > + > + cpu4-thermal { > + polling-delay-passive = <250>; > + polling-delay = <1000>; > + > + thermal-sensors = <&tsens0 7>; > + > + trips { > + cpu_alert4: trip0 { > + temperature = <75000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + > + cpu_crit4: trip1 { > + temperature = <110000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + }; > + > + cpu5-thermal { > + polling-delay-passive = <250>; > + polling-delay = <1000>; > + > + thermal-sensors = <&tsens0 8>; > + > + trips { > + cpu_alert5: trip0 { > + temperature = <75000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + > + cpu_crit5: trip1 { > + temperature = <110000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + }; > + > + cpu6-thermal { > + polling-delay-passive = <250>; > + polling-delay = <1000>; > + > + thermal-sensors = <&tsens0 9>; > + > + trips { > + cpu_alert6: trip0 { > + temperature = <75000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + > + cpu_crit6: trip1 { > + temperature = <110000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + }; > + > + cpu7-thermal { > + polling-delay-passive = <250>; > + polling-delay = <1000>; > + > + thermal-sensors = <&tsens0 10>; > + > + trips { > + cpu_alert7: trip0 { > + temperature = <75000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + > + cpu_crit7: trip1 { > + temperature = <110000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + }; > + }; > }; > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog