From patchwork Tue Jan 2 13:34:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13509029 Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (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 70B0910A03 for ; Tue, 2 Jan 2024 13:34:22 +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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="SsAdDqQ8" Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-a275b3a1167so462114066b.3 for ; Tue, 02 Jan 2024 05:34:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704202460; x=1704807260; 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=xfdkAWiZB+KWq3VBKxcJ+feZO1q3RlIg9zfnZs0Hypg=; b=SsAdDqQ8YtgCTXcMeBVlNZyAbty+6xdKvvH6Y5sGmXL0Ulz1wQUrgpwrYuXsjd/UTK HPlDVRbodcycDPIe9asESVXAkR0iUjfD0fG1/3OGMBveLsX6UWH0IfEtAjSwQlPJPkJZ lxgll2dVDvK7aV/LyorQiaqXs0IeFI4Gn48M0t/koxZU5my18c/aE5SBiQr7D/YtF08q TowVcW8ylol7BpKXo94D9LyvfxLTiC4od3Yc+pKx/QG5lRbeAZ2O5+/HgKgFJefa9iiz vYL15nNjswyIfD/G0vX/fIWJ3ZDRywNOO4n68/julAa3la8Zwv0Tj+9vByKsVd2SSV9f NJ9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704202460; x=1704807260; 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=xfdkAWiZB+KWq3VBKxcJ+feZO1q3RlIg9zfnZs0Hypg=; b=PBJAc2rq05f7vCE1GH+Wjg+TVN3mRtNy45B4kMijKliEmIN08DejBUPU8jjCDRH8F5 d2M1QNlwL8DhViOn4HryC+6RKNJUNIKqivXzE5cXs9vAnsrz5xwAWWAytiWaGBG8yZbK ucK9sO3LvwauZK2NRMjSoh9a520LZACj2+MoKtTNc9OFlMmEjDKOzbh1ZhevJlYrvOID PILjupjaz1tgjnoJrem8QVWUJfcJeSIPqz+Ku7ca29rkLsqLjymD0GH9quQ6Nk9HJJbo R0B9zWE9/pbcrKQINTBCDccgfC5nnlQR1G51jPOtlhReBguK7ZLL8EMCvKh4U6bAzDe5 ieZA== X-Gm-Message-State: AOJu0YzgSkTnkwQj78PbqxWrhZFS4xSOtL/0/uWQzsnxqfV9YR/61eWO BPwvxMk9Yc8r9rPgvy2W3fNCLMhqUGxZNg== X-Google-Smtp-Source: AGHT+IHkSu7cjNhDEED8GIHXMoOgLkRLR89yL2411y9HtPnUetAFvdF96Wm5+LW28YRsNz5h4xBzbg== X-Received: by 2002:a17:907:7f10:b0:a26:9ec0:e35 with SMTP id qf16-20020a1709077f1000b00a269ec00e35mr11518926ejc.135.1704202460636; Tue, 02 Jan 2024 05:34:20 -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.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 05:34:20 -0800 (PST) From: Konrad Dybcio Date: Tue, 02 Jan 2024 14:34:05 +0100 Subject: [PATCH 01/12] arm64: dts: qcom: msm8916: Hook up GPU cooling device Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240102-topic-gpu_cooling-v1-1-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=1062; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=xaT5wnjb9DVgYX6CSNQYDxVl8QC8ZRinGFKBd2st2xo=; b=TvMGgfL2g/1SpCgfksgIJdWTL4cF9hF0FXnxRdL1kYQi5PhFD3avMhmTH0Q01GQI0ZL5TO2/o vBnC8aQbKx6BjWTGwHDZV9+du97Wjm3hhp5MBesqzlRBIEkbRsHL9Fi 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 Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index 7f8327b0dbdb..31ceb1df550a 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -1794,6 +1794,8 @@ gpu: gpu@1c00000 { power-domains = <&gcc OXILI_GDSC>; operating-points-v2 = <&gpu_opp_table>; iommus = <&gpu_iommu 1>, <&gpu_iommu 2>; + #cooling-cells = <2>; + status = "disabled"; gpu_opp_table: opp-table { @@ -2697,6 +2699,13 @@ gpu-thermal { thermal-sensors = <&tsens 2>; + cooling-maps { + map0 { + trip = <&gpu_alert0>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { gpu_alert0: trip-point0 { temperature = <75000>; From patchwork Tue Jan 2 13:34:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13509030 Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (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 87D24FBF3 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="cwLdJ70I" Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-a271a28aeb4so548113166b.2 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=YoIhkMLYvRbKVyXDqGFiVi3oOQyz2FzN1qWYe7uVCtZVBVOsywnwBva3uURM2yvQMp eth+DGebGHs54Tpv9ivBNc5VSdUi8qRlT4NW2NiSyB+JGRcjCfWOMSuoRMDj9nwSDjVl kHb6LVjT07USwwFj2+xpZ9KwClfh3v6jxm7KDV2V8DYjTpVAUD/2ihg1jw/ApyaWxPTC F+ZEKy3RGY0bmym2/AdVUMm4wWGC/tSX6gFYpGHW+zp7A3VyaZVxGDZcxoF0wuFc6gNX Po9ExIZcIr5LvnjvNkZIxmLN3eWSApxDX6zD6nx5jezm9ZEylaF0H27hhLgzEZO8znKB kT8g== X-Gm-Message-State: AOJu0YycCBcQMdz9CElZN1jCG5xyGjeYnAcuARxIKnOh4JkhljJd4GNV oiiJQGc+KiktZnM1ol/pek5hWdyjS7gzkA== X-Google-Smtp-Source: AGHT+IFLkStxmpygHl5wNEMZju5WTXCJ4MlOl04HMR6hl0o+e0M7iEB9zfITG4DtpJJL20mI5gtibA== 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-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 Reviewed-by: Dmitry Baryshkov --- 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>; From patchwork Tue Jan 2 13:34:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13509031 Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.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 E55E011C8C 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="RqpdDrsj" Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-556996d52e5so601999a12.1 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=rUtHWlU/FiaaqAhDFwL2QA2KJjr0zreOUnfXSvzHvtEVf8vafifEnL1AkBuUWZvUjp 70reWXQ2Hyw1nGa39ZvQwlqM6WdqnvODQFiOHG0YdJTpn4DnRZOlJJKwrjG3sF2dL533 plypXo4McGPuHgCJL3PcX1dmw0dDWVwDM8JcfwCZJKM7Zyhso9dD4DRkEjQNmk0EiUja AwlE9bEu/xF5uLZHUi4oHYrxhRS9mwxdXPxDYFeSLzRET8HWSqSZDVfV/DE2sXm4ITP+ 3Biwy0BZ3C0gI0YSGXtAOQppm924I3OjOYrToDVSxhsn2+Tu6E+pKpIGpM+LpzHDucos iWdw== X-Gm-Message-State: AOJu0Yzb7xiH1dIEQKJsxsvtclAH+Hq4uhxndZTp75NjKXRd4duYNHsl 63riASWQMcSXI3GNB5nUlw/snfO1xt1qBQ== X-Google-Smtp-Source: AGHT+IGX2SLqUAlLrViw6ekZad0eYnIA0EiTDzaJjT2B7FNNUGPbjhARB+ZuPmQDcc9KxSO/D3rOLg== 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-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 Reviewed-by: Dmitry Baryshkov --- 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"; From patchwork Tue Jan 2 13:34:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13509032 Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (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 E540B134DD 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="urO+KkNq" Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a27733ae1dfso407804666b.3 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=LVmU3mBLrxgk7EZ5AK2noN1gE/i0BnlMhcExHP//vQBJ2CXlyLa0Phh73HLLXRuh5X /Xc/CK6DsTa9m9QlUJykHx+CFWnPrFg5DaYRchF4QDNFeVepcegunNctIUCbfUaUr2V8 TvPVYGJTJvXJinV1gV1DuAAWwiPEaMSXeR0o0ubklKEv3BU1k/FUcG6rjWQqgMNJ4s7q 2PGB1gE5u1WCO/S5QeGiDQa3qDeCCTUTE+zzeNtaLaL3IE8lduRB5Noqczphzac2iBTr uHVYOT6ZOQk7Pr8ACt2JRE4OTqDSCRdskpJVs6AmwjSTvH8FRXkMJuJ7EZ3XkNc2BdS5 AxXA== X-Gm-Message-State: AOJu0YzRbetr+OdZfGm7vqeQ+7Uu2oKkd7VUqKkyLFchKgV6DWZqVgA9 E5nzvEFtXWQWuyOA+50xZFyBbL8vaYInN2DrGkBFkz9O2sU= X-Google-Smtp-Source: AGHT+IH0faUUD1nCkRAVKIPHRsKGO+7Mb5RTpgBxoml3NxpHVp1CsDvbR8JYitBUspSe9nzQpaZUow== 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-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 Reviewed-by: Dmitry Baryshkov --- 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"; From patchwork Tue Jan 2 13:34:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13509033 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 2746714AB1 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="gBF+D835" Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-50e81761e43so6912856e87.2 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=FgetTNQ+bDOHV4/lgF1CEqg7qhBA1lM/0jf81tpcUPL6DnqXxhN5Do4ha14l16+kuM I9QHnqluEOfa4zO3c2OOy7gPsqil+DR+hAK6Q4XtvRdpPpV4jk3zNyuzlDb9C6Nx6xBR bDrMBqSCJWzC8ZFf4IZMjn5anTMbXA9oteFu5UUVKr8utnyubdl5h/OJcbj3/Bv5KBjZ Vun1KXAmH4LSuOddjya3pmnDx137OsiplUDwa94XtCBBI65+y5B4RW3CjyG7URTzfYLt bJV2CLKKkenKNLGABXkMTuOniIgB46Z5WysEgFGW/hdxnmBKe1vigB/ejGLobpjDBWkz UGpg== X-Gm-Message-State: AOJu0YyeWK+4wWMMJMUmYduFjh1gAYcQhDKJ1XbpX0fewP1ijWe1tM5+ TiODf82SV3JIPgmD/juIaDeXI4SjL5y3McoMank6DgBSvCs= X-Google-Smtp-Source: AGHT+IGyfOYRUZ4spVxFrdlr4EEKGyzsq18TddAdsSRofijeK06vcV97EvlAemjebKghcn+gqknShw== 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-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 Reviewed-by: Dmitry Baryshkov --- 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"; From patchwork Tue Jan 2 13:34:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13509034 Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (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 613D114F80 for ; Tue, 2 Jan 2024 13:34:28 +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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="mM2ELidf" Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-50e759ece35so7110203e87.3 for ; Tue, 02 Jan 2024 05:34:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704202466; x=1704807266; 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=34J+ataehAS0kN0wmOzRLl75fKygJv6uiWJvejhyOeY=; b=mM2ELidfJLWDbefbOhxedBkg1X/iJgGgdnWq4ZA95w8W9aVfcaL8DwabDa9oVOeEri OPJXL4hOxktd80nInSAf1f85MRyVNTxVplWKYvpJkKVE2IXAp7bIUePwxiUEiUyNm0ZR crgvrmhtl/ACNkqXUjwSvGqSFByapMAnPWSeHcNvPXFMTUojCuOboEvq+ieNHCFdAhLw ixfE0BNYZgmv0EVP1n9YKwFbzjVtyzwhL3uKGgFKn7YSWtFA8PpTHCz8Dx8uMyp2qg35 2eM7rC7B0iFn1vlP4CKYMdglS7KQFvmAIlgYNG2tuSrbSSahohAWsvn0RJqlgSYjv45s 6J4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704202466; x=1704807266; 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=34J+ataehAS0kN0wmOzRLl75fKygJv6uiWJvejhyOeY=; b=LoW+sNnaMJWf1MVtvp3p9vaA6jlzU2upeVf3+uTSUn6uLtoQ7LzZYlpz55T9dPT6cX BatcXF1tqhHoHO8edtKQf44x3+8YFoTK+R5m+g7lWnYoI8lcOfWnyiy0JL+SdXUE7SYj 3o8gpQt8L3d/2I+r2mdTnrfzi1oag8gVoHqAsm+22ahZizQ1WZEkausew8ULd3dW7zMn qzD/Hwz3VYqTdn9nmOKtAH1M9D0zhWBDAfRo33RLPSLuszrVyi4vS6EK+tLFa9hSIx6c nI+AegVu4tXBVC9xkV7RZsGQz3/QxJbhHCiEyp09NPiTnaLJK2+GlMeixycgJbNV04qE n1MQ== X-Gm-Message-State: AOJu0Yx8NCaGwOKCppRdVKQ4TSNMvpE0ZxgwDGslAEaJCV/H8kXojWPY 8EbNoFzvabox1wiu/mPvamVW4F1jOBgsYQ== X-Google-Smtp-Source: AGHT+IHXrc9Ym5F9eqiYgXkxGm+4L934dDO+blkfx9684d1nMXyIuClUdc1sNa3SYeW03dvIreCDIw== X-Received: by 2002:a05:6512:6cd:b0:50e:7f56:bfaf with SMTP id u13-20020a05651206cd00b0050e7f56bfafmr5489178lff.129.1704202466366; Tue, 02 Jan 2024 05:34:26 -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.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 05:34:26 -0800 (PST) From: Konrad Dybcio Date: Tue, 02 Jan 2024 14:34:10 +0100 Subject: [PATCH 06/12] arm64: dts: qcom: sm6115: Mark GPU @ 125C critical Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240102-topic-gpu_cooling-v1-6-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=716; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=tdRYL6qoS01TCJIXkVVITyvW8ksCa31Ur6gaqfY9lys=; b=435Q94/MvJOGykViraXp5aKhBpHNva5jUKmeYVW4xChvmxipKqCj72crKrLG/+SbxQrwv+Ryx 2qx/6EJr8i8CFqNZtnV/nTHVCFoYNxVegFRghav3sFpW54/+9xoJOaD X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= If the GPU ever reaches this temperature, the "critical" signal shuold definitely be propagated. Fix the wrong type. Signed-off-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm6115.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi index a8c819d53104..be51cbaeeb7e 100644 --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi @@ -3313,7 +3313,7 @@ gpu_alert0: trip-point0 { trip-point1 { temperature = <125000>; hysteresis = <1000>; - type = "passive"; + type = "critical"; }; }; }; From patchwork Tue Jan 2 13:34:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13509035 Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (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 77AF915480 for ; Tue, 2 Jan 2024 13:34:29 +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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="elwO62J9" Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-a27cd5850d6so182051966b.1 for ; Tue, 02 Jan 2024 05:34:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704202467; x=1704807267; 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=JSwJ3dWt9hLdZitz3UKxb0LWEVzUSjaE6+PW7S8QElA=; b=elwO62J9b5ComZpKiK1cYMNmxaVk7hZZRjm+ecy8JWQnFb0Ptl5l3h+tTdUXcssRAY nkpY38Plqzv9WF+KibVNjUU7wQzOUHSXg+Iy9dcnxVTY5ryJXrEWChJdDrvb+UIHlJa9 7nEm61XAFnDqYMP+b/Etrm9z/WRRUsL0vK5j9NFrCHRarmianRDjrnMgOfzzoggkchTN ubWcG9iy93/+8KBUPQCHw8Q993pJIaQmcNkxhYqp2MF62M3xGJhgGSIiwzSiWHxPS3dt 2Crz6jBGrsvvU2WFi3DfPPtTT0shpARY1r8UAczoPFWq9+YRcAsbfxtMdpBuxSB/gvZd 51EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704202467; x=1704807267; 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=JSwJ3dWt9hLdZitz3UKxb0LWEVzUSjaE6+PW7S8QElA=; b=gbRc/GUM2GxwDYI70ZADRAVuxOXdq4cdJhmYuATlYe91HJdDFW6KSi6aCPnJ0SoTte ECDmD9lmDPv3KTiirdL8SGA7PYzFL9WN+08uncAQ5YSGv1p+4wFRC8WVx82gWiV8AFHS emIj8MwhdW1E7pC0WAWW/g8CnmiB/Vw9y/ilLYFjTQAiDYz2PSLF5NnCtfNKFmtmuqIn oy8Mu9rlTdHD1U+Kto9oRjOcTE50bs3OamCMVJkEuKVAWCTbbjXwuq+vHgrMI4iDNIdL ZPC421ZmbIwRf5VM4zly+QPe58gkzuP5EwCu00vUvBdyrHJMgsonSxZC41Rir8I8166y Ji/Q== X-Gm-Message-State: AOJu0YwLiqK2u5RYvatdS5lwa1SHJBrPODJgDJWjkJgsiA5svGnHQ6Ni vF41/o8gzC3Uto+bKkeeHRQyayjDzeXUmQ== X-Google-Smtp-Source: AGHT+IGNAUQBxxGRxw0Z1emMUM65xsCmnItNzNDBJuc/+VVUXAWl6/S60faEyrK5h6THAfAxtrxbhw== X-Received: by 2002:a17:907:6e90:b0:a23:482:ee74 with SMTP id sh16-20020a1709076e9000b00a230482ee74mr10023202ejc.28.1704202467733; Tue, 02 Jan 2024 05:34:27 -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.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 05:34:27 -0800 (PST) From: Konrad Dybcio Date: Tue, 02 Jan 2024 14:34:11 +0100 Subject: [PATCH 07/12] arm64: dts: qcom: sm8150: Hook up GPU cooling device Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240102-topic-gpu_cooling-v1-7-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=1570; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=R9UqwjL5lclX35BC6In859XOY8l0XNfuxqV/TqSMFgg=; b=BNkMeNbXaJ10HkdGRUb2ZV21Yr//wjNQZDgCON/DdlpdjArHzNIWV5+pwtOYP5/+n9NzemHZ6 A7F+B3icE7hCqTicsjp96JJxapM14kxjy5vqPEvoltz0azfEIH64C+2 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. Also, update the trip point label to be more telling, while at it. Signed-off-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index 761a6757dc26..26dbda713e51 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -2198,6 +2198,7 @@ gpu: gpu@2c00000 { nvmem-cells = <&gpu_speed_bin>; nvmem-cell-names = "speed_bin"; + #cooling-cells = <2>; status = "disabled"; @@ -5101,8 +5102,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 { - gpu1_alert0: trip-point0 { + gpu_top_alert0: trip-point0 { temperature = <90000>; hysteresis = <2000>; type = "hot"; @@ -5281,8 +5289,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 { - gpu2_alert0: trip-point0 { + gpu_bottom_alert0: trip-point0 { temperature = <90000>; hysteresis = <2000>; type = "hot"; From patchwork Tue Jan 2 13:34:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13509036 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 4382E154A0 for ; Tue, 2 Jan 2024 13:34:30 +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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="lITZMO+8" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a26fa294e56so588039666b.0 for ; Tue, 02 Jan 2024 05:34:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704202469; x=1704807269; 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=MkfALVEFrCG1/CmRPVW4W3XftugRTQcsk6w6+JqNKcA=; b=lITZMO+8hC4nmHJYEvADQqW5uQyHr6iHDdEntzr8m1Ydvp7Dm+uPaLxNLk5NqjcwjD ceR8ECmQmu4zV+xuVfu7g1TXMc2RiqquPihdyuE/ZiBSsbS+2lRWxyJfk5kZxL1qeJZu KDSQkq6TRCNjCGyjoSohDm0xdtfmBdP6VxfY1Y5JC6V31Ou3cEMdQW2U5Mxb6iOz1fUA nJPi/u9eEFh9CzAXXwgM7h7p1oke6Yvp8ariB/0DWcieUb38QcZ6aJ+ZWhoDjzECWGXG CWxi2P06KN2WhhkDmfmpj1nrXLgqACvlc4rkV2P01VRmtiVTfOzlGFZhey/2chsX9EZJ 88nQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704202469; x=1704807269; 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=MkfALVEFrCG1/CmRPVW4W3XftugRTQcsk6w6+JqNKcA=; b=NQs21hWjk3D7szYB3kzvt7KGmIypPfW6g8E6poUUglNHEqUyE4cMB9t19VfeEPBC8P uFO6rJI6V0xdQjNbLTvjlReXZhczL2/Si+Yvfm1JsEW1UuwKQdtqU5MY66hJZh/n7JIr A+E+bf56d/GtANrgtlphCh3UAu7c0saoWIPVbs9/Cselyw842fNeY7jVXs9uDtKQv2lb TcfAXkRHdBbxL0/LdzasRHatRSn2nl/R937uvzv/A9F2F1SKlD5nTfHlOmQDoJFJ0zkp hjbZLE4ML7CpXLzDEQzfXFWyZpdteewNsp4FE+mnlcQsIQrLlo6nKaHPIfvEcsWK63Dp lTJg== X-Gm-Message-State: AOJu0YzF1DKz7ggxgOIOYc6Ris8ZU+KKgtjC+OID5gKGm9uM4pjKWpdB gEBIwTUfyYXWtYe1HfRs0Jx2JYdVnbBp3A== X-Google-Smtp-Source: AGHT+IFL0AsmS3IC0Nfst0eE3adsL9lyo5NQeFZdZuY9nVjY852z2XgcdxG6B1eT7yb0CrLWAYJ6Sg== X-Received: by 2002:a17:906:1c4f:b0:a28:78b7:78a8 with SMTP id l15-20020a1709061c4f00b00a2878b778a8mr27376ejg.62.1704202468829; Tue, 02 Jan 2024 05:34:28 -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.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 05:34:28 -0800 (PST) From: Konrad Dybcio Date: Tue, 02 Jan 2024 14:34:12 +0100 Subject: [PATCH 08/12] arm64: dts: qcom: sm8250: Hook up GPU cooling device Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240102-topic-gpu_cooling-v1-8-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=1569; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=iFnGHk+ZK2tVmuhe34jg6IepMU+CLbbATUG+enVgvts=; b=pAn29b2XQnVV1b4D94YHc0qXd0xXVEEoWngkk1UMaRiQGmjsCYHxzUP61qoM3yKEVqFuOBXbz /z9Of7ZRwJUBkzC/yXRWQHd4eRFxBRIiXTrc3f7bUxdGuU39/4/XYjF 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. Also, update the trip point label to be more telling, while at it. Signed-off-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 760501c1301a..03bf49818798 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -2888,6 +2888,7 @@ gpu: gpu@3d00000 { nvmem-cells = <&gpu_speed_bin>; nvmem-cell-names = "speed_bin"; + #cooling-cells = <2>; status = "disabled"; @@ -6791,8 +6792,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 { - gpu1_alert0: trip-point0 { + gpu_top_alert0: trip-point0 { temperature = <90000>; hysteresis = <2000>; type = "hot"; @@ -6926,8 +6934,15 @@ gpu-bottom-thermal { thermal-sensors = <&tsens1 8>; + 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"; From patchwork Tue Jan 2 13:34:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13509037 Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (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 3C5C515AC9 for ; Tue, 2 Jan 2024 13:34:33 +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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="mvfd2kz8" Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-336755f1688so8933225f8f.0 for ; Tue, 02 Jan 2024 05:34:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704202471; x=1704807271; 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=5q9S+7Fya+VTzBEqrdZKh6qCvhpW7mOyZby8yv38yTU=; b=mvfd2kz8wkm/VZX991ZItOJdbjjjSGZuGpLTxLpAUkc9yD+2zt6p8nh7CJ8PS2xyX1 SS6s2AwqhMIiOIdPQntoPtGSN2tGVePAtJSlJZTVE2SGGjgwWSqI1IlvaxSMxQddrHSr 3Mj1r980L8DKNQ3djjzbACR4mXDhCecTZHUzPgd1LemUC3WwVuUe4/WOwQV42y3Z26oY MiuYy0ehYt6dI2EXLge/YH1KTQFlWHkzbV4z3vZd3DndTb2tGaN1PuPxfewq/C9XNFiF mMO75Mm304nYwmw/F+2OPQZKF2lS7xrWjI8KtKtlcGtSUDCNYQhhVe+lfejKs4Vy60t8 A3xQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704202471; x=1704807271; 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=5q9S+7Fya+VTzBEqrdZKh6qCvhpW7mOyZby8yv38yTU=; b=VNYGD776vxxwIAp07TFq7Lrk7YEHWuVHrPTI6+N+rO998Sj0Dhb55Mt/xO0r4wA3dD 4u7WV8tBlRnj9sugwpx+Jn5rGKIh/9UzCtiZxnkMy3PTVq7rQSN/MILPf7OLwrjcxgL4 6cQUQXjfl1nY/BmKmkM04Ixj5Db5S7iVdg6gCyRayBpP2zextDDh4w0IrK98DDJDUS38 zLIIxiHngP3OJMEy71gxo+3HSTxkDatnbj56Snp0AHIh6A2jq0ADZ39fPr7o8T2Fe4Ka nfHexP8BTwrdKNiOYbG0lQ+MULxTCvCn10kR3NOEW/0HAknykKZpkJW2OCzUi3xA4vq5 gq3w== X-Gm-Message-State: AOJu0YwBwRSaOzrUTNRQMJuG5bWpxlnLWz18uBR4yFtooFihAnGPK3ph 3ZQKJIk9Vys4rTm3YAYtKHnP47nidrYNnA== X-Google-Smtp-Source: AGHT+IE+a8IxL1I3ilsYirsmCdIkKahi1rhlBPr9BqCZsZpYGmM6f5OjnDN8AoIfuuTMHhc5CKoStw== X-Received: by 2002:a05:600c:1d2a:b0:40d:5bc4:4e7f with SMTP id l42-20020a05600c1d2a00b0040d5bc44e7fmr5580444wms.20.1704202471606; Tue, 02 Jan 2024 05:34:31 -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.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 05:34:29 -0800 (PST) From: Konrad Dybcio Date: Tue, 02 Jan 2024 14:34:13 +0100 Subject: [PATCH 09/12] arm64: dts: qcom: sm8350: Hook up GPU cooling device Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240102-topic-gpu_cooling-v1-9-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=1563; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=EpO0KJ3F+IVJx7ZjcCfSRbGs6QkZ1fpSqdd5/2bxjR0=; b=n/bAhKc/aou494PJN57B7ksru+9pBNU1UF1o7bzN6Zrgx94HklFbYllHnPTQCujRMPkEJKC3Y 8e1IZqMQa22BvQSyZtVWkDcratnlruq+QkLj+N0zn615Qr+LzkQnIMk 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. Also, update the trip point label to be more telling, while at it. Signed-off-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index e78c83a897c2..1c6f80b14d09 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -1847,6 +1847,7 @@ gpu: gpu@3d00000 { operating-points-v2 = <&gpu_opp_table>; qcom,gmu = <&gmu>; + #cooling-cells = <2>; status = "disabled"; @@ -4214,8 +4215,15 @@ gpu-top-thermal { thermal-sensors = <&tsens1 1>; + 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 = <1000>; type = "hot"; @@ -4229,8 +4237,15 @@ gpu-bottom-thermal { thermal-sensors = <&tsens1 2>; + 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 = <1000>; type = "hot"; From patchwork Tue Jan 2 13:34:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13509038 Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.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 21EF4156DC for ; Tue, 2 Jan 2024 13:34:33 +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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="xJ1vpSlv" Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-5553f251e3cso3938345a12.2 for ; Tue, 02 Jan 2024 05:34:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704202472; x=1704807272; 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=kn6ZcGR++MLyZKYtulEm7pL4y4QPEqxKkTxTEz9NJCo=; b=xJ1vpSlvQ4WpjA2eLh54Rd6f5XGamBZyMGETp3sWTWZO+/lsjvKUXu4EbOP7OwLcvq gtHqfxDmhvgFwUFigFwCviJ2D3xHpALz5N8NehYzR7OFuDv85BC+mKzGg176DnBExaDr Z/2jhHTz/m+7/DPsfMULF5Dnw66+2kljjBe1oXB1n5UU146NOAF8QksRKFBAuz+sCfE4 Ts6HsdQ+mpdp59uJr+8GUAapjIy7/oKUV2/cNsWm6cI8+p1YDBKGpybw0lKe2Ao97jGe D1dErzf5A50h8xaIOiVcTfI9/0osHJT/9hdQYm0KHpoCye4EcaZM/BtOpmeYHtQBfasn 8a2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704202472; x=1704807272; 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=kn6ZcGR++MLyZKYtulEm7pL4y4QPEqxKkTxTEz9NJCo=; b=iLON7EyD4NpV3nTYlxLz8EO+84wmE7Bw/qq/E/OBbFIQMFqBLEaqPdT8zoi4j7pIow THzecwR8QACOAepqw9vWNOJiZbuchvaWQtBCa4T7zzn2iIA1eiWW705XBj28P3bhdVJG t+DFX7R05+PeiaoN/R4g68d+enZof1LdMD7NSFL/FMpbFNtu/sLkl5oSoOAntt1V4tie sABAGYinjWcCKAS2CO/hMqDdemBubg42CNJeegV9q/qEtHS0mhWj666DdGbJrrThha6c ejT0WlnJjjlACUmQ4ChDJKOC6XGk01lR1rgWp+ZZ2wxRVjiP74D4/QQ8G14YdJnJ0Mno m25A== X-Gm-Message-State: AOJu0YzwyidzhKcUCwKE60gSinCZ1TZv+/gQnytcFTEsRCyYO7AOdg5U UPKdFl9mToBmcEJ7h4uKCDQhtyRjI007Qw== X-Google-Smtp-Source: AGHT+IF8V3w4eO8tAGhtwTO7CeHY5MfrrduezFfd/hCSv78bIIbXrbW5bgSlswiqDeONC6lUwdP1vA== X-Received: by 2002:a17:906:1988:b0:a27:e0e2:e641 with SMTP id g8-20020a170906198800b00a27e0e2e641mr1874730ejd.19.1704202472564; Tue, 02 Jan 2024 05:34:32 -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.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 05:34:32 -0800 (PST) From: Konrad Dybcio Date: Tue, 02 Jan 2024 14:34:14 +0100 Subject: [PATCH 10/12] arm64: dts: qcom: sm8450: Hook up GPU cooling device Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240102-topic-gpu_cooling-v1-10-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=1883; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=lgxbgRXfXDX4Jn2UaC0FqFuodM62KE9jmIfHnDAxRyI=; b=r1N0BwVrwMRyHsSl/wlgYiyjpYzDxjqQwnnvJPf2fYSr+T2RY6ZNExH/zeL+RLmYR8wlycfOx XoRmgKlx0klDyyJtSzKp6+wyUdh00TiOkXRaPzCXYHLdD+XOmuIDwb6 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. Also, update the trip point label to be more telling, while at it. Signed-off-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8450.dtsi | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi index 01e4dfc4babd..8f5a093c8828 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -2038,6 +2038,7 @@ gpu: gpu@3d00000 { operating-points-v2 = <&gpu_opp_table>; qcom,gmu = <&gmu>; + #cooling-cells = <2>; status = "disabled"; @@ -4890,6 +4891,13 @@ gpu-top-thermal { polling-delay = <0>; thermal-sensors = <&tsens0 14>; + cooling-maps { + map0 { + trip = <&gpu_top_alert0>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { thermal-engine-config { temperature = <125000>; @@ -4909,7 +4917,7 @@ reset-mon-cfg { type = "passive"; }; - gpu0_tj_cfg: tj-cfg { + gpu_top_alert0: trip-point0 { temperature = <95000>; hysteresis = <5000>; type = "passive"; @@ -4922,6 +4930,13 @@ gpu-bottom-thermal { polling-delay = <0>; thermal-sensors = <&tsens0 15>; + cooling-maps { + map0 { + trip = <&gpu_bottom_alert0>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { thermal-engine-config { temperature = <125000>; @@ -4941,7 +4956,7 @@ reset-mon-cfg { type = "passive"; }; - gpu1_tj_cfg: tj-cfg { + gpu_bottom_alert0: trip-point0 { temperature = <95000>; hysteresis = <5000>; type = "passive"; From patchwork Tue Jan 2 13:34:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13509039 Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (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 B3E2815AE6 for ; Tue, 2 Jan 2024 13:34:35 +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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="XnsYIjjZ" Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-a22f59c6ae6so1096539366b.1 for ; Tue, 02 Jan 2024 05:34:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704202474; x=1704807274; 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=8OWoK94k92VUFweM74Xj1aKbQd5zya8fwaKZhm4CVmg=; b=XnsYIjjZZNuoFgTW02++aePrM2kZJjBFWT3j8WaUWtosp3HLr11oHo4V44l7csyTYu IUcuHAk4nCs4YQxS5EN48162rkL68zR3dmKBJriZ73x0Pm4mJUpIs6cmxcMnA1Ee/S6Y eoBwmG1/QiQfkcMGyZK6wR3mpnb36AXM6LHj2zu2ZhvMjNtlEC/RCPos96R7Dox5uVFq wvvH92ZzN9u+NkhQBRy2q3K+Rn2hHOnVziHbfarYh3ccFScKVyD4q27S74PjMk5aCCOT XTiwuCJNpLe2X7s1vDE4IM0TSJyxubiU1UEuOLYNNXPYe4ckZ6XAWCcKI0szlN/jseIU 6SxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704202474; x=1704807274; 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=8OWoK94k92VUFweM74Xj1aKbQd5zya8fwaKZhm4CVmg=; b=BRGUn2mMtVUI++UHVFBZ/fiizdPotJSrpii2NVNAFLS9llAGAWn4SUfchf3CjppooE anY3UrH4HCLso+WRDgZ6gtpTOKm5SLoPkTUf16lBWEe8oPZm+7E+Op3BrYlxfkmFK6nn /ptLWR9Q4/2OWPrlM1vAUq95KagJEETqBVH4+Abx2OaLU98a/pga2xwFo91w0GO5TWFx edbhucB7JrBfH4TCWN6tld7cVZ5G4Ju2SYGdsPCKvfgbFmKgu6vI+v90c0wfZvvP0sTh rUEDCDJ3tFWa5E0cfJNtkgZilG3VBBHgxK5LA01EndtmI9L+IpJMow5isy3aTEAuCKU5 C+Kw== X-Gm-Message-State: AOJu0Yx1+ryEiyA4VV1PBGvN2+pbwLB5PILaPLSnr0ox2r34GHECRd35 txbvYJzcYcsj6aoCW+P++LlAkrGAmMSLYg== X-Google-Smtp-Source: AGHT+IF+MDXfI8BaBqbcHm6bZ3CkBKXixZxWmG37C04Vtaefl/tQfJrcOrcyxc56AYfTZDdFlsqAhA== X-Received: by 2002:a17:906:51c2:b0:a28:c5e:290 with SMTP id v2-20020a17090651c200b00a280c5e0290mr544966ejk.195.1704202473813; Tue, 02 Jan 2024 05:34:33 -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.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 05:34:33 -0800 (PST) From: Konrad Dybcio Date: Tue, 02 Jan 2024 14:34:15 +0100 Subject: [PATCH 11/12] arm64: dts: qcom: sm8550: Hook up GPU cooling device Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240102-topic-gpu_cooling-v1-11-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=3486; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=rW4SZBJO/MEJiHsIskIiQj25wMjK7Vc4dTt0OTlDOT0=; b=XBOYil/f7zB0TAbiezwtYvDkKoayOi71ifq19Dd3g4yC6gyVppwcjHagkNDVq9GVqgkg9sXuc u+F/WN8x7hDAq46XGZtDKEW3j4q6YQR38AuoeAJVwtf3PJdUcZlXztL 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. Also, unify the naming scheme of the thermal zones across the tree while at it. Signed-off-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8550.dtsi | 57 ++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi index ee1ba5a8c8fc..692cd85f03fb 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -2012,6 +2012,7 @@ gpu: gpu@3d00000 { operating-points-v2 = <&gpu_opp_table>; qcom,gmu = <&gmu>; + #cooling-cells = <2>; status = "disabled"; @@ -5304,6 +5305,13 @@ gpuss-0-thermal { polling-delay = <0>; thermal-sensors = <&tsens2 1>; + cooling-maps { + map0 { + trip = <&gpu0_junction_config>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { thermal-engine-config { temperature = <125000>; @@ -5336,6 +5344,13 @@ gpuss-1-thermal { polling-delay = <0>; thermal-sensors = <&tsens2 2>; + cooling-maps { + map0 { + trip = <&gpu1_junction_config>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { thermal-engine-config { temperature = <125000>; @@ -5368,6 +5383,13 @@ gpuss-2-thermal { polling-delay = <0>; thermal-sensors = <&tsens2 3>; + cooling-maps { + map0 { + trip = <&gpu2_junction_config>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { thermal-engine-config { temperature = <125000>; @@ -5400,6 +5422,13 @@ gpuss-3-thermal { polling-delay = <0>; thermal-sensors = <&tsens2 4>; + cooling-maps { + map0 { + trip = <&gpu3_junction_config>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { thermal-engine-config { temperature = <125000>; @@ -5432,6 +5461,13 @@ gpuss-4-thermal { polling-delay = <0>; thermal-sensors = <&tsens2 5>; + cooling-maps { + map0 { + trip = <&gpu4_junction_config>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { thermal-engine-config { temperature = <125000>; @@ -5464,6 +5500,13 @@ gpuss-5-thermal { polling-delay = <0>; thermal-sensors = <&tsens2 6>; + cooling-maps { + map0 { + trip = <&gpu5_junction_config>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { thermal-engine-config { temperature = <125000>; @@ -5496,6 +5539,13 @@ gpuss-6-thermal { polling-delay = <0>; thermal-sensors = <&tsens2 7>; + cooling-maps { + map0 { + trip = <&gpu6_junction_config>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { thermal-engine-config { temperature = <125000>; @@ -5528,6 +5578,13 @@ gpuss-7-thermal { polling-delay = <0>; thermal-sensors = <&tsens2 8>; + cooling-maps { + map0 { + trip = <&gpu7_junction_config>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { thermal-engine-config { temperature = <125000>; From patchwork Tue Jan 2 13:34:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13509040 Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.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 97D4415E92 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Vf8rxYT/" Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-50ea226bda8so248991e87.2 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=lcJiZP5c+Rmu0ch2JmXDBHIGRs+nVkxRc2HMBoOmcD1CQDmfpleKWnlQs9J9ZaMPLO rWm+Q07aKtEfcV8HzrUByqZkne89x2ydBJ8UHh1khBXdRyu1J9AOLMeFZzARnN0JN5JF wqgT+CYkMf8W9i7Q3lehxUOLZ6AbnkX3kz4N0JTpSmAxHMfqm4FUX8FHzOavERyY5t8G kJ0CKJNdwXr4Wx9PU9jwKcMrVu1QHew7CE13/Mwi7aSna9/TGUgqDlbHcbGhIWqyPoCw Hby20gOM4CqQtskAv7VGHdTPoeoIcPJbSE6YnNIT6zqf6OUgPNYtIJuYHB8tl2Nx220A E+Mw== X-Gm-Message-State: AOJu0YyT4UwhB3W/IvpaegnybjjFUSd/1MhhDvemQ/fh8z5dhUsQ/gfZ DH/XlJDa0wNfo6p6enFIQKO034FIQne9iw== X-Google-Smtp-Source: AGHT+IGiqR0JDwID0n3wdeBwAvdvieXgN6ZSyb5hHkLZQG2NRFovAJb7WIX9mIkPnIsl2BZkIL28Ow== 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-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 Reviewed-by: Dmitry Baryshkov --- 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>;