Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6544111rdb; Tue, 2 Jan 2024 05:38:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IEb1EUANKsn78E5B4SHWp6woNcOSLSmevGN1LreKimtReoamlmKiltIq/eWQjxnEwY1AX7b X-Received: by 2002:a05:6902:1615:b0:dbd:b172:c9c2 with SMTP id bw21-20020a056902161500b00dbdb172c9c2mr9115998ybb.52.1704202701859; Tue, 02 Jan 2024 05:38:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704202701; cv=none; d=google.com; s=arc-20160816; b=bYCOC0oZKq/EYM0lsvUQXITxbxwADWw8ifjlUODyeqQ+8WWJRQ+aNWUxeMsktDGnfj 4P5x67cW/fzno8KLmLXj2GolFP/tsYtZUS/XlOAs/wygco0IjJqY2/r9LpDMENgdu5SW G8eaiOKEkVCY3hPg/0WyM5SOiChInJekrayt8yezVJv39j/QBZzhjTiuM1Wiv7pCK/2m 70cV3Gz5jnVSv2y1yAmlZTAXMSR49XjRrwGbgHPa1gWIotDvaO2E/RPqE0CVyxPKEaA+ Uga/hhwlmuIoLJGASMPIMOybtoc5FHvsbaKRTkfXEREzYXQOBhM/7tYJMApTI5ZbKp5C sUCg== 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=zeKwT1A3XsXuuDojkgywa+/EpDJdsCptqUtmXkx5794=; fh=VYpjbPPqx+jvrs1/9qXlyTOIyHHHTMJ7h/2E0zaqoC0=; b=W5sJxuCpahL371WB/nCWADLhosDUSVLl+EWq4GOE7xLrZfaQ+vUxog+vO+QIrx5Dp3 L2q+jh8Tk8NydGThVI46B7FEo5k0Hy+dcakvgNK4NhdNt+JXcrppK6mS6KGvOU9Lj+Xp x0CG1U966e2usBE8cUTJEOwROSY0JyBOP46q5pV7XOMU6eV2HWAtOgwO7avFW5vaxPiJ HaZyrvaHnLW2XbbV4x63Ze1sqzrnhi6ZZenapJ+xMCp0nU+5xADcw+TKzNMMJbXu0wey iHoPfUnC+UZ283lU+SgqPfw0kQQXu43S5ReSP021tUi3gnGkvDBcgST/yhLzFz0m4Qoa hxSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Vf8rxYT/"; spf=pass (google.com: domain of linux-kernel+bounces-14420-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14420-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 c13-20020a05622a024d00b0042775bb6607si27620224qtx.774.2024.01.02.05.38.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 05:38:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14420-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="Vf8rxYT/"; spf=pass (google.com: domain of linux-kernel+bounces-14420-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14420-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 9B8351C2210D for ; Tue, 2 Jan 2024 13:38:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BCFB81641D; Tue, 2 Jan 2024 13:34:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Vf8rxYT/" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) (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 8AA2715AFF for ; Tue, 2 Jan 2024 13:34:36 +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-lj1-f177.google.com with SMTP id 38308e7fff4ca-2cc9fa5e8e1so100183721fa.3 for ; Tue, 02 Jan 2024 05:34:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704202475; x=1704807275; 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=zeKwT1A3XsXuuDojkgywa+/EpDJdsCptqUtmXkx5794=; b=Vf8rxYT/cUQV/82ACMVl+SFhMehHNmfIxv73Y7aY6oLTtJYb2EpRa6+nhHIyHc0KKW wdo5cxr8OSZBwKbVmpr5qw1mGI/gSYwtCl/V+hB2+js3SAPsMO/mAYKCMTNcAWUhAdwB kZdRlNT6bEKV64ujRkGojPDtihlugobIhXJfl4TvC379zuOOT4CNZmSjTj0yoMBQU09K ciqNJ4XqC1IFxK3yqlPoKZB192IIG9wR+wHfmfW6RsEnbFO47EzPqs8em8cj+Fd/ewHJ 90JCAg0PsZszz3eJPz+g9AQaxjw5WQ94KscvY4ip4sTrlgoguSXGbwmWPQdF8mli/yyQ aD2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704202475; x=1704807275; 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=zeKwT1A3XsXuuDojkgywa+/EpDJdsCptqUtmXkx5794=; b=auX7O2TLPJZOFlpq6KswaxwYDbxVPosU2roNXqRjJAJeFsFDPiN/TKpsfn5sx9NCcm Ro8/QVfo8jziPUbFmjyQyj0G2n4E1/ujLuyTbReKg8zvqIgt1q9ehFutetFwK6FDGejP oZGB7N9HK0bGc6a7p9djybNLZ1pHS6EyMAMP1Y/p+rFM/NCDBMGTngl5o0ZNlspCl1iQ aX/cgrVMSnWcLA3nVfsM8TMiWKu/7XPy/K5Dd9JPXSyfc8M5J3vKeHobXAsluEQzFkFH O0oauQAbWvDbxIsMTceWFhi+VfXN2iOT30fJ22O71ISM3VRUY7VNP1u2jmQZ+TArHbhA CBZw== X-Gm-Message-State: AOJu0YwttsnStriEeJ6YzUYTP2pAQc9TDQte+bNd/LnPEj01wursMHhL oYJykW8f6SnkIb/N1N1tN4M8Ww408XkDzQ== X-Received: by 2002:ac2:4836:0:b0:50e:7dfe:fe82 with SMTP id 22-20020ac24836000000b0050e7dfefe82mr4306564lft.82.1704202474834; Tue, 02 Jan 2024 05:34:34 -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.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 05:34:34 -0800 (PST) From: Konrad Dybcio Date: Tue, 02 Jan 2024 14:34:16 +0100 Subject: [PATCH 12/12] arm64: dts: qcom: sdm630: 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-12-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=1248; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=dkeGc5o0HQxWFtiMDhc/Q4H/20eU/xyAL75klKJTI2M=; b=E2ErxoQ3kpFQPbKINlrBy6Bu2+Ni5vxkudf5gW7KmKfY/ZCu82WDVuQ7h6Fbth7tWCFbKEVxo KjJLpsPDLoPDWIqV1jSwBCBpmFQLG0voDpYCBVsHcrLBIs0duhS7zn0 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/sdm630.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm630.dtsi b/arch/arm64/boot/dts/qcom/sdm630.dtsi index 775700f78e0f..fc06665861e2 100644 --- a/arch/arm64/boot/dts/qcom/sdm630.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm630.dtsi @@ -13,6 +13,7 @@ #include #include #include +#include #include / { @@ -1120,6 +1121,7 @@ adreno_gpu: gpu@5000000 { interconnect-names = "gfx-mem"; operating-points-v2 = <&gpu_sdm630_opp_table>; + #cooling-cells = <2>; status = "disabled"; @@ -2580,6 +2582,13 @@ gpu-thermal { thermal-sensors = <&tsens 8>; + cooling-maps { + map0 { + trip = <&gpu_alert0>; + cooling-device = <&adreno_gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { gpu_alert0: trip-point0 { temperature = <90000>; -- 2.43.0