Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6543870rdb; Tue, 2 Jan 2024 05:37:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IFKfy0CqVjjnM7Mxsu1Hk/eTh+4INsVRygyhPNvk7DxHjwTNqzrhtGC0EOw5IlIio+IwOq5 X-Received: by 2002:a05:6214:4105:b0:67f:7c81:a5d3 with SMTP id kc5-20020a056214410500b0067f7c81a5d3mr24771249qvb.36.1704202669866; Tue, 02 Jan 2024 05:37:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704202669; cv=none; d=google.com; s=arc-20160816; b=UqmF17G7DRk1YYGL+obZ37TLEIkglFeV32tqtHMRlagAC3NTIddkbQUd4K0NTG0G/j xGI32aiap/vCKvTZSOMmY6m9/Bs/gVvwtR3Yhz+MD0K9xre3Q7XhoNC3KkXDln71hESG ofTn2KsU8f5wp4XM6GlijayeR2sXT8fVNRMAuYONKHK1mWAGRniNB26JzFmAMlK0Gr/0 Hrn6q01O8Z6iiXM2bDx9IWJEpAaI3wdzcNbkCQTjWk0c3Oh3v5yVIbbWS70q2+nlsXty scqp8NSAhgQmMiHa1arMfDNFcrPlDBp8zPpppcKrN4qdyiU27BUVgYRukXSFThxp8FUm hrwQ== 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=kn6ZcGR++MLyZKYtulEm7pL4y4QPEqxKkTxTEz9NJCo=; fh=VYpjbPPqx+jvrs1/9qXlyTOIyHHHTMJ7h/2E0zaqoC0=; b=nwHLgTU1PAfS1T2kSgfJL3nZEs8FM0cqiOJQFmUp9YS+Do7/z/zMY+tPkI9NEdbaWp fdALH2LCMZFt74X2ItOlhfYf1k/bcaG2Ab3pp8Lv1TrQ/G0chQoqMKT+u63SsVgjh66r TpJwGZ1xk1G3ehGDbZTI687l17ikqyPEGTVPhVpUvJciG1+nD2OnNtkaPVp4WMPqXwmY FXJi19/cnOkbD7LRDyQ5lMISXJtczWOovJ/fbbF1QAykS7Qk32gLcyn9v/xkrJFQJ4bh E+99dS14lP+UhrenKqTcuZ2thwUL1oLz2C0QmKd9v6QSaToN4byQezcFnnpvFV7SsL8C 6rlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xJ1vpSlv; spf=pass (google.com: domain of linux-kernel+bounces-14418-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14418-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. [147.75.199.223]) by mx.google.com with ESMTPS id a16-20020a0cc590000000b006805f841619si13743580qvj.284.2024.01.02.05.37.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 05:37:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14418-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xJ1vpSlv; spf=pass (google.com: domain of linux-kernel+bounces-14418-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14418-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 8FB911C22142 for ; Tue, 2 Jan 2024 13:37:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C4BE15AFC; Tue, 2 Jan 2024 13:34:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="xJ1vpSlv" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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 37C9815AD3 for ; Tue, 2 Jan 2024 13:34:33 +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-ej1-f43.google.com with SMTP id a640c23a62f3a-a2819e25069so84141266b.0 for ; Tue, 02 Jan 2024 05:34:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704202472; x=1704807272; 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=kn6ZcGR++MLyZKYtulEm7pL4y4QPEqxKkTxTEz9NJCo=; b=xJ1vpSlvQ4WpjA2eLh54Rd6f5XGamBZyMGETp3sWTWZO+/lsjvKUXu4EbOP7OwLcvq gtHqfxDmhvgFwUFigFwCviJ2D3xHpALz5N8NehYzR7OFuDv85BC+mKzGg176DnBExaDr Z/2jhHTz/m+7/DPsfMULF5Dnw66+2kljjBe1oXB1n5UU146NOAF8QksRKFBAuz+sCfE4 Ts6HsdQ+mpdp59uJr+8GUAapjIy7/oKUV2/cNsWm6cI8+p1YDBKGpybw0lKe2Ao97jGe D1dErzf5A50h8xaIOiVcTfI9/0osHJT/9hdQYm0KHpoCye4EcaZM/BtOpmeYHtQBfasn 8a2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704202472; x=1704807272; 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=kn6ZcGR++MLyZKYtulEm7pL4y4QPEqxKkTxTEz9NJCo=; b=VYTHZNpiWIIO/p765TZrr5lCZ4qBhaj766vEIKf7m+uMzwGgR++UdjCh6xSqGQX/u7 OicWIADBNcvNAHCg2GhgDZ0BLWMFzZLehtlCZIR/gLruCtBGepdAawQPpn46pr3KSrrE j+o5kyAM/Cz3+OhrEmNfKNQbVpnbqdMIUYk9NWvvNAsjOpllk/PigoYf07crioKu6ggW qs3cfEf7zi9Gwpf4mgbeZthlgxZ2H8iBfFOAc6spawW+ni6GzID0iNf4ZP8qoDmL5jfb YD0X6q8XrDGh+IZp+Jf3ApcdlPAp7oX9n5/mOu0Fc6yJr24uSjAKx+UuDiRH2Z10Sp7s aGfQ== X-Gm-Message-State: AOJu0YykGCYvLOIZT5Q4qmsPbpoOM+E23UD3E+/7Mro2ls4g8+M5i9Cc bePJcJr2OOziJmUpADwn+OuZ8f6e70P1pg== X-Received: by 2002:a17:906:1988:b0:a27:e0e2:e641 with SMTP id g8-20020a170906198800b00a27e0e2e641mr1874730ejd.19.1704202472564; Tue, 02 Jan 2024 05:34:32 -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.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 05:34:32 -0800 (PST) From: Konrad Dybcio Date: Tue, 02 Jan 2024 14:34:14 +0100 Subject: [PATCH 10/12] arm64: dts: qcom: sm8450: 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-10-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=1883; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=lgxbgRXfXDX4Jn2UaC0FqFuodM62KE9jmIfHnDAxRyI=; b=r1N0BwVrwMRyHsSl/wlgYiyjpYzDxjqQwnnvJPf2fYSr+T2RY6ZNExH/zeL+RLmYR8wlycfOx XoRmgKlx0klDyyJtSzKp6+wyUdh00TiOkXRaPzCXYHLdD+XOmuIDwb6 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, update the trip point label to be more telling, while at it. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8450.dtsi | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi index 01e4dfc4babd..8f5a093c8828 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -2038,6 +2038,7 @@ gpu: gpu@3d00000 { operating-points-v2 = <&gpu_opp_table>; qcom,gmu = <&gmu>; + #cooling-cells = <2>; status = "disabled"; @@ -4890,6 +4891,13 @@ gpu-top-thermal { polling-delay = <0>; thermal-sensors = <&tsens0 14>; + cooling-maps { + map0 { + trip = <&gpu_top_alert0>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { thermal-engine-config { temperature = <125000>; @@ -4909,7 +4917,7 @@ reset-mon-cfg { type = "passive"; }; - gpu0_tj_cfg: tj-cfg { + gpu_top_alert0: trip-point0 { temperature = <95000>; hysteresis = <5000>; type = "passive"; @@ -4922,6 +4930,13 @@ gpu-bottom-thermal { polling-delay = <0>; thermal-sensors = <&tsens0 15>; + cooling-maps { + map0 { + trip = <&gpu_bottom_alert0>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { thermal-engine-config { temperature = <125000>; @@ -4941,7 +4956,7 @@ reset-mon-cfg { type = "passive"; }; - gpu1_tj_cfg: tj-cfg { + gpu_bottom_alert0: trip-point0 { temperature = <95000>; hysteresis = <5000>; type = "passive"; -- 2.43.0