Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6542850rdb; Tue, 2 Jan 2024 05:35:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IHrjCrYfFMG7mZq7ED2C1cZMtmyZfwyZi84Ef5l9jTi5KC8ZxQ43XWnqstP4aRZsxscdntH X-Received: by 2002:ad4:59c6:0:b0:680:3fa5:4b39 with SMTP id el6-20020ad459c6000000b006803fa54b39mr8277021qvb.114.1704202553011; Tue, 02 Jan 2024 05:35:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704202552; cv=none; d=google.com; s=arc-20160816; b=C+GwZY9sIPkw4Tl4vyVXsf2ir6Gpc2PnG0rRZRsGpTUvIABbCgciHLzjG7cIjfkMKL O6w7oUO9lkMIHNpEaNKI56OAr3aqHAbZz17fzOIC6WvdjOWofQje/x6p8W7AuTmuMJYC 0NnlEOLSXWZesCRsl6lTb2VyME32tvndZ5ChAWr9cPpiWyIUGt/fzUyUGkPntQ9W3cBb dVg5srQeQN0cqxnyocjON6Wr3qjwpBV/6sxe8OQs/lOg9DW/jBppfwpIVatELPh6axbZ METYxChoxYxzkxz5eHNnV+YV8aofkORsxV4HS62aEk16/YZTSrF2tXNFxmqUS2vtMh3M Rk9g== 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=eNfbaSRAJYQ3hDkfAV6kl4/e+W7b9SIg1oNydIChwuU=; fh=VYpjbPPqx+jvrs1/9qXlyTOIyHHHTMJ7h/2E0zaqoC0=; b=sVQpI18rWs/P5DO+LOdwuFVDV+3kaErzl7gqW08ns7shMiY6Rfl9H93dn6XUZT6Dk1 PLyUJpav/PzqzckjYEAGxh7n0SiJrPjRRYrTE+4rs28BWeayzVNstiilkMDFNv+3R0go FTSpenUO6UH4zLbQ2q7xPtgb4OVi2JWFrWwYUgLkgsAlscNEkoulAFVkdU7OX/1njC8a ZVdY0sB5HDDFZdXQ0llXJPcwNWSpGVOeYqgCrXDSVqiJxIoespU/UX+sy24C7TKe/GJJ YeP/6USbFQQtvqPjiHHYCjr/tzW1O9Tfzl5gVfsIi7GyLy7zDBny5trrpRCsP8sYbG7+ XSJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RqpdDrsj; spf=pass (google.com: domain of linux-kernel+bounces-14411-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14411-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ev4-20020a0562140a8400b0067f0ab12cdasi26276728qvb.524.2024.01.02.05.35.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 05:35:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14411-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RqpdDrsj; spf=pass (google.com: domain of linux-kernel+bounces-14411-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14411-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B94E41C220DF for ; Tue, 2 Jan 2024 13:35:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3829514AB5; Tue, 2 Jan 2024 13:34:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="RqpdDrsj" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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 CCE2F11737 for ; Tue, 2 Jan 2024 13:34:24 +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-f43.google.com with SMTP id a640c23a62f3a-a275b3a1167so462118166b.3 for ; Tue, 02 Jan 2024 05:34:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704202463; x=1704807263; 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=eNfbaSRAJYQ3hDkfAV6kl4/e+W7b9SIg1oNydIChwuU=; b=RqpdDrsj+4GGexjGIHxDgUp9JXCiOvtGaLeGp4pEf/I09ddUIohw07mE8ryPFZSaVM nD0GNg3I6096p8OUh5UOkPtF9LIJ7CdczNtaxD6Y5D5Jpb7GbFXGzSX+otFyI9gTOf7r HhTISjpwEJW5Phm/IhJlQJnIL8T/GuyOMRfN+Uk7lOEzkGECMgm2Xtd8vk8dlKuU9H9z 98whkTv9wsN08itqrYP27uTUpbvwsgdS5mbjX3rSPv+NF2Vua52xQeebdZZqs2c9J8PN GuQItDaAwORNHI+3RaAlT5Mhwt/IdloPFYhTtsSqQLKeO00Bm2TYtW63+j9rtdZPou0m Qujg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704202463; x=1704807263; 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=eNfbaSRAJYQ3hDkfAV6kl4/e+W7b9SIg1oNydIChwuU=; b=BuSn27KcEwvtUVvuanTob4VjFE+MSBSo3klmXIXzzLBaId+hG+2x2HncCywi7OktPu g+9uJWvaEdkJ8M7kfI0iNuICj0MlzR6BcNmkrpu4SfcwRSYse3q3lby+aMJinROJfo3S IxezS4/4MRj45ZA7A/WUeTyeA2ydbrkNYrQTi8DgF7HDwCF6Rw6FOq4l9YwIwYPD+lnU E+6OupIsxNmunjTVAQbSsSRq1iqC1jNcFvRrxc14itiDcNEjtPSrdDgPagYjTtKDLJbp lCSH8lgfX6kN+CMjnUcV+jJYxV700+IBAkH1cShyS2yTVNGNT8bYRJFNS9S4XuNgj4w+ cjEQ== X-Gm-Message-State: AOJu0Yw2nevc5bAekOr0gK4gtLc1jQtTGs+hSvSy5EHcOYRmht+exMVs inNRH+qRsaOI5sWeK18VXm1I2EfDzJnMnw== X-Received: by 2002:a17:906:154:b0:a28:2a9a:5adf with SMTP id 20-20020a170906015400b00a282a9a5adfmr801676ejh.2.1704202463126; Tue, 02 Jan 2024 05:34:23 -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.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 05:34:22 -0800 (PST) From: Konrad Dybcio Date: Tue, 02 Jan 2024 14:34:07 +0100 Subject: [PATCH 03/12] arm64: dts: qcom: sc8180x: 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-3-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=1501; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=LeAgjLPaUrqDha3qV9pFA40YbrPfdFXhgnhoWNtELqU=; b=OkP3ve2fNvK+mk1ccjgyedxq6N3uFJ2whAKmuzMfAyyHMPTkE2O6ydFy3gFbWHJ0H1wjykdcW aqc7JyvPYGQBQc4/ZhKN9ztbwXFeB+B+nPDCPjaDdfyyy3/LnzNyrf3 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/sc8180x.dtsi | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc8180x.dtsi b/arch/arm64/boot/dts/qcom/sc8180x.dtsi index 0430d99091e3..b1227e04429c 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8180x.dtsi @@ -2173,6 +2173,8 @@ gpu: gpu@2c00000 { interconnect-names = "gfx-mem"; qcom,gmu = <&gmu>; + #cooling-cells = <2>; + status = "disabled"; gpu_opp_table: opp-table { @@ -3880,8 +3882,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 { - trip-point0 { + gpu_top_alert0: trip-point0 { temperature = <90000>; hysteresis = <2000>; type = "hot"; @@ -4030,8 +4039,15 @@ gpu-bottom-thermal { thermal-sensors = <&tsens1 11>; + cooling-maps { + map0 { + trip = <&gpu_bottom_alert0>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { - trip-point0 { + gpu_bottom_alert0: trip-point0 { temperature = <90000>; hysteresis = <2000>; type = "hot"; -- 2.43.0