From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.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 CBE7C3D45EA for ; Fri, 3 Jul 2026 14:09:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783087759; cv=none; b=ZcYWMLZ3SZwAaNlaGgAH4PUJoSaiBKgUC8lqjBp/U0SHDF2vCXgGHs1Z1IIcys73P9/R12ziK2+AkBJ0WxYZD2EKEefJhnve3KG1+D6+GIrCb0E9bM9KNujgreJrRVKbsFA2CP6ftIUHAUiBK4sEgA7NHOaPI+NhuOqSTYeObJ4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783087759; c=relaxed/simple; bh=d+OXytV2ebkUyD2yp+ya6NCaRMIez7CYGr9oi6b7Unc=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=Mqg5dxlSSDmrVkZLj8mxf9eJte184c91txCSkfyU3oQaE5pxGYZOJv2ytWUizqkfiTVGBVoY1Cr4xNvfOdBdvq4+uI4dxasv2FlYgOo3Poey4yQFhHWROTqh19DxyF70g8F/ODvMJvBMCvmPcsqIVwJviYBTR5APRcGOX8Rseh8= 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=C6brIbdR; arc=none smtp.client-ip=209.85.128.46 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="C6brIbdR" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-493bb510ce4so4562975e9.1 for ; Fri, 03 Jul 2026 07:09:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1783087756; x=1783692556; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:from:subject:reply-to:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=lfO1X26POMkNONMKCAH4khlnd1ko4GHBpFbhLRAY8BA=; b=C6brIbdR7AaVCl3n4ymNz7qiHFQms2ygBgyAqoD0Qj+NQ56i2dZqz/1EbqsEe9rhxV FqXke+oQ0Hr28SM4pZDf9nXXU+/JAQzjCXpvNqtejxgpfAu5DxIW9hYNcyoyynGGT69Q JJrWWeIMw4NZAKcdGbM4nybU1pW3d0lcaFM6eXKNodNcCNz4vCZbNaDTEeaKzOfO2ZDH kWTU3k29ZJCjU8aq21o4hpGi1OtHmVppVH8AnL48nrdscASHN+Fl54FFe0OkUZfHs3f2 /r7W7RKjnMQURaG38Ot/XZJpT59uDGMvsnuiCMSXqbvGBQ0Bhl6UvXK3bbhZEdImRXPF jcDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783087756; x=1783692556; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:from:subject:reply-to:user-agent :mime-version:date:message-id:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lfO1X26POMkNONMKCAH4khlnd1ko4GHBpFbhLRAY8BA=; b=qXrFx3oiJgMIHyVjxzR2n9lVEeuE11vExngM/zXQtxlVQyJyxERTtFr71lNiYH7+dh V3jnltoNvU6jIF68bJkq5yf6nu2CPcIXvCwtQeFRXs2qwXpiQud9Hv70FEtQaOCPQrRm Q410Nk0yYXRr3hrf1la15SiXZQlDx9T7eTqCUYPEq//Y9fdjf/Z0WAon2AXjn5WExLKE CYrX1UeM7xdfLidaeFU/LDkGzNWhg9RVnX62hAxVgqi46naO3c734el0dEKrew0E+LPo JfgMSS8mrmVXPQUTTdEW5zUmYGAh1kBrH6jXW7FiCa2lAAKkA5zfTpgsFrx61B5iHGCn +mLA== X-Forwarded-Encrypted: i=1; AFNElJ9K3brN8f8Y8PxQGPyDD+5h+tY+UZBXm3K3oSzxfBJ/YPllpvISsaUbwTGb5eaWJ6N4s4YipfAiQWffW9I=@vger.kernel.org X-Gm-Message-State: AOJu0YwMaU2W+UXZsZ9KRS9vwVQld4W1sHjIYTXK4TDd1SOTNWeqXF2w rE5yGcQ0L9/7NaOdXpdwksMoiuOWeEdaiJr7IsmPsGREaOMy+UOpfUnBrYWYmEXbTms= X-Gm-Gg: AfdE7cniCNF3oKhUklMwsBxhmowoamhKZCa5TiceK/b8+iukW1gX0oCFVmCgoKG11DX 2yORvQf5GfGttUPCRjAyMth7WdXudiay8t+4MvufGZH1qH0b4kHqgd2C6nLDB3dqwuXoCN0t4K+ uu2rzaZHpxOt//iUTkMZhr457XhRAIHxyPEZPe797RMBQmllI5NAwtuk39/as/bA1YXbCasTEbc Kl3f/9x5CWqObhVLiDWRYjcwn3GxptE4npgLzvd1ckiRCydUaGIrKIF4Py/Yhg/bkkYYBNVhuNm o30b5nc6A+O787gkomlOrAbnjQ+tBc0YlTaxd3tpQ+Z66hn26vA4bsjTIGO4mzkCO7Uv2+pfUyi 2isYgLa7/YyfcDSYgwEMmw5saX5en8t3eYlZXgTchaBKd7ejPch2udWelfM0jcvXithZ1mt8R5W 4KYQQeBeao0xzzxdYNqrNbbdR6zF/aXNwXN2TxDUCcdHbwtQ7YepSCc73QkGduwemaaVaZ X-Received: by 2002:a05:600c:c3c1:20b0:492:4363:e7eb with SMTP id 5b1f17b1804b1-493d0f3ca40mr3345e9.32.1783087755967; Fri, 03 Jul 2026 07:09:15 -0700 (PDT) Received: from ?IPV6:2a01:e0a:106d:1080:9b13:921f:4f13:6cbb? ([2a01:e0a:106d:1080:9b13:921f:4f13:6cbb]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-477ddf0fb15sm16668205f8f.29.2026.07.03.07.09.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Jul 2026 07:09:15 -0700 (PDT) Message-ID: <45736af3-cdd4-4398-8509-a3593af989e1@linaro.org> Date: Fri, 3 Jul 2026 16:09:13 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Reply-To: Neil Armstrong Subject: Re: [PATCH v3 0/2] Lenovo ThinkPad T14s EC thermal monitoring and thermal zone integration From: Neil Armstrong To: Daniel Lezcano , sre@kernel.org, hansg@kernel.org, ilpo.jarvinen@linux.intel.com, linux@roeck-us.net, andersson@kernel.org, konradybcio@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: bryan.odonoghue@linaro.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org References: <20260701103714.22583-1-daniel.lezcano@oss.qualcomm.com> <5edfa760-b5b1-4f0e-8a14-2a39d2b99090@linaro.org> Content-Language: en-US, fr Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDA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4OD8cRYkxXRQmTvqa3 3eDIHu/zr1HMKErm+2SD6PO9umRef8V82o2oaCLvf4WeIssFjwB0b6a12opuRP7yo3E3gTCS KmbUuLv1CtxKQF+fUV1cVaTPMyT25Od+RC1K+iOR0F54oUJvJeq7fUzbn/KdlhA8XPGzwGRy 4zcsPWvwnXgfe5tk680fEKZVwOZKIEuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro In-Reply-To: <5edfa760-b5b1-4f0e-8a14-2a39d2b99090@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 7/3/26 12:32, Neil Armstrong wrote: > On 7/1/26 12:37, Daniel Lezcano wrote: >> Hi, >> >> This series extends the Lenovo ThinkPad T14s embedded controller driver >> with environmental monitoring capabilities and integrates the exposed >> sensors into the Linux thermal framework. >> >> The EC provides access to several platform temperature sensors >> covering the SoC, keyboard area, bottom cover, charging circuitry, QTM >> module and SSD. These sensors are currently used by the firmware for >> thermal management but are not exposed to Linux. >> >> The first patch adds hwmon support for the EC temperature sensors. >> >> The second patch exposes the EC as a thermal sensor provider in the >> device tree and defines thermal zones for the keyboard skin >> temperature and the charging circuitry temperature. This allows the >> generic thermal framework to react to EC-reported temperatures and >> apply standard Linux thermal mitigation policies. >> >> As the EC protocol is not fully decoded, the passive trip points >> get/set actions are missing, so it is not possible to program a >> threshold and receive an interrupt when crossed the way up or >> down. Consequently, the thermal zone related to the charging circuitry >> is polled every two seconds until we can set the trip points in the >> EC. >> >> This series fixes critical thermal issues happening on this platform >> where a kernel compilation, or heavy workloads, lead to a system >> reboot. >> >> Tested on a Lenovo ThinkPad T14s Gen 6 (Snapdragon X Elite). >> >> Thanks, >> >> Daniel >> >> --- >>   Changelog: >>     v3: >>      - Removed event based because trip point are not yet well supported >>      - Added an empty line after variable declaration (Ilpo Järvinen) >>      - Used MILLIDEGREE_PER_DEGREE from units.h (Ilpo Järvinen) >>      - Made switch consistent (Ilpo Järvinen) >>     v2: >>      - Fixed patch 1 subject prefix >>      - Removed the fan information part >>      - Added HWMON_T_ALARM >>      - Fixed DT change description to reflect what it does really >> >> Daniel Lezcano (2): >>    platform: arm64: lenovo-thinkpad-t14s-ec: Add hwmon support for >>      temperatures >>    arm64: dts: qcom: x1e78100-t14s: Add thermal zones for keyboard skin >>      and charging sensors >> >>   .../qcom/x1e78100-lenovo-thinkpad-t14s.dtsi   |  68 ++++++++- >>   drivers/platform/arm64/lenovo-thinkpad-t14s.c | 130 ++++++++++++++++++ >>   2 files changed, 197 insertions(+), 1 deletion(-) >> > > Tested-by: Neil Armstrong # on T14s OLED The charging sensor can go very high aswell and when cpu load is high the charging is throttled down, so perhaps it would be nice to also have a thermal zone for the charging sensors. On my setup when charging the battery at 60W the charging sensor reports ~63C but goes up to 80C when building a kernel, but stays around ~70C if the charger is not connected. Neil