Message ID | 20240102-topic-gpu_cooling-v1-9-fda30c57e353@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-14417-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp4448153dyb; Tue, 2 Jan 2024 05:37:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IHUvZtx3MyWWYZmZPAqS03OdOiWT1jnD77VE0+33hrvn3ldHCmRkIjTI7V84PEG67cyW8mT X-Received: by 2002:a05:622a:56:b0:427:9356:3efe with SMTP id y22-20020a05622a005600b0042793563efemr28745142qtw.30.1704202678462; Tue, 02 Jan 2024 05:37:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704202678; cv=none; d=google.com; s=arc-20160816; b=xbrgAYG3R36DMkDnVZy+L5hf1H6RvkmXJO3PZ40EIkH1kicOx7CU4HJJ3AnbTPbMZK unfsfUIQsOU3GLIJwE+hNnMV4sQ4GBZg3jKiExMN2YY3vNiV2bQjQLAupp0aMM6iV1GI dDpZHAx9gLVTNx8CBwjl8i3ozjh+A/NEDfCwnJQO/2TG4RQgZGCXld/5Ufv6FMLM1f3O C+MeDy1lmjNo74ti2mUHR9XTQ4qd3Ta5bJCXaRvsv8l7/dVCntI1RwupMfPU2Kivrm0Q wSQngizOW5v92iBirzNZnbfdevcSHXY/NTCPLK4Xk1H9EOEbihFQvfhd5QgDSlfaa8ms LPeg== 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=5q9S+7Fya+VTzBEqrdZKh6qCvhpW7mOyZby8yv38yTU=; fh=VYpjbPPqx+jvrs1/9qXlyTOIyHHHTMJ7h/2E0zaqoC0=; b=a7z5MoqVbxCmGMGqcOPPsqXWhA8PQC2hwxCY1UNGZ2TcN+HEbuM/BNsAKFh6AQ5hjf r03+RcW2au+3yzhdWAa5fg0+fhipwQv8OQy7r4YUncEZqpYMy4j1S4JKZL0+XWhfyEJL 7YuUdim19VhDvv6rxqbH11QuzsZtR/w22IJfOU9uc35F44ZwvHy8P/cxgoJo8IE00XjI XZ1Ux1kXSg8MP1Q75P31uo+fCTbaqH/XRcLzioEAtTL5yfmBX+VWyV1QvZZgOTTgyelH kIiZPZ4OvpXTCo6MiiPobYw0tHJLmtYXUozaLp6kBXHarNM9H/qiUkVep9nizAtUf3Go 5rmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mvfd2kz8; spf=pass (google.com: domain of linux-kernel+bounces-14417-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14417-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c5-20020ac85a85000000b00425f2a440a0si26658253qtc.364.2024.01.02.05.37.58 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 05:37:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14417-ouuuleilei=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=mvfd2kz8; spf=pass (google.com: domain of linux-kernel+bounces-14417-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14417-ouuuleilei=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 42CF71C220DA for <ouuuleilei@gmail.com>; Tue, 2 Jan 2024 13:37:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3DE0915EA1; Tue, 2 Jan 2024 13:34:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="mvfd2kz8" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (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 39B0015AC7 for <linux-kernel@vger.kernel.org>; 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-wr1-f52.google.com with SMTP id ffacd0b85a97d-33748c4f33dso401597f8f.1 for <linux-kernel@vger.kernel.org>; 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=1704202471; x=1704807271; 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=5q9S+7Fya+VTzBEqrdZKh6qCvhpW7mOyZby8yv38yTU=; b=mvfd2kz8wkm/VZX991ZItOJdbjjjSGZuGpLTxLpAUkc9yD+2zt6p8nh7CJ8PS2xyX1 SS6s2AwqhMIiOIdPQntoPtGSN2tGVePAtJSlJZTVE2SGGjgwWSqI1IlvaxSMxQddrHSr 3Mj1r980L8DKNQ3djjzbACR4mXDhCecTZHUzPgd1LemUC3WwVuUe4/WOwQV42y3Z26oY MiuYy0ehYt6dI2EXLge/YH1KTQFlWHkzbV4z3vZd3DndTb2tGaN1PuPxfewq/C9XNFiF mMO75Mm304nYwmw/F+2OPQZKF2lS7xrWjI8KtKtlcGtSUDCNYQhhVe+lfejKs4Vy60t8 A3xQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704202471; x=1704807271; 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=5q9S+7Fya+VTzBEqrdZKh6qCvhpW7mOyZby8yv38yTU=; b=POt/9StK+YYwViT9Hg0y0XIyWqczJK3cZwA2+jK0eLSoLywNrnHqQZIfs/n17vm66I yU+3b368aD+jQBcpX11bPlSTTZ7eTP0ll4xQx+ftwiSU/dIGWHgarryMSDIpd0feza/8 F8PKrwATha6Aiiw/OEM6QuWKhy2iWswOg+hBKcLImxlCzQeoMfWSY+dLWiZifCj1Kltc xmhaiS/iBvcF2+PeE4N+m20V1SYc1AmEYFNcBON3XJaB1dRICs7+v4LC+M5Pvu+00Mts Ft9ot6MOPGJjx1u4e4sl0D7UnRPEM5WhDKzuJGGIv5PjVpm5WlO8oudUuNmjxyfEjyhE 9g8g== X-Gm-Message-State: AOJu0YxxqSJsWNa+KwU/6PkbMz5gfygbLUg5RHqJas+JctlJG3oQEp9G zgAiYVMN0thWy9T4l9sztMOl4BrGKPhlWA== X-Received: by 2002:a05:600c:1d2a:b0:40d:5bc4:4e7f with SMTP id l42-20020a05600c1d2a00b0040d5bc44e7fmr5580444wms.20.1704202471606; Tue, 02 Jan 2024 05:34:31 -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.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 05:34:29 -0800 (PST) From: Konrad Dybcio <konrad.dybcio@linaro.org> Date: Tue, 02 Jan 2024 14:34:13 +0100 Subject: [PATCH 09/12] arm64: dts: qcom: sm8350: Hook up GPU cooling device Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240102-topic-gpu_cooling-v1-9-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 <andersson@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org> Cc: Marijn Suijten <marijn.suijten@somainline.org>, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio <konrad.dybcio@linaro.org> X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1704202458; l=1563; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=EpO0KJ3F+IVJx7ZjcCfSRbGs6QkZ1fpSqdd5/2bxjR0=; b=n/bAhKc/aou494PJN57B7ksru+9pBNU1UF1o7bzN6Zrgx94HklFbYllHnPTQCujRMPkEJKC3Y 8e1IZqMQa22BvQSyZtVWkDcratnlruq+QkLj+N0zn615Qr+LzkQnIMk X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786986027763496061 X-GMAIL-MSGID: 1786986027763496061 |
Series |
Hook up GPU cooling on most qcom arm64 platforms
|
|
Commit Message
Konrad Dybcio
Jan. 2, 2024, 1:34 p.m. UTC
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 <konrad.dybcio@linaro.org>
---
arch/arm64/boot/dts/qcom/sm8350.dtsi | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
Comments
On Tue, 2 Jan 2024 at 15:37, Konrad Dybcio <konrad.dybcio@linaro.org> wrote: > > 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 <konrad.dybcio@linaro.org> > --- > arch/arm64/boot/dts/qcom/sm8350.dtsi | 19 +++++++++++++++++-- > 1 file changed, 17 insertions(+), 2 deletions(-) > Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index e78c83a897c2..1c6f80b14d09 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -1847,6 +1847,7 @@ gpu: gpu@3d00000 { operating-points-v2 = <&gpu_opp_table>; qcom,gmu = <&gmu>; + #cooling-cells = <2>; status = "disabled"; @@ -4214,8 +4215,15 @@ gpu-top-thermal { thermal-sensors = <&tsens1 1>; + cooling-maps { + map0 { + trip = <&gpu_top_alert0>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { - gpu1_alert0: trip-point0 { + gpu_top_alert0: trip-point0 { temperature = <90000>; hysteresis = <1000>; type = "hot"; @@ -4229,8 +4237,15 @@ gpu-bottom-thermal { thermal-sensors = <&tsens1 2>; + cooling-maps { + map0 { + trip = <&gpu_bottom_alert0>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { - gpu2_alert0: trip-point0 { + gpu_bottom_alert0: trip-point0 { temperature = <90000>; hysteresis = <1000>; type = "hot";