[PATCH 00/13] New Lenovo common WMI driver - tlmi

From: Mark Pearson

Date: Thu Dec 03 2026 - 21:20:54 EST


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