From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=103.168.172.151 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796350844; b=qnUV9FHLr0X3UOK7beH/UoMUFpwF7Bv8iSf9Eb2J0O1nqOarZPyulob4yQZb9Ab2jaxl r6p/lyHEJ19Zq+MP3OghcbfhLt+IGmdZhOs+j+c3jHKVtzAQR7JBP+4EP1SARhzi/vtw0 FYtcQkTGDNBoDOxrR2ImGm9al+eC7qr2od6f08wdO3D1AR9FFgBvaWutwBKZK9YKx87bB F8xW3q8P3NQHCRg9u91gIjQPARyCFXKThWo1DsTA2FxDOtYZXcsBLoL4940SZLsi3Jf4S /Fvw//ag9RV5m/DT20E4dxgDWN6DezzwfUNvNaC55bBbaUJ22GWIxiOtmfTBjJRSbPQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796350844; h=DMARC-Filter:Received:Received:DKIM-Signature:DKIM-Signature: X-DKIM2-Info:DKIM2-Signature:X-DKIM2-Info:Message-Instance: X-ME-Sender:X-ME-Received:X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID: Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To: References:MIME-Version:Content-Transfer-Encoding; bh=GcZnalplbICUiUbGm2+VNLPHOuUOfTIhAHpxbbVdol4=; b=34MGIQxwNM/MdsxSlaGp9ciaATPSumEsiX1hE14ZYl32cVQiRmXpogClWzOu31BrT19e EW79zo265zTYN7ytiDjP5wugkDUl6KQiQSI9l+FuwMvMpHG6ARjx/D7xSwtM2S1catPeT TvTKk/h1GbsYELorD+6J3UZPtDMCdBXFvsXAXmmQrNnp5VtxqtkylgqKF143+X3vqPAvp 3BZK4l3lXFEWcHw+p1nLpOe7+E4RnJQUvIbyqfKGgwY7ySHXk37j16RZilHGgh1fkcKq7 uEdwb1pClKqQ+rVz0FNY07hPGqVUlKFAitFSglVjos+/0D/hJ1B7syCyuWCeMSIw3og== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=squebb.ca; spf=pass smtp.mailfrom=squebb.ca; dkim=pass header.d=squebb.ca header.i=@squebb.ca header.a=rsa-sha256 header.s=fm1 header.b=lHc8qzp7; dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=2Fjngqet; arc=none smtp.remote-ip=103.168.172.151 Received: from fout-a8-smtp.messagingengine.com (fout-a8-smtp.messagingengine.com [103.168.172.151]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5C334606A337 for ; Fri, 4 Dec 2026 02:20:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5C334606A337 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=squebb.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=squebb.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=squebb.ca header.i=@squebb.ca header.a=rsa-sha256 header.s=fm1 header.b=lHc8qzp7; dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=2Fjngqet Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfout.phl.internal (Postfix) with ESMTP id 245F4EC01D8 for ; Thu, 3 Dec 2026 21:20:42 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-01.internal (MEProxy); Thu, 03 Dec 2026 21:20:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=squebb.ca; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm1; t=1796350842; x= 1796437242; bh=GcZnalplbICUiUbGm2+VNLPHOuUOfTIhAHpxbbVdol4=; b=l Hc8qzp7Ve+3F7FuJFtTSrr0ji3onF3zuNqNX+e05Cjb1KNIEhygjbrK8gZkw+1L4 E0ZMuCvG6ar1H2VKDuC2Ng9m4ZXzAxjIjMIhOqZNvXEMVB48NsateyKXvoDGKoGa D7vxvVi2QvjnIxAI++o2PKqv2IR1IvX9DIzEvO1tlJKD8DPuTPc4b4rU3XXezce9 9IlTK/3yWgPXWfTDKe+tzOyx9CjroWieSkyswD8wOhKxcFlXp/ahqPmLSBOlCNJn NvxcYHi61j1kkyw/YtpI2clT9EYFBkWSiW7ghuQpUuNAkeLlV+tmhE56nfymvYrh mw8TRime0XLX2fNvIl23Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1796350842; x=1796437242; bh=G cZnalplbICUiUbGm2+VNLPHOuUOfTIhAHpxbbVdol4=; b=2FjngqetTy7mPErEA Ie2jIo4S3McX7gZ0oz2Vy6XoAt6Ro/jjlIHQyxsnVjbliNQF+TluThmsWd+Tjpzr 5llBiQEQL5XWFlkM+B12fwYIsF02soypSkuUlzYsPT9JWwFvb/lULQKO/ZTn5Smq U0K/U1Rf7QAU0L40JF6yYz2jQSAi5J9mad38Bd1HLSjZN4EUkRQaiK0+1ceuKwKI /3f1xwDfa2cud2MjjiLGOHwzmGPImP7DFo3Q0zlmbRXEQRGuVI9F9gzo7SGZYThG uaSRJURF3upgeQYEeTAnTCCYr0PooGelJKs/VTIrA7Oe7CSxkAt5kcVmdSSy2CN9 Cds9w== X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=sign d=squebb.ca a=rsa-sha256; DKIM2-Signature: i=1; m=1; t=1796350842; d=squebb.ca; mf=PG1wZWFyc29uLWxlbm92b0BzcXVlYmIuY2E+; rt=PGxpbnV4LWtlcm5lbEB2Z2VyLmtlcm5lbC5vcmc+; s=fm1:rsa-sha256:DuMzjQPfGeVvYtvhdI+jR5eAj3hIEX1llQf92gpCcnV9tf8 ULMjTZa8aG0gjOX8YHYMKmI7qLU/GJgSL2nUrHpp3aSO0pzrI3PW5HOc9ZNTkL67 7yIb7g2NYrOyoiTVjNIs3bzE0u/CvxMX7mQJ38WNb4XYuHApH7eIunxSHMF9z+jx J0VDEboYPi0scgW4qsJCCUKirxFtehgqRsn9iavfsq32onc+Y7Fox41m2KfDh19M nGkX8834L5yK9X235x6K48D56y5bRreusFC9Z7nrlyslZmaxLFeRyS/HV4RtndWI oA0gpX22RcvQ8ppUARLW+w2iPsQP+kWU6l8l8Tw==; X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=mi-m=1; hc=11; hn=cc,content-transfer-encoding,date,feedback-id,from, in-reply-to,message-id,mime-version,references,subject,to; Message-Instance: m=1; h=sha256:GjqrgPSc1Sn8j7B2lDBdgLpr/r0OfgIXTAJd0RObYLg=:uB8Il0SLEdX8/8a5WWCubDhu3AyQ0ndggavXHi0TMb4=; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTGDUIChJ5E1FVrsf3oBD0u0XvSWJGF1x3aqdZ828n8qXtoqEhuHmGn8MkgSPQmBIL gTARmxhW2rjLlGV/wt8vI2u+zxDsyPAJ6IOdPq2DGP17K3ry+W3q6E0bm2p7r8ZTw2BiPj /wUcQE55eApTh5KxQI91yS6c7NEoK+xXF7s+/rMjPsCmrsbIKbJFykN2upx1NW0caT09r/ Av6uMaHHh2sEz1077PSIMnxtSzy/Xl5nLlF0/spmdlqh6Tx2CTXkz6eFGI2i0fPdgkPMkb ADvZyRmKGYQ0DAsuyYkNgHDqQNbOyfeKd2SyrjNKu/aNAJsQZBUGv1jzVmPeGecQpFyoRi 2YM8kETKW7JmPZixiRWrGdKePs1lmJno9+T0k/a77Rq6OWMcWxG5eKk9OpvGQ+FOlIZXqh L5P+E7YOgtZFORvDdKB7xcUY5aWXo4LfpoHc2rfMr7bIJS3RbIkJUg1A3mChV+twqgxcEx xfjcrJ9/ywzptDbq7OjjNBz7ShdMCAId2u4ivcdmEs0Ig6EM+nLQ/XklTxrsYYpk3DN82j ow63r9tGFVn1RtPKE82JNmEo/E0p0q9dEgSF0K8e1t5qn0ZRMDQZOV1gdVCFNeM7sOwqGS YX9xfM6Vc+UxfN3vW60pX6qqouoYmvWNj+ZNILBQu0ZMNuljmjBKSIFBX97w X-ME-Proxy: Feedback-ID: ibe194615:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 3 Dec 2026 21:20:40 -0500 (EST) From: Mark Pearson To: mpearson-lenovo@squebb.ca Cc: derekjohn.clark@gmail.com, i@rong.moe, hansg@kernel.org, ilpo.jarvinen@linux.intel.com, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 00/13] New Lenovo common WMI driver - tlmi Date: Thu, 3 Dec 2026 21:20:09 -0500 Message-ID: <20261204022032.3074618-1-mpearson-lenovo@squebb.ca> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series introduces support for a new Lenovo 'common WMI' implementation. The Thinkpad, Thinkstation and ThinkCenter FW teams have implemented new WMI methods for interfacing with the BIOS settings. This implementation will be available for 2027 platforms and is intended to be common across the business units. The new driver is called tlmi and can run alongside the existing think-lmi driver. Initially the BIOS's will support both interfaces. The first 5 patches in the series update the existing think-lmi driver with changes that means it can share structures with the new tlmi driver. They also introduce fixes for issues I found when implementing tlmi. The remaining patches introduce the new tlmi functionality. I've tried to break them up into reviewable chunks. The tlmi driver for now offers the same functionality as think-lmi - with support for modifying BIOS settings and authentication options. It also introduces 'platform' settings and 'function' settings. During implementation I needed some functionality to be common between modules. Using the wmi-helpers module seemed a good place for this, but please let me know if it's not suitable. Testing has been done on the X1 Carbon G14, ThinkCenter X Tower and Thinkstation P5 G2. Much of this implementation builds on the recommendations from Armin, Derek and Ilpo from the original RFC. Many thanks for the guidance. Mark Pearson (13): platform/x86: lenovo: think-lmi: Convert name arrays to pointers platform/x86: lenovo: think-lmi: Clean up attributes if not added to list platform/x86: lenovo: think-lmi: cache current value at init platform/x86: lenovo: think-lmi: store attributes as linked list platform/x86: lenovo: tlmi: New tlmi driver for common WMI implementation platform/x86: lenovo: tlmi: Add BIOS attributes sysfs entries platform/x86: lenovo: tlmi: Retrieve auth information platform/x86: lenovo: Move TLMI helper functions into wmi-helpers platform/x86: lenovo: tlmi: Add authentication sysfs entries platform/x86: lenovo: tlmi: Add platform attribute support platform/x86: lenovo: tlmi: Add function attributes support platform/x86: lenovo: tlmi: Add method identifier docs: ABI: sysfs-class-firmware-attributes: Update Lenovo sections .../testing/sysfs-class-firmware-attributes | 39 +- drivers/platform/x86/lenovo/Kconfig | 1 + drivers/platform/x86/lenovo/Makefile | 3 + drivers/platform/x86/lenovo/think-lmi.c | 193 ++-- drivers/platform/x86/lenovo/think-lmi.h | 72 +- drivers/platform/x86/lenovo/tlmi-attr.c | 214 ++++ drivers/platform/x86/lenovo/tlmi-auth.c | 958 ++++++++++++++++++ drivers/platform/x86/lenovo/tlmi-authdata.c | 135 +++ drivers/platform/x86/lenovo/tlmi-config.c | 764 ++++++++++++++ drivers/platform/x86/lenovo/tlmi-function.c | 196 ++++ drivers/platform/x86/lenovo/tlmi-platform.c | 212 ++++ drivers/platform/x86/lenovo/wmi-helpers.c | 65 +- drivers/platform/x86/lenovo/wmi-helpers.h | 5 + 13 files changed, 2788 insertions(+), 69 deletions(-) create mode 100644 drivers/platform/x86/lenovo/tlmi-attr.c create mode 100644 drivers/platform/x86/lenovo/tlmi-auth.c create mode 100644 drivers/platform/x86/lenovo/tlmi-authdata.c create mode 100644 drivers/platform/x86/lenovo/tlmi-config.c create mode 100644 drivers/platform/x86/lenovo/tlmi-function.c create mode 100644 drivers/platform/x86/lenovo/tlmi-platform.c -- 2.43.0