Message ID | 20240102-topic-gpu_cooling-v1-5-fda30c57e353@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-14413-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp4447609dyb; Tue, 2 Jan 2024 05:36:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IGR7IDxKXEm+kNSA38fb3p1nSXkqmb6YYsLbTw/tlgHDbmOoinunjQk1PDk+ye4MN4EtCbS X-Received: by 2002:a05:6a20:72ac:b0:197:587:af11 with SMTP id o44-20020a056a2072ac00b001970587af11mr3718565pzk.107.1704202614302; Tue, 02 Jan 2024 05:36:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704202614; cv=none; d=google.com; s=arc-20160816; b=svkz4SsG86HNGPlZJaV8wiQRHFIigsOblB8uxIVE7W3HmFqKoyVLw46Iec05uE8o1B etOAjFcL1gBeSaTB3dz2g4+RCx/RPXPgt6RYJe54QmAQlW8qvFWIIGJFygRv56fIeHwK bo89yLL8W8kbuqPyjaQrmncuRe3tsMF6c9rvyXGnZ9yrt+i2iQLhRaqZ4D44nocK0Ff5 SwUKwVPbsCkY5BM+2i9Oqk7+pIb3j/D1Sn6HPnpvfHMOToUAhNd/jQkdKt6DWRUnhstP S8wDXBEOqKpBrdHR0j6d4Cc9E2SvJqP/A/mclqCsresc/HSUSxLgV9H+4ZManOdJWL9I ZwOQ== 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=97jPHG+cR3581Xl+GMf1JKp2vtRKFSusYrcakFXqK5U=; fh=VYpjbPPqx+jvrs1/9qXlyTOIyHHHTMJ7h/2E0zaqoC0=; b=SdQ2N80RmQGfiq/fy+6kc2EWe3KG15jP0wRgaOl7cw5BsNvFfp8OfC58VMl1C+NheC mRWyHPf57vrtjP+OAe/zFBsi6A6M1rk8P6kJULX11m16K/XPlBDK+XfZnG/qEttGGFVZ PkZf89CEcfbjS3DDF2W2sRw5jY3X7jz2Icygpt7jbeRiyiDG5hUCKaualr0aWvVT6Z/7 rJ6up2eFNRAn0dOsV9XqBXW4Fi0PPxTwweTE/ER4JSAs9i+T02+PIIXbtQ2pikYJvEhU 20ZkGY2mPg9a+BPo2Lgn9B12Nn8Yf4e2niiNsbv5nIVM+ZFj2ltNflaY8VWFi1623gnO dtvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gBF+D835; spf=pass (google.com: domain of linux-kernel+bounces-14413-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14413-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id t123-20020a628181000000b006d98a6168c5si18048519pfd.344.2024.01.02.05.36.54 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 05:36:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14413-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gBF+D835; spf=pass (google.com: domain of linux-kernel+bounces-14413-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14413-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E15D62813B0 for <ouuuleilei@gmail.com>; Tue, 2 Jan 2024 13:36:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2E9A2156C7; Tue, 2 Jan 2024 13:34:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="gBF+D835" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (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 2743814AAC for <linux-kernel@vger.kernel.org>; Tue, 2 Jan 2024 13:34:27 +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-lf1-f46.google.com with SMTP id 2adb3069b0e04-50e67e37661so9990392e87.0 for <linux-kernel@vger.kernel.org>; Tue, 02 Jan 2024 05:34:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704202465; x=1704807265; 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=97jPHG+cR3581Xl+GMf1JKp2vtRKFSusYrcakFXqK5U=; b=gBF+D835JIqOQUb6hmLpu38muSEzGolVQV/pAtrkTJNkCOaIX2bWrb3olo2wa6tvZT m9LNh7auJfrql8SUFC9gLy6sV4mtqPk3+gLgkiG9ewk3AnRr5sT6Q1FLJtPXUdNXmLkl awQbAd0APv1pz6xC6ong/hAHgP0w/LbM335ebRIH363OCX9hG+D0r9fIQSv2l93PSmzz zGUMQnS58ZpLBQ/XTfHoeyOlwI9dn9asP71IzIaDpD6AsxoLI59J3TlykLb15WhgB/4x +Jgy1nmxo00y6yAPFG9SxACVs3AfOpVewmwVkNKc5vIO1qDHrqdxuUmB4myEXe+arHdN AAzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704202465; x=1704807265; 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=97jPHG+cR3581Xl+GMf1JKp2vtRKFSusYrcakFXqK5U=; b=LTWnjiMq7iYa4dwqk0F0YTg/5RG07qjf/8se3M+lYGNWUOIXO6CqE39fOx7IdyBlF+ XGxeHU8FrUci+24bn1D97Z3ULZbMlSMZD3Q3OJD4Qg7t8gvT/DmU8QQ7WnxuCPkYh0tP zoqU6Qn90MPvIVSFS2qtFMyVBBY0uRiZcqL/RPyTFPLVurEeHxI+y5y+0q70Wy+O4het FEOZbYpvwwjI3PC/IO2o/1q8wAZZXxaXEU/0lze9UUzSkUy1VWSrmccAN+x/6ipVCYHy d+teh1ReW/hgBbEcwIGu6RFtMbsASX4IuBxHm9v5cHbFjAu27XhbgTCIE0/n4v/O8PGM qizg== X-Gm-Message-State: AOJu0YzxvALrIEP2YEQnnByv2FhA0xiO+pnvdEKYccFXp08oCYmOF/bt BBGvn95g80CC4MWqj5fNRHMJJqSNEMN+bA== X-Received: by 2002:a19:2d12:0:b0:50e:5082:a868 with SMTP id k18-20020a192d12000000b0050e5082a868mr6834514lfj.104.1704202465322; Tue, 02 Jan 2024 05:34:25 -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.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 05:34:25 -0800 (PST) From: Konrad Dybcio <konrad.dybcio@linaro.org> Date: Tue, 02 Jan 2024 14:34:09 +0100 Subject: [PATCH 05/12] arm64: dts: qcom: sm6115: 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-5-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=1343; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=MM0iaMoLU2hpNJK6qncAaunE1g9CP/uf4D/oMinm+8w=; b=zTibY+b97qc8gu1fNWYkZYWhalWuxLR7XgDDgGbbUAe0ayzdhoelFoE+j5dBzbUv8wmXC+5vo y464dOCNMysBBefVK4VwibRSy4+uhQqCNiR2ymnUCwTiJiiEGanktF1 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786985960703846735 X-GMAIL-MSGID: 1786985960703846735 |
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/sm6115.dtsi | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
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/sm6115.dtsi | 11 ++++++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi index 160e098f1075..a8c819d53104 100644 --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi @@ -14,6 +14,7 @@ #include <dt-bindings/interconnect/qcom,sm6115.h> #include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/power/qcom-rpmpd.h> +#include <dt-bindings/thermal/thermal.h> / { interrupt-parent = <&intc>; @@ -1646,6 +1647,7 @@ gpu: gpu@5900000 { nvmem-cells = <&gpu_speed_bin>; nvmem-cell-names = "speed_bin"; + #cooling-cells = <2>; status = "disabled"; @@ -3294,8 +3296,15 @@ gpu-thermal { polling-delay = <0>; thermal-sensors = <&tsens0 15>; + cooling-maps { + map0 { + trip = <&gpu_alert0>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { - trip-point0 { + gpu_alert0: trip-point0 { temperature = <115000>; hysteresis = <5000>; type = "passive";