mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Mark Pearson" <mpearson-lenovo@squebb.ca>
To: "Rong Zhang" <i@rong.moe>
Cc: "Derek J . Clark" <derekjohn.clark@gmail.com>,
	"Hans de Goede" <hansg@kernel.org>,
	"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
	"platform-driver-x86@vger.kernel.org"
	<platform-driver-x86@vger.kernel.org>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 00/13] New Lenovo common WMI driver - tlmi
Date: Fri, 04 Dec 2026 13:22:59 -0500	[thread overview]
Message-ID: <8b92076a-7ed8-426e-9f8b-df8fe0881ae6@app.fastmail.com> (raw)
In-Reply-To: <3e300b22948cc5a9c010180e036d432eb8531db1.camel@rong.moe>

On Fri, Dec 4, 2026, at 12:49 PM, Rong Zhang wrote:
> Hi Mark,
>
> On Fri, 2026-12-04 at 09:42 -0500, Mark Pearson wrote:
>> On Fri, Dec 4, 2026, at 8:19 AM, Rong Zhang wrote:
>> > Hi Mark,
>> > 
>> > Thanks for working on this.
>> > 
>> > On Thu, 2026-12-03 at 21:20 -0500, Mark Pearson wrote:
>> > > 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
>> > 
>> > Sashiko found quite a lot of issues in the series, so I am not going to
>> > seriously review this series yet, in case you'd need to change the design
>> > a lot in the next revision.
>> > 
>> 
>> Yeah....that's going to keep me busy. They didn't show up in my inbox so I had to go looking for them.
>> 
>> I'd been running sashiko with a few tokens I managed to get through work and thought I had it at the stage where it was pretty clean (and I'd run out of tokens). Looks like some new things which is interesting.
>
> I've been doing so, too. I always make stupid mistakes so my Sashiko
> instance helps me get rid most of them before submitting.
>
> My suggestion is to keep Sashiko up to date and choose an appropriate
> model. What model did you use?
>
> If you are using DeepSeek V4.1 Flash 1017, do not set effort to max.
> Sashiko's prompts make it prone to overthink, and such overthink has a
> potential to cause it to focus on minor issues rather than critical ones,
> as well as making it very expensive :-/
>
> If you are using a /chat/completions endpoint, please set
> send_reasoning_content = true, or else the model will lose its mind
> (literally, i.e., losing its chain of thought).
>
> Note that some providers' /chat/completions endpoints return CoT in
> another field called "reasoning", which is unsupported by
> send_reasoning_content. In this case consider switching to api =
> "responses".
>
I haven't spent a lot time playing with it - I have been using it via copilot-cli (how Lenovo gives us a few tokens a month) and there I've been using claude-sonnet-4.5.

Overall it's been quite helpful for ironing out a lot of things I've missed or done wrong. My main issue is that I don't get a lot of tokens a month so I don't iterate much. I can burn thru all my allocation reviewing this 13 patch series (someone else can do the maths...but yeah, it's not a lot). Maybe I should pay for some myself but I've not gotten to that stage yet.

I haven't really gone and tried any other models. On my todo list is to see what I can do locally (I'm fortunate enough to have access to some really quite nice HW....perks of the job) - but just haven't got to it. Maybe over the holidays, but realistically more likely next year.

I'm totally OK if any reviewers ignore my patch series until I've dealt with Sashiko too, FWIW.

Thanks for the tips. I did read the Sashiko guide (and a few blogs) but it's quite tricky to figure out what is effective whilst not expensive etc. I'm not the biggest AI enthusiast (I lean slightly the other way) - but I do recognise how it helps me write better code

Mark

  reply	other threads:[~2026-12-04 18:23 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  2:20 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 ` [PATCH 13/13] docs: ABI: sysfs-class-firmware-attributes: Update Lenovo sections Mark Pearson
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 [this message]
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=8b92076a-7ed8-426e-9f8b-df8fe0881ae6@app.fastmail.com \
    --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®