Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6542978rdb; Tue, 2 Jan 2024 05:36:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IEX1Qm047J196zrGzjdnjjpx9AoRMZLoRiPPAuaRz81O3+pi9GGUkZOYaqMAQ48oVocgsYD X-Received: by 2002:a05:6a20:428a:b0:197:2ae7:8a9e with SMTP id o10-20020a056a20428a00b001972ae78a9emr680814pzj.65.1704202565992; Tue, 02 Jan 2024 05:36:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704202565; cv=none; d=google.com; s=arc-20160816; b=034g6M0tXVOJ1xVewDp091gDH2HsrhbRd1CZZGHZZGJaMvUFpIJufOmfpyaMRSZEeE 7ZFu9c+9TNTBMotTDES4uzc0gMjwFAyZnTbxl9+296QITdYwlGS9/LInaZLXxCSx0j4+ MDQe2vf8FbMBrVNwc2BxBEC56QgkVZy1TKPdEmFkrEsnRju3pGstxjdElVIEdDa0sNR7 Vm7Xugcbp1S3bpAb4Uha1b5nTGbWR1k+xXNhZsOkdZLa4hLfyc/Si+eiLJ7JAf+Fyy44 Em55HwTR0cxMl2PW/wpowjVoNEwamtlYohQXelG+edd3lP4ndm42O707Fv5Y2EzAMPfx 204w== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14412-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h4-20020a056a00170400b006c339c0cc08si14598630pfc.196.2024.01.02.05.36.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 05:36:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14412-linux.lists.archive=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=urO+KkNq; spf=pass (google.com: domain of linux-kernel+bounces-14412-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14412-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A1CA7280788 for ; Tue, 2 Jan 2024 13:36:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B6E114F7A; Tue, 2 Jan 2024 13:34:28 +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 ; 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 ; 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 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: 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-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 , 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=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= 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/sdm845.dtsi | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) 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"; -- 2.43.0