Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6542523rdb; Tue, 2 Jan 2024 05:35:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IH9RVSoUYNkUQzUtt85cVZ4DnKvVkS4PYYsbvRYUjBo3DLogwBzaC/KWZAZ+DDVG5kfSUXm X-Received: by 2002:a05:6a20:4288:b0:196:c543:abb0 with SMTP id o8-20020a056a20428800b00196c543abb0mr1084434pzj.38.1704202517586; Tue, 02 Jan 2024 05:35:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704202517; cv=none; d=google.com; s=arc-20160816; b=cKNKdYe153uENGNGjwLOE6LMvOwmauF7rvi1y5GNUqqHiUuvNlIxp/dBppK45UcMZp c+zQghyVzjOKd9P5VQIZQHcsjEe5vo7ARfpKF9T17JhWYU7UZlEpg7pxJFMcgjFyic2S Jvx/3qOwJnz85plxA5j+xe1cqd5I2/90w1pQM94YNBOnuzE1KVbWhBrbm5A40WIhhHgw Z2JGKZggGytblpMderqYTBP1ANZYWQZVE2lu/xj1xVQocZEJ3vqky2hGGG97/TRL4r/8 tpKNjS/gDJQDpC0MRt7OzN1c2G/ofxGpwbicdu1kUmR07WQVuQTkgL+0m1pUiYpW3uNP x51A== 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=xfdkAWiZB+KWq3VBKxcJ+feZO1q3RlIg9zfnZs0Hypg=; fh=VYpjbPPqx+jvrs1/9qXlyTOIyHHHTMJ7h/2E0zaqoC0=; b=OXlUxFEn8jx0Zbj+mbrMaqkGX4H+wSeNAzEn7iWcnS1yD3AED5IY91GV+lGLViRGPS gmHmAxENiIkp+FdVMxolGflOmVPOPWm9keNQJRwPFYCV7Xj2owbmJ+OBehDALOssvPds NCy9VkXFfLK94Zp3CywCNYBNkZhbfHLa56v87Foxl8meU1tYaK8gqGAoGh5YZa3jlw/+ xLaeAI2gyNm5tW8+TJYnAvK16Wjci50MlZHoIrhPC4LZbN3ZdVQ28qibSyT9Kp8R7imA qlzweJWP8fYNyPaRrzRFdhU/UGYuq2ADY+DkMDIrTPX4AhR29na0IfFcvmYPM6DZo7E1 rYpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SsAdDqQ8; spf=pass (google.com: domain of linux-kernel+bounces-14409-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14409-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 x11-20020a17090aca0b00b0028c901d4e56si10144937pjt.56.2024.01.02.05.35.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 05:35:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14409-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=SsAdDqQ8; spf=pass (google.com: domain of linux-kernel+bounces-14409-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14409-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 45CDB28061D for ; Tue, 2 Jan 2024 13:35:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B917D11734; Tue, 2 Jan 2024 13:34:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="SsAdDqQ8" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.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 7311710A0C 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 Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-556996d52e5so601950a12.1 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=tZF6u+2m3Sfhg3BP350PmLwqZoWfhsEIhnFD59yOb2MQ4xWXhctdB9/GapECFXLxdu Qa9Km9djSi4z/UpPpQX8bqicNBdvtsgJrJ9d0B2+8mdP76DZfkeUen69fWpy0zRcxkxP q9hYWMQVdlwoYFjKlILkf8CYjlbKpDvSoL44ZIHLym37sT830He4vRG1p4JbOUTm6RPK SyFuarU3s6/sUEwwLbtlzVy44pKrDbOJ7gVHqotX11TO3Uib2XuQmibiHsUqfuJv7e7j xztKC+ZOBke1yb99o0g2AvZhJZyGzQbtWu+INTfzORjQjFSvE1oD0jloqOXpSvxlM7XS asyQ== X-Gm-Message-State: AOJu0YybdrrL9mOyq0ldyuBodcJlU6prX8LF/Zy6qWP1lBuTRrO74Kf7 ULoLNO0yuvc9E7JrDSMG+1seglyngaJgjg== 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-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-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 --- 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>; -- 2.43.0