Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6543162rdb; Tue, 2 Jan 2024 05:36:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IEfUpV/VSmBEZMgGds0vaEEMxDNxXiOelNI8Mm9w3Kq0cnf0uQHMfJqTWkAl4KXZh9F6pcH X-Received: by 2002:a05:6a21:6d96:b0:196:3126:bc59 with SMTP id wl22-20020a056a216d9600b001963126bc59mr12305305pzb.15.1704202587471; Tue, 02 Jan 2024 05:36:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704202587; cv=none; d=google.com; s=arc-20160816; b=Hkf9gbp2tQIAXy1tNDzfeDZMB4ZInyUHXiGtNRGbD//xsjTYR0jCWARR8PIT7lz5lC xWuH7kqUpWCpdmi22qzF4vNt+YklcuzNAp1ywpbTIPNezb9BKBjjQEA1rdPx1jr1PJ8x CzuSw10eAQWthtsJ45fpMmYuv7EPp8rLczeyQmj5JVv4BF5UCwLwSAXJSJVsT60kCIjS wgFqlIOFJJiG65c86kP43p8OfmNTkVi7urJN4TjRXT1W3QB3xjoDrjRmzVq2XYhdoOaI y8SN6dJZhpWSoO/wL2pnRHVGou5rxHnr9sS4pu3U1XKk5OKXC+cldxIvoM92vAAlniEI Peog== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14413-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id g9-20020a17090a9b8900b0028cafd605e0si6685549pjp.121.2024.01.02.05.36.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 05:36:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14413-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14413-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 3C02FB2199D for ; Tue, 2 Jan 2024 13:36:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 60ACB14007; Tue, 2 Jan 2024 13:34:29 +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 ; 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 ; 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 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: 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-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 , 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=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= In order to allow for throttling the GPU, hook up the cooling device to the respective thermal zones. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm6115.dtsi | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 #include #include +#include / { 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"; -- 2.43.0