Message ID | 20240102-topic-gpu_cooling-v1-4-fda30c57e353@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-14412-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp4447496dyb; Tue, 2 Jan 2024 05:36:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IEGBvWkZJcsQpPRKRHbDXRZcsCDF5BwuC1Xehe2csfLRAy6jYvztkl5PHaNFVfNU12D96HF X-Received: by 2002:a81:9a56:0:b0:5f2:2ec7:29c4 with SMTP id r83-20020a819a56000000b005f22ec729c4mr1872889ywg.3.1704202597922; Tue, 02 Jan 2024 05:36:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704202597; cv=none; d=google.com; s=arc-20160816; b=Bye27IbfAD+Ifpx1ykbuE9wKBTyNO0eRaIqHO3pDxkAcU0LKblYkzrKfSpT/i2QBC0 1vngea2NwNnL6RSEX7LxVgbr6Y9cluos1kpgGP2FflXEREwp1yazUPSF3do421uCZLsr ojCq68xWQh263Ar92hu1XpT0S42bCYhEzMWIKT92CuZu71Cyc24rAMOHH00kcm0Hql6y jp6/Bk/idZwC+Z8m8Pao6AC44JsStVdgwgBeclY0IU58mTZSIP0fxeAFG5nonjPIPiJa SnprY70zcty+E27jXvY/K3q7xjWT47PWxKZcbcpHgUPBPtmzktO1jGa9ngGEaDaK2P63 v44A== 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=1VbT3u/laiWQQatkONtMcfkDlY0gjlRgz2VM69wh52k=; fh=VYpjbPPqx+jvrs1/9qXlyTOIyHHHTMJ7h/2E0zaqoC0=; b=YNwEZ+2WeN22nD7Sa9RNn36QHydtJ4Yw4QvqvTHhwfva3l+CI9S1TY7bUKHHPurHT6 Wwsof9H7TaCRkv1XAQALrlWmijSK76MiQDC5STBjtBMoxeGZVCMwyk3jQaR8QMqqYz8t v+oW7UpMCt7bro4tZxmQEFpI3ZrEpyWLfXR15p8QgUNx5n8UXP6A/CU2sncn7oYJ5gyu XdaJOe32edXAfwGAuS5EpJkaEdQHIY/xLCO5ZanV9qmwzjpp+e/a4Age6Pcc6GTqH2oP GeTqZVeuhhjJ4ejMBcmYR3L0bxDNHLRstvUo8RLjz95JAMlU15gkH5/K2Swehcb6Ute5 idfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=urO+KkNq; spf=pass (google.com: domain of linux-kernel+bounces-14412-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14412-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 n8-20020ae9c308000000b0078166040abesi11732964qkg.86.2024.01.02.05.36.37 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 05:36:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14412-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=urO+KkNq; spf=pass (google.com: domain of linux-kernel+bounces-14412-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14412-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 B38241C20A51 for <ouuuleilei@gmail.com>; Tue, 2 Jan 2024 13:36:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 29E7411C8A; Tue, 2 Jan 2024 13:34:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="urO+KkNq" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (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 DEC9D12E7E for <linux-kernel@vger.kernel.org>; Tue, 2 Jan 2024 13:34:25 +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-f51.google.com with SMTP id a640c23a62f3a-a279ce3aab9so314974566b.0 for <linux-kernel@vger.kernel.org>; Tue, 02 Jan 2024 05:34:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704202464; x=1704807264; 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=1VbT3u/laiWQQatkONtMcfkDlY0gjlRgz2VM69wh52k=; b=urO+KkNq4iaMqCg7ZyvCREWW+MQ0pFGfBaQDo5PM/LBbjTXahNhHaED9E5zhg3lFxa j4p35mk5ixnSkgdVcitYmmnTdgtmalz6hf1N/lOhlnjWelvoGCp9vmR/X5QYACvIR9U8 TUJqp1e5ByJAPlaLVIuUhjnAGo0yqRKfIlsaTVi1loCmu7a64XWVq5SzPyJofxnp68r1 5j1rc5ysKQB0M5sX1WL17ocvk99fngP3Rwvr7qXoV1Y7TPwmT58HwAw49zphblZUZ9lF 6MVXqcCB08+1RrVkUNP3vG+AEL6Mooe3CfahWIw5a7ZHQPg2iQO2nfkQrsHfIl0kGeb0 ureQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704202464; x=1704807264; 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=1VbT3u/laiWQQatkONtMcfkDlY0gjlRgz2VM69wh52k=; b=C980e6yJ2EnyLynQuwKKAcTJZXgFCEOy9T2IgYRf0vHhzOVtf1LMUUeHlq1T7fjHo1 Lqmmrnn6h7fYmZLsRM32rXQdG8BPA9/mimEFJfwqFuoAWWZC5jMonuXlMaA3gR7o7Kk/ PeC8CNNxgxVByxpm5J9iNOQys1CbLWAJeND/Sh7rwIJKMHGCPd7gqdBK0IDUfxqDQKrw pRE5JOQlf0j7TzYbVfntycVvbehJW5Rs3pA3+MdlESndUR69KBV9yPFMKIUjN5s/9F3Z OSf05xKIuqcd7xxh943Wdw5YEXwuVeIN+DfY6beZdJtxHyNclenj12a3iVfyfhr0omtP KwmQ== X-Gm-Message-State: AOJu0Yyu09uRA09fqN+9tgxwmlHOsBc53NdBDNgs1EoIFnOWTNH8MtyM Iy/sqpdeKrzjpuj1M9GMgieuMetpvNSohw== X-Received: by 2002:a17:907:25c9:b0:a28:211:f4bc with SMTP id ae9-20020a17090725c900b00a280211f4bcmr811358ejc.250.1704202464280; Tue, 02 Jan 2024 05:34:24 -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.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 05:34:24 -0800 (PST) From: Konrad Dybcio <konrad.dybcio@linaro.org> Date: Tue, 02 Jan 2024 14:34:08 +0100 Subject: [PATCH 04/12] arm64: dts: qcom: sdm845: 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-4-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=1575; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=phTGda0ipXkzUe/74lsh+6FIjfg/5WjfSqE424nt+ac=; b=zaEkmmF9hwj7QmcriFhBE/Y0ec8y9IPypIAHRY/1e5cOg7OUaKAJ8W+M/4kB8Ox2Zj2MhipZB 458X29p+g6vBltL0HhVwncbqE6FExXnv5WFmkmE6vX1Wv1DI9oWrl7I X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786985943496462472 X-GMAIL-MSGID: 1786985943496462472 |
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.
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
arch/arm64/boot/dts/qcom/sdm845.dtsi | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
Comments
On Tue, 2 Jan 2024 at 15:36, 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. > > Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> > --- > arch/arm64/boot/dts/qcom/sdm845.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/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index c2244824355a..1c2d01f0cf07 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -4760,6 +4760,7 @@ gpu: gpu@5000000 { operating-points-v2 = <&gpu_opp_table>; qcom,gmu = <&gmu>; + #cooling-cells = <2>; interconnects = <&mem_noc MASTER_GFX3D 0 &mem_noc SLAVE_EBI1 0>; interconnect-names = "gfx-mem"; @@ -5602,8 +5603,15 @@ gpu-top-thermal { thermal-sensors = <&tsens0 11>; + 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"; @@ -5617,8 +5625,15 @@ gpu-bottom-thermal { thermal-sensors = <&tsens0 12>; + 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";