Message ID | 20240102-topic-gpu_cooling-v1-8-fda30c57e353@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-14416-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp4447926dyb; Tue, 2 Jan 2024 05:37:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IHklRqLZsoYRh0/m4ILj5jaNHLnuyeUFfh6vwFQYYHqTyfR8foFpOnIpGaJ8MYqbIjUa74o X-Received: by 2002:a50:c25a:0:b0:555:30d3:f252 with SMTP id t26-20020a50c25a000000b0055530d3f252mr6351794edf.58.1704202654097; Tue, 02 Jan 2024 05:37:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704202654; cv=none; d=google.com; s=arc-20160816; b=O0TZDyr+6Dn/KHg8kpTUvDz2Ws0FVfSzV7AzL0w4+usicYClfQB1P6N9uhn678pqvz 90TKicpM97Jb9NcGFpFQsCEEfVR5MJb7kt60izwdXzMRX3gbU9xi8fBHqNpRdr8NVKWo yH8X98bcGYXzDetRa1PqY9h4g/OSZ7ewFnTQ5N96O9eF4TOilzD+/j+pZxm5sIoA86MT fXH2paCy+FI1tSkw0FS5vg3irVBWZ/dFQww0dlrsq1t7A6f3YehtW6JcvvP6XUgesMMO 7gnIY59dAqRpXfmxCZgaBmu8GVJdC1N6wmedcXcfyP6YQvjLBT1glEKrkx55CxCSLhvP VN/g== 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=MkfALVEFrCG1/CmRPVW4W3XftugRTQcsk6w6+JqNKcA=; fh=VYpjbPPqx+jvrs1/9qXlyTOIyHHHTMJ7h/2E0zaqoC0=; b=PFX1Ua8NFnqR2n6erI1FDNbeLNoaGjBnjl8Hqqv9TGwdvAF0wF4IvkGIxClYdszSMS wQ/EX/fIsrP6nsUwfDDYQom2zM1vq31iYC2rD3Ao2jEg5EuSUlALo3cHiLvi1BCeagzB KYf1XlkL7wm0P3N/B9zVtQAyfzM53Q0qrKtAzMHnUl0KlhUK+Cc3UC7KGoA2O5hBKPIQ G8JLOelXDuUZazDVNRoTMCIeUPW7rcmm0i6S2UeBbeVBSML5lpFALpA7XscUeGIGn29k Deh0W64nRtYeWKHNhOkKyhPRNlt0NjMXMnFo1/WCc4KsyCxh3YeMIKTfAqWWvoRJoRC6 +J+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lITZMO+8; spf=pass (google.com: domain of linux-kernel+bounces-14416-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14416-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id di19-20020a056402319300b0055340e62760si11428565edb.505.2024.01.02.05.37.33 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 05:37:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14416-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lITZMO+8; spf=pass (google.com: domain of linux-kernel+bounces-14416-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14416-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 am.mirrors.kernel.org (Postfix) with ESMTPS id B1F9D1F22B45 for <ouuuleilei@gmail.com>; Tue, 2 Jan 2024 13:37:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 73A3F15AD5; Tue, 2 Jan 2024 13:34:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="lITZMO+8" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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 665FB154A9 for <linux-kernel@vger.kernel.org>; Tue, 2 Jan 2024 13:34:30 +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-f45.google.com with SMTP id a640c23a62f3a-a27e323fdd3so152312766b.2 for <linux-kernel@vger.kernel.org>; Tue, 02 Jan 2024 05:34:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704202469; x=1704807269; 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=MkfALVEFrCG1/CmRPVW4W3XftugRTQcsk6w6+JqNKcA=; b=lITZMO+8hC4nmHJYEvADQqW5uQyHr6iHDdEntzr8m1Ydvp7Dm+uPaLxNLk5NqjcwjD ceR8ECmQmu4zV+xuVfu7g1TXMc2RiqquPihdyuE/ZiBSsbS+2lRWxyJfk5kZxL1qeJZu KDSQkq6TRCNjCGyjoSohDm0xdtfmBdP6VxfY1Y5JC6V31Ou3cEMdQW2U5Mxb6iOz1fUA nJPi/u9eEFh9CzAXXwgM7h7p1oke6Yvp8ariB/0DWcieUb38QcZ6aJ+ZWhoDjzECWGXG CWxi2P06KN2WhhkDmfmpj1nrXLgqACvlc4rkV2P01VRmtiVTfOzlGFZhey/2chsX9EZJ 88nQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704202469; x=1704807269; 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=MkfALVEFrCG1/CmRPVW4W3XftugRTQcsk6w6+JqNKcA=; b=EIBZEF774mRfsp8BNHHnj8fqp6Cw1FPDnH704Prd10ohBs5jZjXU40mF1USryG70EB Mb4kIQBdQJ4Gkzs9RkhdMeeXRwUbBHHLoTas6SvbShNYUVa0W4prmdTGnIoN+38MV9OG Kjek/ou8ELpxDs+xl505jo5GMc0pEIF6NCJLES4Kk9Qf6WxG7ZYAwEGMnTTRo6y4Inw/ odr2S6gGH//8txTgZbMcl3luuGpfn0TbXODt24mFyuC9mDUc+9dc0XCFCIgB16LTFStQ 8JI6wrpG5s4e8Vjb45rcN33PZQs6VmefQ3g0XJRL0GpBSfFggFPKGQ7dSC/xEbPAQHAi kfXQ== X-Gm-Message-State: AOJu0YzY45ifF9tvzSDKdOarLul3ia4YTpYpDXiG4D3WErJdA67xdsll RuN6ke/UI6w0id/8lWRSbxr+xEv8vH2Zvw== X-Received: by 2002:a17:906:1c4f:b0:a28:78b7:78a8 with SMTP id l15-20020a1709061c4f00b00a2878b778a8mr27376ejg.62.1704202468829; Tue, 02 Jan 2024 05:34:28 -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.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 05:34:28 -0800 (PST) From: Konrad Dybcio <konrad.dybcio@linaro.org> Date: Tue, 02 Jan 2024 14:34:12 +0100 Subject: [PATCH 08/12] arm64: dts: qcom: sm8250: 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-8-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=1569; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=iFnGHk+ZK2tVmuhe34jg6IepMU+CLbbATUG+enVgvts=; b=pAn29b2XQnVV1b4D94YHc0qXd0xXVEEoWngkk1UMaRiQGmjsCYHxzUP61qoM3yKEVqFuOBXbz /z9Of7ZRwJUBkzC/yXRWQHd4eRFxBRIiXTrc3f7bUxdGuU39/4/XYjF X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786986002264139153 X-GMAIL-MSGID: 1786986002264139153 |
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/sm8250.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/sm8250.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/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 760501c1301a..03bf49818798 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -2888,6 +2888,7 @@ gpu: gpu@3d00000 { nvmem-cells = <&gpu_speed_bin>; nvmem-cell-names = "speed_bin"; + #cooling-cells = <2>; status = "disabled"; @@ -6791,8 +6792,15 @@ gpu-top-thermal { thermal-sensors = <&tsens0 15>; + 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 = <2000>; type = "hot"; @@ -6926,8 +6934,15 @@ gpu-bottom-thermal { thermal-sensors = <&tsens1 8>; + 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 = <2000>; type = "hot";