Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4495120pxt; Wed, 11 Aug 2021 07:21:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+Ur7d1U/wD5TyeBTrjVeP561xHJ1yNJb0eXZ3oeMlPX6FjaON6S5hfLsiieRjg2y0z2Uz X-Received: by 2002:a5d:9599:: with SMTP id a25mr610469ioo.86.1628691674429; Wed, 11 Aug 2021 07:21:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628691674; cv=none; d=google.com; s=arc-20160816; b=bLH+s3BipajJerVwfSa1v+eX3XCk1QqSvE5McdgAHGsTvZopQ5+neyNmsWvHsHtifu cqaA+PeMINWEl/vYfmDvRFyRSezoU3r5Ghu3qfKBBfrx2RkBqpTDzFNRJzV1MIfPomf+ RSfSgMXl3OKgR6VGwW7Auac9gtRJKYeXi15HMwfvp2kaMnV3+0r0zHj98aHYOj1zrwdz CeXRl09Q/PpTevy+vIqerbue9QjjN4VP6CcEfqQTnLTCcZ+z5O4Mg0doMd1xe1Ydp0r3 Odc1Vnb7+IHdvB422SkbNu8xLpvbIk6JCDMdOqkeIbtrp2MhpOUJgmOYCcwKpuFQdR8n YReA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dmarc-filter:sender:dkim-signature; bh=lLO4eFNHdUCV1ee4Fqm1c0UbZaPJfKpMDZtjZ/5Hlzo=; b=Y6O+CFMKYxP4TzXEWbyKz6/IPToSQRLrdjWqIdPJvwxcDQDGqxFRpochRZaLJpiTZw jgRNln92bEuEOVkf5wOtTXQdvVLdm4VLONNVL3tfS1zwMHVeD+ZiTTKYADOJDQf27izi 7K+OpUjVY08VzvF1XsyzykEiW24JZ1rkk7crsE9GmmItCbAJ0ItGxHPcmAf1wonsDfg+ wHeHpFplkZefZNs10bTm52mL25jYVRV+ZMhdfRH4GktUX/Q0p+k4sHQxDwCbN7WfHBiS B0xjnLtFhE8q6+kmb10jm2qT5iNB42k3wMdPws5aunqJC3Y9rs9KCiXohGzGzUkSi8kq irbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="P/MBRM9e"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c10si8581617iow.93.2021.08.11.07.20.57; Wed, 11 Aug 2021 07:21:14 -0700 (PDT) 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=@mg.codeaurora.org header.s=smtp header.b="P/MBRM9e"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232341AbhHKOTe (ORCPT + 99 others); Wed, 11 Aug 2021 10:19:34 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:43476 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232444AbhHKOTd (ORCPT ); Wed, 11 Aug 2021 10:19:33 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1628691550; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=lLO4eFNHdUCV1ee4Fqm1c0UbZaPJfKpMDZtjZ/5Hlzo=; b=P/MBRM9e2C+V48BWOZ1FIDIiH1lSMXTHEJkXchRn+LDmRaNd2luN+eooNbUZjYgw2xkXBPcQ DWExx1d5Y+Wpm0HLFfuCo2LiRamM02A85M7FNk/jkIelMzN123kJKpdjpI+Z1Dnp94O5QL6X WlkipMJrROxDjLmFASvQB+81vPw= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-west-2.postgun.com with SMTP id 6113dc4eb14e7e2ecb772009 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 11 Aug 2021 14:18:54 GMT Sender: akhilpo=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 12915C4360C; Wed, 11 Aug 2021 14:18:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from hyd-lnxbld559.qualcomm.com (unknown [202.46.22.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: akhilpo) by smtp.codeaurora.org (Postfix) with ESMTPSA id 8582CC433F1; Wed, 11 Aug 2021 14:18:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 8582CC433F1 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=akhilpo@codeaurora.org From: Akhil P Oommen To: freedreno , dri-devel@lists.freedesktop.org, OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS , linux-arm-msm@vger.kernel.org, Stephen Boyd , Bjorn Andersson , Rob Herring , Manaf Meethalavalappu Pallikunhi Cc: Rob Clark , Douglas Anderson , Jordan Crouse , Jonathan Marek , Matthias Kaehlcke , Andy Gross , linux-kernel@vger.kernel.org Subject: [PATCH v4 2/2] arm64: dts: qcom: sc7280: Add gpu thermal zone cooling support Date: Wed, 11 Aug 2021 19:48:36 +0530 Message-Id: <20210811194758.v4.2.Iea8318d85a23f0167fd523ea85df5630147649f9@changeid> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1628691516-33624-1-git-send-email-akhilpo@codeaurora.org> References: <1628691516-33624-1-git-send-email-akhilpo@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Manaf Meethalavalappu Pallikunhi Add cooling-cells property and the cooling maps for the gpu thermal zones to support GPU thermal cooling. Signed-off-by: Manaf Meethalavalappu Pallikunhi Signed-off-by: Akhil P Oommen --- (no changes since v1) arch/arm64/boot/dts/qcom/sc7280.dtsi | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi index b9006d8..cd2bbf0 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -592,7 +592,7 @@ qcom,bcm-voters = <&apps_bcm_voter>; }; - gpu@3d00000 { + gpu: gpu@3d00000 { compatible = "qcom,adreno-635.0", "qcom,adreno"; #stream-id-cells = <16>; reg = <0 0x03d00000 0 0x40000>, @@ -607,6 +607,7 @@ qcom,gmu = <&gmu>; interconnects = <&gem_noc MASTER_GFX3D 0 &mc_virt SLAVE_EBI1 0>; interconnect-names = "gfx-mem"; + #cooling-cells = <2>; gpu_opp_table: opp-table { compatible = "operating-points-v2"; @@ -2523,16 +2524,16 @@ }; gpuss0-thermal { - polling-delay-passive = <0>; + polling-delay-passive = <100>; polling-delay = <0>; thermal-sensors = <&tsens1 1>; trips { gpuss0_alert0: trip-point0 { - temperature = <90000>; + temperature = <95000>; hysteresis = <2000>; - type = "hot"; + type = "passive"; }; gpuss0_crit: gpuss0-crit { @@ -2541,19 +2542,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 = <&tsens1 2>; trips { gpuss1_alert0: trip-point0 { - temperature = <90000>; + temperature = <95000>; hysteresis = <2000>; - type = "hot"; + type = "passive"; }; gpuss1_crit: gpuss1-crit { @@ -2562,6 +2570,13 @@ type = "critical"; }; }; + + cooling-maps { + map0 { + trip = <&gpuss1_alert0>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; nspss0-thermal { -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation.