Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6542754rdb; Tue, 2 Jan 2024 05:35:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IEUl7162i+n23vbXN2iZAogxtCtafWN9BanZslfajs7EvmePQGtxuu6l2CKHVFv6vvJMi9Z X-Received: by 2002:a2e:a7c5:0:b0:2cc:ec6e:de40 with SMTP id x5-20020a2ea7c5000000b002ccec6ede40mr3674646ljp.86.1704202545167; Tue, 02 Jan 2024 05:35:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704202545; cv=none; d=google.com; s=arc-20160816; b=YCAzghnh81J5OP+6S6M0CEsbbMAVuqRk9m8wx1w6LssvpSg1lSka2RquKyFX6CyTXy a6cpVCPS4TR5LydU4lbGKExP29mH/8TYwpoN8isbiayfLWAUgUJG684g4XoloikVYZRf Lbh21zAJjzvsqFyMAEPpMjv5lTQvVwT18NegE8V1Bd3PapRzSOiM+ySlrQgO23GfYw8M PouYGJ8h0RfMsvcvofkH8ALJ9xAGFSHugZ5VI3sWjF0tPbNOqKrTZIh7Je9tXM63dXG7 o8sdlXXAFrqNTDOk5IqxtDvo6LbF97H0WO2w9b5lSI4ljJ8fASxZcLZPpGYpSL5FHRqE gLLw== 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=KOAtXsI/uyP60NRG3xZQcpZuT7i2wbzmgZI2BTLUXGQ=; fh=VYpjbPPqx+jvrs1/9qXlyTOIyHHHTMJ7h/2E0zaqoC0=; b=d1KQ3vwJKrtqfk5MQtVcqcw0+exvopIM5YTCj1W3C+TW9bJ7Fwn3O7O93zIt5owQGp VU+h8tCqo7LXPNLPqX1ebwCnIWf+aG9vX1u6y+wcscwQ4KcXMeqCi89VqHvJDOfZ71hK Bk2apjs60TMXXtLLr42TgruSbzVP4CN9Y5PaJ4HuSw2tohikcZushEtIE4o38PK7ySyk fjwynyPFibFwk8Il1ZYlYAixGiDzdLLPairrUfUI8gx8iOZQOkei77YgU3WW3ANXGWS2 aw39aAx9eHn6SeCRxa7AFSFIuTOZSzvDrmK+VUZTCyfUBmaPARalsPJFhC1yv1qbpQO5 F4lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cwLdJ70I; spf=pass (google.com: domain of linux-kernel+bounces-14410-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14410-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id x20-20020a50d614000000b005533935f0d9si11294264edi.407.2024.01.02.05.35.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 05:35:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14410-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cwLdJ70I; spf=pass (google.com: domain of linux-kernel+bounces-14410-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14410-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 am.mirrors.kernel.org (Postfix) with ESMTPS id DF2531F22B39 for ; Tue, 2 Jan 2024 13:35:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AFDFB1429F; Tue, 2 Jan 2024 13:34:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="cwLdJ70I" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (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 65BA91171B for ; Tue, 2 Jan 2024 13:34:23 +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-f42.google.com with SMTP id a640c23a62f3a-a282cb36d37so87565266b.3 for ; Tue, 02 Jan 2024 05:34:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704202462; x=1704807262; 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=KOAtXsI/uyP60NRG3xZQcpZuT7i2wbzmgZI2BTLUXGQ=; b=cwLdJ70Iu6w7HJJiUM6Q6aVDwZcLJIRCT17O0XtdF0vP6MhmtL21+MjuMXK/CiXKX1 DYqpZ9FMDIubwDVSYbwWn0GuVH7ur8RkmUpj0X+9LVPN5nUUQy5t1Yauzspdh91G7RDq BgDC6YBRJUuA50Bd4d9s5ZV6VgkIcRSZrkI5VtvwJPZhW36qCOVCPctKmIaN/TdBibty omZAUHsCa0illCz5gKoOuV+9IyM0BKd2E9NNJMJnOFqXboe55dIwevf5LDGD/LLNaaMW Abr6q/0H2p7f2XQPkKCe+Es4fEfoR+sTu+BdwS2vxDtZeYrVlEo6SrPoR1NwhGYjqtcI zNoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704202462; x=1704807262; 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=KOAtXsI/uyP60NRG3xZQcpZuT7i2wbzmgZI2BTLUXGQ=; b=QiMfIUeMdHguJU+iZfkJl94arz0cA1bfzArC/n4vUk+Zgz8pai9UEJneukw/kP4yRK U5dDZHzE/QF0fFLdRBdWYWJCncifxoCcFVcN54iGRCNyE/F5Jn6GoI6KEBX4o0f9exKz RZLYGTLAMJT14KbsJOYiN0Ait+3hgUZ50I3x6oX2mY2cxjoPKEbMXDaLc8CCtBGmI6Tq bOE/mbrAx9Lg1Qltl41Q+8NIY651wHlX51S8h9p9LTdhede2d3fQttOVUqFifVuNicQ/ uuG89QQal0XjuNXX20O7YD017eVRuEql/0LugztlIvOWBbTbaPr+KLZy/gOhfcULbQNF HDsw== X-Gm-Message-State: AOJu0Yy47vFxOQG0Wilk/qfq2/KLU02vlQdZlGpnC1vZbxk9lo8ufzNj U1m+DCOhh7meNA5bXfgrQNLzqsZkqGJdCg== X-Received: by 2002:a17:906:51dd:b0:a27:e711:8b7f with SMTP id v29-20020a17090651dd00b00a27e7118b7fmr1709373ejk.20.1704202461908; Tue, 02 Jan 2024 05:34:21 -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.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 05:34:21 -0800 (PST) From: Konrad Dybcio Date: Tue, 02 Jan 2024 14:34:06 +0100 Subject: [PATCH 02/12] arm64: dts: qcom: msm8939: 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-2-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=1054; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=1NgY9bVcLf6ubSjBJsunesS1yE8LCS8qHk+beqjE2Yg=; b=V7yOCEVXcQPjLL6quQMaUNQeZk328WuCDWD+AQW2cBe4pP9+62UnE1pCj0YW1ymUUY+GKNeiQ bxDTNWsobI3Byx1wO4FASpJdQWDVQfv8BWC+1QgmBjQWyc9NKXRGxZV 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/msm8939.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8939.dtsi b/arch/arm64/boot/dts/qcom/msm8939.dtsi index 29f6bd9df2eb..e0521a060cf8 100644 --- a/arch/arm64/boot/dts/qcom/msm8939.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8939.dtsi @@ -1439,6 +1439,8 @@ gpu: gpu@1c00000 { power-domains = <&gcc OXILI_GDSC>; operating-points-v2 = <&opp_table>; iommus = <&gpu_iommu 1>, <&gpu_iommu 2>; + #cooling-cells = <2>; + status = "disabled"; opp_table: opp-table { @@ -2468,6 +2470,13 @@ gpu-thermal { thermal-sensors = <&tsens 3>; + cooling-maps { + map0 { + trip = <&gpu_alert0>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { gpu_alert0: trip-point0 { temperature = <75000>; -- 2.43.0