mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mark Pearson <mpearson-lenovo@squebb.ca>
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 13/13] docs: ABI: sysfs-class-firmware-attributes: Update Lenovo sections
Date: Thu,  3 Dec 2026 21:20:22 -0500	[thread overview]
Message-ID: <20261204022032.3074618-14-mpearson-lenovo@squebb.ca> (raw)
In-Reply-To: <20261204022032.3074618-1-mpearson-lenovo@squebb.ca>

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@squebb.ca>
---
 .../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@squebb.ca>
 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


  parent reply	other threads:[~2026-12-04  2:20 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  2:20 [PATCH 00/13] New Lenovo common WMI driver - tlmi Mark Pearson
2026-12-04  2:20 ` [PATCH 01/13] platform/x86: lenovo: think-lmi: Convert name arrays to pointers Mark Pearson
2026-12-04  2:20 ` [PATCH 02/13] platform/x86: lenovo: think-lmi: Clean up attributes if not added to list Mark Pearson
2026-12-04 13:20   ` Rong Zhang
2026-12-04 15:09     ` Mark Pearson
2026-12-04  2:20 ` [PATCH 03/13] platform/x86: lenovo: think-lmi: cache current value at init Mark Pearson
2026-12-04 13:28   ` Rong Zhang
2026-12-04 15:14     ` Mark Pearson
2026-12-04  2:20 ` [PATCH 04/13] platform/x86: lenovo: think-lmi: store attributes as linked list Mark Pearson
2026-12-04 13:30   ` Rong Zhang
2026-12-04 15:21     ` Mark Pearson
2026-12-04 16:10       ` Rong Zhang
2026-12-04  2:20 ` [PATCH 05/13] platform/x86: lenovo: tlmi: New tlmi driver for common WMI implementation Mark Pearson
2026-12-04 13:41   ` Rong Zhang
2026-12-04 15:27     ` Mark Pearson
2026-12-05  9:54   ` kernel test robot
2026-12-05  9:55   ` kernel test robot
2026-12-04  2:20 ` [PATCH 06/13] platform/x86: lenovo: tlmi: Add BIOS attributes sysfs entries Mark Pearson
2026-12-04 13:44   ` Rong Zhang
2026-12-04 15:41     ` Mark Pearson
2026-12-04 17:02       ` Rong Zhang
2026-12-04  2:20 ` [PATCH 07/13] platform/x86: lenovo: tlmi: Retrieve auth information Mark Pearson
2026-12-04 13:48   ` Rong Zhang
2026-12-04 15:44     ` Mark Pearson
2026-12-04 17:14       ` Rong Zhang
2026-12-04 17:26         ` Mark Pearson
2026-12-04  2:20 ` [PATCH 08/13] platform/x86: lenovo: Move TLMI helper functions into wmi-helpers Mark Pearson
2026-12-04 13:49   ` Rong Zhang
2026-12-04 15:50     ` Mark Pearson
2026-12-04 17:19       ` Rong Zhang
2026-12-04 17:27         ` Mark Pearson
2026-12-04  2:20 ` [PATCH 09/13] platform/x86: lenovo: tlmi: Add authentication sysfs entries Mark Pearson
2026-12-04 13:52   ` Rong Zhang
2026-12-05  9:55   ` kernel test robot
2026-12-04  2:20 ` [PATCH 10/13] platform/x86: lenovo: tlmi: Add platform attribute support Mark Pearson
2026-12-04  2:20 ` [PATCH 11/13] platform/x86: lenovo: tlmi: Add function attributes support Mark Pearson
2026-12-04  2:20 ` [PATCH 12/13] platform/x86: lenovo: tlmi: Add method identifier Mark Pearson
2026-12-04  2:20 ` Mark Pearson [this message]
2026-12-04 13:19 ` [PATCH 00/13] New Lenovo common WMI driver - tlmi Rong Zhang
2026-12-04 14:42   ` Mark Pearson
2026-12-04 17:49     ` Rong Zhang
2026-12-04 18:22       ` Mark Pearson
2026-12-04 20:04         ` Rong Zhang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261204022032.3074618-14-mpearson-lenovo@squebb.ca \
    --to=mpearson-lenovo@squebb.ca \
    --cc=derekjohn.clark@gmail.com \
    --cc=hansg@kernel.org \
    --cc=i@rong.moe \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=platform-driver-x86@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®