[PATCH 13/13] docs: ABI: sysfs-class-firmware-attributes: Update Lenovo sections

From: Mark Pearson

Date: Thu Dec 03 2026 - 21:21:37 EST


With the introduction of the tlmi driver:
- There is a new setting for determining regular, platform or function
settings
- Some of the settings used for the older think-lmi driver are no longer
relevant

Add the differences to the documentations.

Signed-off-by: Mark Pearson <mpearson-lenovo@xxxxxxxxx>
---
.../testing/sysfs-class-firmware-attributes | 39 +++++++++++++++++--
1 file changed, 35 insertions(+), 4 deletions(-)

diff --git a/Documentation/ABI/testing/sysfs-class-firmware-attributes b/Documentation/ABI/testing/sysfs-class-firmware-attributes
index 40e35fe97a7d..387698234587 100644
--- a/Documentation/ABI/testing/sysfs-class-firmware-attributes
+++ b/Documentation/ABI/testing/sysfs-class-firmware-attributes
@@ -146,6 +146,21 @@ Description:
the list in a different order to current_value alters
the priority order for the particular attribute.

+ Lenovo specific class extensions
+ --------------------------------
+
+ On Lenovo systems, using the tlmi driver, the following additional attributes are
+ available:
+
+ method:
+ A file that can be read to determine if the attribute is a standard
+ BIOS setting, a platform setting or a functional setting.
+ Platform settings are less standard and are not available in the BIOS
+ menu, but behave the same as regular settings (save/reboot required to activate)
+ Function settings are effective immediately.
+
+ Known methods: setting, platform, function
+
What: /sys/class/firmware-attributes/*/authentication/
Date: February 2021
KernelVersion: 5.11
@@ -245,12 +260,14 @@ Description:

lenovo_encoding:
The encoding method that is used. This can be either "ascii"
- or "scancode". Default is set to "ascii"
+ or "scancode". Default is set to "ascii".
+ This method is not used in the newer tlmi driver

lenovo_kbdlang:
The keyboard language method that is used. This is generally a
two char code (e.g. "us", "fr", "gr") and may vary per platform.
- Default is set to "us"
+ Default is set to "us".
+ This method is not used in the newer tlmi driver

level:
Available for HDD and NVMe authentication to set 'user' or 'master'
@@ -259,7 +276,8 @@ Description:
unlock the drive at boot. If both master and user passwords are set
then either can be used. If a master password is set a user password
is required.
- This attribute defaults to 'user' level
+ This attribute defaults to 'user' level for think-lmi.
+ This attribute defaults to 'master' level for the newer tlmi driver.

index:
Used with HDD and NVME authentication to set the drive index
@@ -389,6 +407,7 @@ Date: August 2023
KernelVersion: 6.6
Contact: Mark Pearson <mpearson-lenovo@xxxxxxxxx>
Description:
+ For the older think-lmi driver:
On Lenovo platforms there is a limitation in the number of times an attribute can be
saved. This is an architectural limitation and it limits the number of attributes
that can be modified to 48.
@@ -417,6 +436,18 @@ Description:

# echo save > /sys/class/firmware-attributes/thinklmi/attributes/save_settings

+ For the newer tlmi driver:
+ A save is needed after any changes are made to either 'setting' or 'platform' attributes.
+ This requires writing 'save', the same way as the 'bulk' mode in the think-lmi driver.
+ A save is not needed with 'function' attributes.
+ See 'method' above for more details on the different types of attribute.
+
+ Read the attribute to confirm if a save is needed. 1 means required, 0 means not required.
+ E.g::
+
+ # cat /sys/class/firmware-attributes/tlmi/attributes/save_settings
+ 1
+
What: /sys/class/firmware-attributes/*/attributes/debug_cmd
Date: July 2021
KernelVersion: 5.14
@@ -427,7 +458,7 @@ Description:
use it to enable extra debug attributes or BIOS features for testing purposes.

Note that any changes to this attribute requires a reboot for changes to take effect.
-
+ This attribute is only present on the think-lmi driver.

HP specific class extensions - Secure Platform Manager (SPM)
--------------------------------
--
2.43.0