From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f174.google.com (mail-dy1-f174.google.com [74.125.82.174]) (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 E8EF135E950 for ; Thu, 15 Oct 2026 05:08:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792040927; cv=none; b=lctYGsBPZUZsTCUjfXPqUTuRAvtW7NEFmR4fl3ZE6i8GU18dEzXauTq7m83ujDYhdSrympJxFUwbtiy4bNLkWFwZ4/ZmtG44KX+PaOelKEks/JFsd63KiRYkvTjwklfmenEgX4aRfMAThVvvypIJHOdkc6Mp7DdHzrJwILAA2wg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792040927; c=relaxed/simple; bh=U/NTrRgaiUwgbbozDoLtiBGfqv6ruBsIk6QhpZvUTDM=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=uLqb+JknJA1XSZ8IoX0pfyV0uOd5XBu4zMleaheuKkQm8OYd/C/FaXjF9pR3wSs4feYmpAv1gMyzCCLbQsAMnIEqd0LgqZrOqleQZlPrCCoKMEoCpH+yuBX7PCLRY57QndiICOgjnRFlp4o8cj0DXRKOaT/TAbkQkvxvtSV5iSc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=auP8fysx; arc=none smtp.client-ip=74.125.82.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="auP8fysx" Received: by mail-dy1-f174.google.com with SMTP id 5a478bee46e88-35943f55c06so1590389eec.0 for ; Wed, 14 Oct 2026 22:08:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1792040925; x=1792645725; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-type:content-transfer-encoding:mime-version:from:to:cc :subject:date:message-id:reply-to:content-type; bh=U/NTrRgaiUwgbbozDoLtiBGfqv6ruBsIk6QhpZvUTDM=; b=auP8fysxuAUgx3sE1y9c61VzcZ4V2X0kDMQPGECAetRb5fY6lsOQQXmDPecaFPeCrz vYRlyaJm+5Im2syIx77wfpB4ApXr0v9Oi4dBTD8SrMGOuamHK8AkYYI3NH83pdXfrzvz rc98yEIYstjERbJXXLmg1wuFX18yuOtnIAx+Whd3oLRCoutgLvmZ9N/S7qLmbklxSY2r gQvN1vUWVjP6GWvkLmNpIsezSQMN4xKE+Not0KxkTdrGzaG0hvIKP+AlBjJ+KpCEV1QD VMoVUYiUiJ5agbf2kXBUnjRzIv49d8vLwNIV3ORycgs2n24Zm3PPBG7Yek1FQ4najU6k wwcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792040925; x=1792645725; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-type:content-transfer-encoding:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=U/NTrRgaiUwgbbozDoLtiBGfqv6ruBsIk6QhpZvUTDM=; b=B4954xHuOie2a4MuiJ+weclnQ6idOiwqnhzhmvAT4/4V/0MUswgLzME19dMsx6TLX/ P/7DWMk97cCHTzk06leLO2bcQW3kcTfNr+jScj1ldchzVHZ7On1qeA/oicQPOg/o4izg 9UhPjE7ZGpnJWiuenvhKveqgOug7/b9s9D7DljnZgrCz3UbthrCHxK++cey2fua2ya1a k8qBfGkwvmekkioBauyZWhPXjiq5DYXf7okGt2pPIn8vNPnDkcSTxNK4RIO+fHzRbEDL /g7cT9R0vQD9p3LWDRsKY+9rbukbbSY15A6DoSSkE7nELfRVGPvwYGRthyikM4hv4Uij aO0A== X-Forwarded-Encrypted: i=1; AKwUvBxIBkN/GJaPfbZlBsPQWq0zqM95rqAVKmCqmaQY79WFLFoF4FWAF3A2vdshEL+NbZ3pJ52YLxjxmi2XGzBttO9VWN5c@vger.kernel.org X-Gm-Message-State: AFq9FYL989Cjwgxh1qvaHdUtYCcw6ZsorLSFId7Z3PD/bmY7uTrL3/58 TaX2p8gkJNpseS8Kgy1Sa1Hrlhnggh/OU0s/wQPe5+VcjuT4hLLGxwuB X-Gm-Gg: AYBFou0h5wGT4eEEPYCaKBgvqtq4MhLUA6Syo/YBtJiwsunWYPXI/DY8OSFqCIRnD+c 6vNRzJrJvMa22Aj3v1GWBe4b+iGNcXv0pWKUadhOj3WPeaLqvZUrjipWArVoqkhkusFTTe0GHfQ jv2l9k9TKbHGgAqKFW7ZMaQQaE9O+tpLaFIMNiB5i7ue+CGowrA2KBUihrvr+t/0x1C4BPFFmT8 v8ZRUthen3vYgbV/8DyqZi+Z8+LTzpOeBKVkBPB6k20pFQv0CR6JBxdVWdc2n6LRuB6MWTEQhN6 zurFOJM5QOQhk5oOXfnnBUXvsDGhRgMqOhxvxCZ65ZoE+n9ANMVhXF8f07mHJY+GJ3fhmarmh4e M7vpQ9UxIuHjNuB7K2s4Zs6ZAbuNXy/1zHw1R0AxZ5/DSi4zesXUXLZ83Klbqw5gCKyRNu/l/jf dUyupkMbFclpGk2BwJlBxCHu4HtAz8iClODnh0SirQetI98qf8eL/0SF3r55RL X-Received: by 2002:a05:693c:821a:b0:357:ee3a:267a with SMTP id 5a478bee46e88-357ee3a2dd9mr22021855eec.2.1792040924891; Wed, 14 Oct 2026 22:08:44 -0700 (PDT) Received: from localhost ([2800:40:44:f1f5:f400:4c49:91c1:9905]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3537ca1b53dsm53695749eec.6.2026.10.14.22.08.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Oct 2026 22:08:44 -0700 (PDT) Precedence: bulk X-Mailing-List: platform-driver-x86@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 15 Oct 2026 02:08:41 -0300 Message-Id: Cc: , , , "LKML" , Subject: Re: [RFC PATCH] platform/arm64: lenovo-thinkpad-t14s: Adjust thermal trip with platform profile From: "Kurt Borja" To: "Daniel Lezcano" , =?utf-8?q?Ilpo_J=C3=A4rvinen?= , "Hans de Goede" , "Rafael J. Wysocki" , "Mario Limonciello" , "Kurt Borja" X-Mailer: aerc 0.22.0-0-gc2f86b7abde3 References: <20261001181917.9367-1-daniel.lezcano@oss.qualcomm.com> <1eb6d74f-28c7-8f0a-4001-dfe717196836@linux.intel.com> <36418d4e-ba34-4c31-b676-1e636cfb8a7a@oss.qualcomm.com> In-Reply-To: <36418d4e-ba34-4c31-b676-1e636cfb8a7a@oss.qualcomm.com> On Wed Oct 14, 2026 at 10:03 AM -03, Daniel Lezcano wrote: > On 10/14/26 12:19, Ilpo J=C3=A4rvinen wrote: >> + more people. Hi all, >>=20 >> On Thu, 1 Oct 2026, Daniel Lezcano wrote: >>=20 >>> Tie the keyboard thermal mitigation temperature to the platform profile >>> selected through the ThinkPad embedded controller. >>> >>> The EC reports Fn+L, Fn+M and Fn+H events corresponding to low-power, >>> balanced and performance operating modes. Use these events to update th= e >>> passive trip point of the "keyboard-thermal" zone to 49.85=C2=B0C, 57.8= 5=C2=B0C >>> and 59.85=C2=B0C respectively. >>> >>> These thresholds match the thermal mitigation temperatures used by the >>> platform for the corresponding operating profiles. >>> >>> Look up the keyboard thermal zone at probe time and locate the passive >>> trip named "keyboard-ec-alert". The trip name is used deliberately so >>> the EC driver can identify the device-tree trip associated with the >>> platform thermal profile without depending on its position in the trip >>> table. >>> >>> Initialize the thermal mitigation threshold to the balanced profile, >>> matching the default platform behaviour, and update the thermal zone >>> whenever a profile change event is reported by the EC so that the new >>> mitigation temperature takes effect immediately. >>> >>> Using the platform_profile API would provide a more appropriate interfa= ce >>> for exposing and managing these operating modes. However, while the API >>> itself is generic, the platform profile core implementation currently >>> lives under the ACPI framework. Making it available to device-tree base= d >>> platforms requires separating the generic infrastructure from ACPI, >>> which is a larger and independent piece of work. >>=20 >> So the only problem is that platform profile resides underneath acpi >> namespace in sysfs? > > Yes but I have a series I'm about to send decoupling the=20 > platform_profile from ACPI The platform-profile already has a platform agnostic interface at /sys/class/platform-profile-N. Unless I'm missing something, I believe that interface should already cover your use case and its also the recommended way to expose interfaces to user-space. I was not around here when this functionality was exposed to /sys/firmware/acpi so I don't really know the context, but I personally don't see a reason to duplicate this at /sys/firmware/devicetree or something like that. --=20 Thanks, ~ Kurt