Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6544035rdb; Tue, 2 Jan 2024 05:38:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IGocICQVL45fjURe6tPp6CESHEZ7O/N8XL62OuiI7f4oTxBnpLyoHfGP8gobi3M+uxoA2Hg X-Received: by 2002:a0d:d615:0:b0:5d7:1941:2c15 with SMTP id y21-20020a0dd615000000b005d719412c15mr9493445ywd.66.1704202691085; Tue, 02 Jan 2024 05:38:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704202691; cv=none; d=google.com; s=arc-20160816; b=r5HHg6jAA23+QR4zPvT6k6FhnM76Yby+n7ZWp2g40JtWNSLLgF3QcTny2sq0ys/wqw CCrfshtUUuFDwuJNxRqItAocxnLGD5jRZFJXddSBXKYPdqTpYOxtn0hE9nNZ0lP7u5Ac 2ZoTAorYWiLRkXAPu9b4jB7aFKtNYbsrMy3g5vaZBC5tAFquudkz0sVix8GaFjeU107n 7iBd8LoTwx15s4OGtQQI2kPTsJPDvmrLlQR04cf6I/v8gsQTl1aWM8qXoy+/Ys2GtGuQ 9qQWskhEJL02YL9eI5PawXPKKPyl7LVI8zjRhTlHsCZpeUh5X3RTAl6h767+AZ/HHfyR 8MBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=8OWoK94k92VUFweM74Xj1aKbQd5zya8fwaKZhm4CVmg=; fh=VYpjbPPqx+jvrs1/9qXlyTOIyHHHTMJ7h/2E0zaqoC0=; b=Pt+qyjHOUXLK2H/O3UTykLR9355ngfVpGEsH+/GqFJvlAgydochgx4p4L7wfaslJQV CzYe0g1wFDGKwc+x2YZEqkMTUcvxartrI0QfnEkm193JrwJfMIGJm9RFr7HWjG+R9ynw oOupRMhC04wwDtq1H3lp/Dk6K2Cp0it4DOOd/cAo41km+MsdP7Y02ciAyoYCQ54T6jXv nbsW5JSvtHjf5vmSkgIMIF3FaSRkTQjDfODWmdHgAoehcqBmeUC1JGswkSXNdvMFiV9t wkr8lQkH95sJsTIa3x9Y92EhSgJq/O32yNGEcMHeoh1VwPI/2MKjuJeXKPk2xVFbAu7R gvgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XnsYIjjZ; spf=pass (google.com: domain of linux-kernel+bounces-14419-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14419-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id z15-20020a0cf24f000000b0067f1e9d3a15si26731674qvl.81.2024.01.02.05.38.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 05:38:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14419-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XnsYIjjZ; spf=pass (google.com: domain of linux-kernel+bounces-14419-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14419-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C33EB1C20B2E for ; Tue, 2 Jan 2024 13:38:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0BD5316407; Tue, 2 Jan 2024 13:34:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="XnsYIjjZ" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com [209.85.208.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B3F8815AE7 for ; Tue, 2 Jan 2024 13:34:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-554fe147ddeso6329992a12.3 for ; Tue, 02 Jan 2024 05:34:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704202474; x=1704807274; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=8OWoK94k92VUFweM74Xj1aKbQd5zya8fwaKZhm4CVmg=; b=XnsYIjjZZNuoFgTW02++aePrM2kZJjBFWT3j8WaUWtosp3HLr11oHo4V44l7csyTYu IUcuHAk4nCs4YQxS5EN48162rkL68zR3dmKBJriZ73x0Pm4mJUpIs6cmxcMnA1Ee/S6Y eoBwmG1/QiQfkcMGyZK6wR3mpnb36AXM6LHj2zu2ZhvMjNtlEC/RCPos96R7Dox5uVFq wvvH92ZzN9u+NkhQBRy2q3K+Rn2hHOnVziHbfarYh3ccFScKVyD4q27S74PjMk5aCCOT XTiwuCJNpLe2X7s1vDE4IM0TSJyxubiU1UEuOLYNNXPYe4ckZ6XAWCcKI0szlN/jseIU 6SxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704202474; x=1704807274; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8OWoK94k92VUFweM74Xj1aKbQd5zya8fwaKZhm4CVmg=; b=K3QU3qRxA3KxIsaotVcBgkhcGP5P1dLTIQ52J+ZM4T4rFZNb47qtTWAi/7JRKbnCkM 0AG89Uiki26H9HlRYZNIj4WWCrkoKkc2CAAuNBavhHw5UAe9/ApYF7BmF68NSe7HF7KU eFW4j0k87v0E0lcSKgVdVfNmUp5kAP+GmNFtEPIN+kBDhvMLmcZwvw6kanwPbI1huQ0B f3ziONU7qOCpEcTqhAw2uhM70FeifipRmw1frW55AzxkdtHEK08jLZNVLi6rXXGo9afa DEuyP9wuCfVMEaWSlxk8EB/aB4jZZyQ6Z88KsPOC47BrS/kwAaVS43J/H9X0HjBXNy11 fA+A== X-Gm-Message-State: AOJu0YywviFXXFra1250+pJ868mUglYfkMx/o8gY267v5QCVYl92h19s +/QhT+w9/MHMPeXQkzQ30riL5Mx/IhzrrQ== X-Received: by 2002:a17:906:51c2:b0:a28:c5e:290 with SMTP id v2-20020a17090651c200b00a280c5e0290mr544966ejk.195.1704202473813; Tue, 02 Jan 2024 05:34:33 -0800 (PST) Received: from [10.167.154.1] (178235179036.dynamic-4-waw-k-1-3-0.vectranet.pl. [178.235.179.36]) by smtp.gmail.com with ESMTPSA id u23-20020a170906109700b00a26af5717e9sm10950923eju.42.2024.01.02.05.34.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 05:34:33 -0800 (PST) From: Konrad Dybcio Date: Tue, 02 Jan 2024 14:34:15 +0100 Subject: [PATCH 11/12] arm64: dts: qcom: sm8550: Hook up GPU cooling device Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240102-topic-gpu_cooling-v1-11-fda30c57e353@linaro.org> References: <20240102-topic-gpu_cooling-v1-0-fda30c57e353@linaro.org> In-Reply-To: <20240102-topic-gpu_cooling-v1-0-fda30c57e353@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1704202458; l=3486; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=rW4SZBJO/MEJiHsIskIiQj25wMjK7Vc4dTt0OTlDOT0=; b=XBOYil/f7zB0TAbiezwtYvDkKoayOi71ifq19Dd3g4yC6gyVppwcjHagkNDVq9GVqgkg9sXuc u+F/WN8x7hDAq46XGZtDKEW3j4q6YQR38AuoeAJVwtf3PJdUcZlXztL X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= In order to allow for throttling the GPU, hook up the cooling device to the respective thermal zones. Also, unify the naming scheme of the thermal zones across the tree while at it. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8550.dtsi | 57 ++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi index ee1ba5a8c8fc..692cd85f03fb 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -2012,6 +2012,7 @@ gpu: gpu@3d00000 { operating-points-v2 = <&gpu_opp_table>; qcom,gmu = <&gmu>; + #cooling-cells = <2>; status = "disabled"; @@ -5304,6 +5305,13 @@ gpuss-0-thermal { polling-delay = <0>; thermal-sensors = <&tsens2 1>; + cooling-maps { + map0 { + trip = <&gpu0_junction_config>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { thermal-engine-config { temperature = <125000>; @@ -5336,6 +5344,13 @@ gpuss-1-thermal { polling-delay = <0>; thermal-sensors = <&tsens2 2>; + cooling-maps { + map0 { + trip = <&gpu1_junction_config>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { thermal-engine-config { temperature = <125000>; @@ -5368,6 +5383,13 @@ gpuss-2-thermal { polling-delay = <0>; thermal-sensors = <&tsens2 3>; + cooling-maps { + map0 { + trip = <&gpu2_junction_config>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { thermal-engine-config { temperature = <125000>; @@ -5400,6 +5422,13 @@ gpuss-3-thermal { polling-delay = <0>; thermal-sensors = <&tsens2 4>; + cooling-maps { + map0 { + trip = <&gpu3_junction_config>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { thermal-engine-config { temperature = <125000>; @@ -5432,6 +5461,13 @@ gpuss-4-thermal { polling-delay = <0>; thermal-sensors = <&tsens2 5>; + cooling-maps { + map0 { + trip = <&gpu4_junction_config>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { thermal-engine-config { temperature = <125000>; @@ -5464,6 +5500,13 @@ gpuss-5-thermal { polling-delay = <0>; thermal-sensors = <&tsens2 6>; + cooling-maps { + map0 { + trip = <&gpu5_junction_config>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { thermal-engine-config { temperature = <125000>; @@ -5496,6 +5539,13 @@ gpuss-6-thermal { polling-delay = <0>; thermal-sensors = <&tsens2 7>; + cooling-maps { + map0 { + trip = <&gpu6_junction_config>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { thermal-engine-config { temperature = <125000>; @@ -5528,6 +5578,13 @@ gpuss-7-thermal { polling-delay = <0>; thermal-sensors = <&tsens2 8>; + cooling-maps { + map0 { + trip = <&gpu7_junction_config>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { thermal-engine-config { temperature = <125000>; -- 2.43.0