Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp83797pxb; Tue, 10 Nov 2020 20:52:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJx/HE2saCRX27pahO+6VAQSf31BnpRKs7g9VwRCj870ExxBUmZ+byBvJi2QMHI54m7LxCO+ X-Received: by 2002:a17:906:76c2:: with SMTP id q2mr838952ejn.444.1605070368265; Tue, 10 Nov 2020 20:52:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605070368; cv=none; d=google.com; s=arc-20160816; b=cR/x6Xo2NVQiS0m8EuVfeC0sOIWYriwBpLMA0zZXQQOf9ifg7DSB6KLv0cYqAgUCYd UCcfqYbOgon/ouoJ9Emu2un6x25iXIIP9g5t6vHR/oyxlB/Rvui10tEe/1HIHzscvhlA aKDFsH0z9stm140EW4dpPN10/riiScWTDtHN2myKS4cxezSdB89ok+9PGRCXnEYKGnzm zBewhOsFQnb+2t2fyXSWixVasE99dZtawhTfXOgJtGrylBLPVxFT2RYJg61FJb9GBHei nO19iwKgR3NSVVN1BBDpkQ/FIZ/u4tvMhiC0ulBoYTgyXG2+6EpkIUj0doZdxc8QJWzA jOVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=TgiY8fdn90Uls12wgNKgzxp/Onwmpb1Il5B5p1lyVJU=; b=zmL+8nai1HLOLvYvMi5OD+jsWaERu6GLKF6K+EooKEfQqUjrstKAK5Qxw82rEDIVFd l8oPQD5tIcGyutneXMB10VAHELTGsoT9DqTEObHF0WUEHFreKkIxD+6EzCFX6//uqd4b DJM7yLEXF0yFnb4vU7sC2cC7NnZ5pbuN194ALnEQ7+hMFUgRxPs2FCHZ/LhzeL5/f7Tm o7n4AXqlBb+MiMoLrQ+rtmgoW9TstQsv8KwTsPZ7SV6Gio7orf5UI6m37mN1Refndc6m MCE6wMB3Mu43fDvh7H9aPkopC/BGKN+tNm3Gs0PH7IoqXb0JH2Jw4AbalpHuWQfJxn4h /GxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VYELtnjA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id bf27si640990edb.140.2020.11.10.20.52.24; Tue, 10 Nov 2020 20:52:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VYELtnjA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1725898AbgKKEu6 (ORCPT + 99 others); Tue, 10 Nov 2020 23:50:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725828AbgKKEu5 (ORCPT ); Tue, 10 Nov 2020 23:50:57 -0500 Received: from mail-oi1-x244.google.com (mail-oi1-x244.google.com [IPv6:2607:f8b0:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97330C0613D6 for ; Tue, 10 Nov 2020 20:50:57 -0800 (PST) Received: by mail-oi1-x244.google.com with SMTP id t16so759279oie.11 for ; Tue, 10 Nov 2020 20:50:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=TgiY8fdn90Uls12wgNKgzxp/Onwmpb1Il5B5p1lyVJU=; b=VYELtnjAV5Ls0k8ZJfZ7zELRqNDR4/IyfkC7nMGABdnGpdE/Zb9PwJSfoGKyU92gq4 7UiACwrRNIlrGnDXh7NNg/dHqywhUpUiTH97Emo5n0MQ/QsUQfNb1lkeRe/4BZeWAKW9 5HbP/pl2a7ByW7MhaXMYXIgqX4pKvlIufMf9WOq182jsV7cCbhTBC0ukB46Zc191LFey BX8SF6f4cJdzGZ39ZM61Q2WktAgjlYYaJspMZjosGtj/3qA9+WDGkAj4MoH3qi7ysQ6J 9/krSDyGAmatCg5vZTv3xqVOKoGRIUTREQBkirg6ltpjdDKe8J5DE9uUYjU+SB1XyAX1 vh7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=TgiY8fdn90Uls12wgNKgzxp/Onwmpb1Il5B5p1lyVJU=; b=BznyV9UnbKoDn4/7Y76CHNHho9jONcezwzkNLr88A7zTxJxVEQECKuFWFXZQkMow0B G23IDkBtGFdF5D8rboSWnDFsmTer5kK6uAZVSbKD++zHTe0YW0MysYXPppRyTxbGyO9l N1hqiQV4hnb9/p5efEijkIZgf+3Fj9dBimL3pwgZAVnpZfLeTZQDouTvXHRzh/6fTZEp mxfw8qStNO+dbtQOdhdpANMHwF5xYaYYHUGaTUL+fHXxZKFRpfOFthhcP3sUjeOG5Qgq N6Fd+aGQ9NPf740AhdeJiFgkVTXLtPBgZtW/+PS4aHq3yU7D00Ev6KxNt5lp38Rb0bC9 CKYg== X-Gm-Message-State: AOAM531euELJxNi8y82kNXtpe16aajXF3PB990rltqnb/odimcwsB6+U 1aTnhagQdWafrCLMV0E1wEDzzA== X-Received: by 2002:aca:afd3:: with SMTP id y202mr968450oie.135.1605070256818; Tue, 10 Nov 2020 20:50:56 -0800 (PST) Received: from builder.lan (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id l19sm277147otp.65.2020.11.10.20.50.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 20:50:56 -0800 (PST) Date: Tue, 10 Nov 2020 22:50:54 -0600 From: Bjorn Andersson To: Akhil P Oommen Cc: freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, robh@kernel.org, dri-devel@freedesktop.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, jcrouse@codeaurora.org, mka@chromium.org, robdclark@gmail.com, dianders@chromium.org Subject: Re: [PATCH v5 2/3] arm64: dts: qcom: sc7180: Add gpu cooling support Message-ID: <20201111045054.GE173948@builder.lan> References: <1604054832-3114-1-git-send-email-akhilpo@codeaurora.org> <1604054832-3114-2-git-send-email-akhilpo@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1604054832-3114-2-git-send-email-akhilpo@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 30 Oct 05:47 CDT 2020, Akhil P Oommen wrote: > Add cooling-cells property and the cooling maps for the gpu tzones > to support GPU cooling. > > Signed-off-by: Akhil P Oommen > Reviewed-by: Matthias Kaehlcke > --- > arch/arm64/boot/dts/qcom/sc7180.dtsi | 30 +++++++++++++++++++++++------- > 1 file changed, 23 insertions(+), 7 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi > index d46b383..8e2000c 100644 > --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi > @@ -2,7 +2,7 @@ > /* > * SC7180 SoC device tree source > * > - * Copyright (c) 2019, The Linux Foundation. All rights reserved. > + * Copyright (c) 2019-20, The Linux Foundation. All rights reserved. I took the liberty of spelling out 2020 here, as I applied this patch. Regards, Bjorn > */ > > #include > @@ -1886,6 +1886,8 @@ > operating-points-v2 = <&gpu_opp_table>; > qcom,gmu = <&gmu>; > > + #cooling-cells = <2>; > + > interconnects = <&gem_noc MASTER_GFX3D &mc_virt SLAVE_EBI1>; > interconnect-names = "gfx-mem"; > > @@ -3825,16 +3827,16 @@ > }; > > gpuss0-thermal { > - polling-delay-passive = <0>; > + polling-delay-passive = <100>; > polling-delay = <0>; > > thermal-sensors = <&tsens0 13>; > > trips { > gpuss0_alert0: trip-point0 { > - temperature = <90000>; > + temperature = <95000>; > hysteresis = <2000>; > - type = "hot"; > + type = "passive"; > }; > > gpuss0_crit: gpuss0_crit { > @@ -3843,19 +3845,26 @@ > type = "critical"; > }; > }; > + > + cooling-maps { > + map0 { > + trip = <&gpuss0_alert0>; > + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + }; > + }; > }; > > gpuss1-thermal { > - polling-delay-passive = <0>; > + polling-delay-passive = <100>; > polling-delay = <0>; > > thermal-sensors = <&tsens0 14>; > > trips { > gpuss1_alert0: trip-point0 { > - temperature = <90000>; > + temperature = <95000>; > hysteresis = <2000>; > - type = "hot"; > + type = "passive"; > }; > > gpuss1_crit: gpuss1_crit { > @@ -3864,6 +3873,13 @@ > type = "critical"; > }; > }; > + > + cooling-maps { > + map0 { > + trip = <&gpuss1_alert0>; > + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + }; > + }; > }; > > aoss1-thermal { > -- > 2.7.4 >