From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (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 60C6439EF0A for ; Mon, 31 Aug 2026 08:59:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788166753; cv=none; b=nO72E7iYF1YnjF4uxZ4xLQrgqZH1BSngQBp2f8G/46m9EVkyB3SuwziYVgFE7hlx3C5X1tSFqcavJnOlVoBBKxNyGSyEMaZTtzkzif/uIxx9bLTWd+FMvJqXsVh0COvG+8ngnwv8uhOBlTKzy8A6lfl7W1HEe3Ugndnu1driuck= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788166753; c=relaxed/simple; bh=wxnfIzo5XvZDjBjhV1dD8p5HMO10Fyim+Mk2lpELM7A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=c0OehpYqSDuZ7saPoHryMncM67SMsl/SGdDdeMNobUZo1n4irwcN96OZNUCAPm8nfDQcig+rd4pj0os+b3Q1SpCAm6C1GnR4eEuQ9iW/uL75AsWGOpn2PLzCyTKdDj97dNculzH/s7eBaWqSZpX9tBpvmvIP/QRVvIGnXdsLm1Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=ZaEOa3Sx; arc=none smtp.client-ip=209.85.221.45 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="ZaEOa3Sx" Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-4843efcbdb2so186845f8f.2 for ; Mon, 31 Aug 2026 01:59:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1788166748; x=1788771548; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:message-id:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to:content-type; bh=GU+U/mMMPSLsI6dWkRQr+9qpZwuOc/xQ+PbvwqeFWGw=; b=ZaEOa3SxqPXv5zJ4Zs76voxkdOpV5QolrfF+ippy7hEB5U9tDPg8FXomHNG/hNUyPz FHnX6gBBlbaHOMiMvnq2U68OjLBHvX34Pumx6Wrw/4mlC0PiEQ0tC+omztGZZOdgeTch usQgyPpQt5GQGo2ADNHc9UwbuUmULtTWdQVmPyDtC0jOvQvoIUCOsoTo7f59UqFaEj43 rGpAWnQwN+g6vc4J51qYPiLaqxdEgcilpeQ9Adn+hcHVVoVMIZwa3lyljtMylJ+iaKED WyY27yzHVa3l9Tbn+uj7+vm7rgE4WPfi8BDjJdMlN1q9zJbVVPzCceZavXlLyIE3izOR Gddg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788166748; x=1788771548; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:message-id:subject:cc:to:from :date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=GU+U/mMMPSLsI6dWkRQr+9qpZwuOc/xQ+PbvwqeFWGw=; b=NgRuOSlX2+bmL+0SouxbCBpqYssco8NmGGl1BsWvDzJLFqLVU+dfAL3AvI9MNtDrMF gF8VmwuOiSyKB6FgEkooV8sGaS4x/7JsFeAgyE219ZFeTJNo4TBdIMYq4FcVSRvfYphu tiyRUssJaSOput8lKwTToTR1tw4c4CN+x93i+6D2nob+cywTFpfGhEPkUiWsvA7VrQHF HhEYUO6GKmE3I9FGqJKYGx9S/ihbshEbofGaL3/w0hQN2m4S9yYMu/jKNRKtmF4cEJ8W MaVsSHRi4gf1xEMNb1ArJR7BkL+suh9L+3ePFUJOR5/7jpirxeBQLUKrkmWwIZyT3R6s GvCg== X-Forwarded-Encrypted: i=1; AKwUvBww2uQtgwGD0t1JtbQW4q0VaCJ6ohlPvI4mbJt1EZXsJdbngxPSuJjOAuDvIs5ff7xiMA5E7By9RlFH@vger.kernel.org X-Gm-Message-State: AFuF++nFD3BL4wR7eaa/gsk3tL5RPWN+6mNIg4Hf7sBoNX8qeYlcOew8 rwx+y2fFHsIowCgdSFBs/Yd23++DqMdDj6eB/w/aGV9JwtnHieqy/v8KsEBRwwjE3kY= X-Gm-Gg: AYBFou1n4+LLXdNCaa8Z3Iq2qQGZ5vKjOF1N7ZkpWCWxVoggiZWHwGu0UeM++FiTe76 z30SlqRx1zEUTk0yYkpYwRSEOG6qV/V+bUYlv04o0WUcZsWWrEbB2eAC5abRXmsiMLedCSVNFCU evlt/igopo9LEuzxXbeehpwZ6cxFGiptUd3sKGoA3JCRefCz+S3gJKAJO0TxLB22uKjhYl1693T HqBzmZ/sHS4QV+KBhoD8Ejc8wxoiA1YQdoduqAgfRole+V/Mskda6hIOMQkhNotFOMD4QvkCWoW wYSo52BGX55azCz3+6GogXgl7JZqpXwoB8yYZPfQjLZxcFFoOLjSE33hBT1AzR9sfZZoRGFzuS/ YdMNCkHk03UDbGKwpf0896JsIUuFDpa6OmkUpSZwhcQV2r7S5ZEH2/GpcewHvVHi6trFBCn4by4 ibQjNEaCpht5xDOMiJTKQBHn/e+tJy9k2nSJPqLCXSSKH6fwW21QkU1SZ5pqCh0vunSP9MICngv A== X-Received: by 2002:a05:6000:24c6:b0:47f:4919:d5b2 with SMTP id ffacd0b85a97d-482f79870bemr36436816f8f.1.1788166748527; Mon, 31 Aug 2026 01:59:08 -0700 (PDT) Received: from linaro.org ([2a02:2454:ff24:7241:7d09:c3ef:cd6:3fed]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-482fbab3f3asm21635560f8f.3.2026.08.31.01.59.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Aug 2026 01:59:08 -0700 (PDT) Date: Mon, 31 Aug 2026 10:58:56 +0200 From: Stephan Gerhold To: Bjorn Andersson Cc: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] arm64: dts: qcom: hamoa-crd: Add thermal control Message-ID: References: <20260830-hamoa-sys-therm-v1-0-27108c40fba5@oss.qualcomm.com> <20260830-hamoa-sys-therm-v1-2-27108c40fba5@oss.qualcomm.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20260830-hamoa-sys-therm-v1-2-27108c40fba5@oss.qualcomm.com> On Sun, Aug 30, 2026 at 09:02:03PM +0000, Bjorn Andersson wrote: > The "limits" hardware performs rapid thermal management of the CPU > cores, but during prolonged CPU usage the system's overall temperature > need to be further managed by software. > > The reference design provides seven "system thermistors", connected to > the PMK8550 VADC. Particularly interesting is the "keyboard hotspot > thermistor", which is wired up to sys_therm1. > > Use this to throttle the CPUs, in the same way that we're throttling > previous generation laptops based on "skin-temp". The trips are chosen > from those existing examples, but are comparable with the ACPI thermal > policy. > In general, following the ACPI thermal policy as close as possible is better than following existing examples. Most X1E-based devices use hybrid active/passive cooling, with the fan controlled independently by the EC. If you start throttling even just 1-2°C before the EC reaches its highest fan trip point, it will result in bad performance. Linux will try to keep the temperature below the specified temperature, and the EC will never fully ramp up the fan. This is what I determined from the CRD ACPI tables last year: https://github.com/stephan-gh/linux/commit/24f053436ec2eaf70968803adfa8c17905e53cae.patch The fact that GPU is only throttled based on back-thermal is a little odd, but this is what the ACPI tables specified back then as far as I could tell (maybe it was fixed since then). Your changes seem close enough to not cause the performance problem I mentioned above, although I think it would be worth setting a good examples for others to follow. > While not used for cooling/throttling, also add the other thermal zones > for temperature reporting purposes. > > Enable thermal-monitor mode for all 7 channels in the ADC. > > Signed-off-by: Bjorn Andersson > --- > arch/arm64/boot/dts/qcom/x1e80100-crd.dts | 116 ++++++++++++++++++++++++++++++ > 1 file changed, 116 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/x1e80100-crd.dts b/arch/arm64/boot/dts/qcom/x1e80100-crd.dts > index 429deffcf3e9..065af18357d7 100644 > --- a/arch/arm64/boot/dts/qcom/x1e80100-crd.dts > +++ b/arch/arm64/boot/dts/qcom/x1e80100-crd.dts > @@ -11,6 +11,92 @@ > / { > model = "Qualcomm Technologies, Inc. X1E80100 CRD"; > compatible = "qcom,x1e80100-crd", "qcom,x1e80100"; > + > + thermal-zones { > + soc-thermal { > + thermal-sensors = <&pmk8550_vadc ADC5_GEN3_AMUX1_GPIO_100K_PU(1)>; > + }; > + > + keyboard-thermal { > + polling-delay-passive = <250>; > + > + thermal-sensors = <&pmk8550_vadc ADC5_GEN3_AMUX2_GPIO_100K_PU(1)>; > + > + trips { > + skin_alert0: trip-point0 { > + temperature = <55000>; > + hysteresis = <1000>; > + type = "passive"; > + }; > + > + skin_alert1: trip-point1 { > + temperature = <58000>; > + hysteresis = <1000>; > + type = "passive"; > + }; What does this second trip point do differently than the first? It has the same cooling devices. Will it try throttling "harder" than before? I know sc8280xp-lenovo-thinkpad-x13s.dts has the same, but I'm not entirely sure what it does there either. My experience was if you specify 55°C as one passive trip point, then Linux will try its best to keep it with the specified cooling devices. > + > + skin-crit { > + temperature = <73000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + > + cooling-maps { > + map0 { > + trip = <&skin_alert0>; > + cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu8 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu9 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu10 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu11 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + }; > + > + map1 { > + trip = <&skin_alert1>; > + cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu8 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu9 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu10 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu11 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + }; > + }; > + }; > + > + backcover-thermal { > + thermal-sensors = <&pmk8550_vadc ADC5_GEN3_AMUX1_THM_100K_PU(1)>; > + }; Should we add throttling here as well to match Windows? Thanks, Stephan