From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=202.12.124.147 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796408602; b=qyNOaXQ2tFbxYaqnfxnvUr7DExLnuRINrq2mwYLbCc74ckfjTeygjPN3pGsHAqHkRNnE ut/gUWtyd8gsFaXCzXy5WD0J+D539A1zV5b1Hx/4bfQjnfMcWEEs1hxtYAlR4F7zsrCm+ UG+W/uyfxicuBQTOFmUUKRc2WRfZunebtlzK53YW94UIa4S3i2AKDUQQ/n0XrY+hJv3iH 6NsXGhCri1/8k5Fv5NWx7MOdSCvDd1T2w6O98iuR4Wb3dTeRUuA9nlYWafTzHXF5sWDQH c5rlimcQV69FTzEumXftigw41lJslGOhNOTDxq0mMtLgciF8tcCYb5EYL46tk9O9ZfQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796408602; h=DMARC-Filter:Received:Received:DKIM-Signature:DKIM-Signature: X-DKIM2-Info:DKIM2-Signature:X-DKIM2-Info:Message-Instance: X-ME-Sender:X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID:Received:X-Mailer: MIME-Version:X-ThreadId:Date:From:To:Cc:Message-Id:In-Reply-To: References:Subject:Content-Type:Content-Transfer-Encoding; bh=Ra38B8ZFk+sd6tgRI57GlkKbV1mAVVx4xEB0UggXdjQ=; b=MevpobqlbI8UYIHx3IYJ1K7yfX9JX98YeCxieLO9hgwJ4w8kJbq76o/WsnQHQ0FerBJQ A6r/nivj3pEo9K0gQmZ3M71YV0sQui8wyUFr+qLlDgrjQ2Ju8NPe0cSJ6srUDOWeL0PCh 3glzfoSDxwvRSwp0ROHErDy7okoxryaWQsgCbXYjFF80iSFWLb301yzO9+azdTFR10Awd 8223WG+elSu0ksNKI0nCkZrfrQ5QThZB982bOcFCfoRc3HQV/PPEuhOPd7fV7zxv5J4rk i9JRcOLwo9+PjXf4RG18giJLu/YvvHL2UG7mdSA07e5u8VCQgJWoz57c/yzF3XxQarg== 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=Cxa5VCWg; dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm1 header.b=l1+1WtUn; arc=none smtp.remote-ip=202.12.124.147 Received: from fout-b4-smtp.messagingengine.com (fout-b4-smtp.messagingengine.com [202.12.124.147]) (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 487BC606A32C for ; Fri, 4 Dec 2026 18:23:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 487BC606A32C 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=Cxa5VCWg; dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm1 header.b=l1+1WtUn Received: from stl-compute-04.internal (stl-compute-04.internal [10.204.2.64]) by mailfout.stl.internal (Postfix) with ESMTP id 957221D000F4 for ; Fri, 4 Dec 2026 13:23:21 -0500 (EST) Received: from stl-imap-02 ([10.204.2.93]) by stl-compute-04.internal (MEProxy); Fri, 04 Dec 2026 13:23:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=squebb.ca; h=cc :cc:content-transfer-encoding:content-type: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=1796408601; x=1796495001; bh=Ra38B8ZFk+sd6tgRI57GlkKbV1mAVVx4xEB0UggXdjQ=; b= Cxa5VCWgdN59Koxy6Bd04VKwotoNg9z08lhrMd7G+q5w0eZKsTZSAoXeFTts1wp+ bNv8Gkg5jaQ+VovYPJFiywygTlzMT9bOL9d00akIT9q3YAjiqmX0VW5r0nbk/Gac vvf3CAfyiZvXvO0i9vjHRfF1Yln4kKOEitJVz5CFZgJPjPcUzcNr/ZBGcB17XVQO yFwl5qUSaaVXucVAj7gJ+PCJDDg+nrVKl1Q5HgXMLPm+1h+wMOeQ9rb3hmSn2KHo zKTsqH/qtfqPhCYjVBuniVTl0twGOG8pciWQ4PfTzuZCzgyv1dLOYsDBFpPnsiyG igJIp8mU1Qwi6AHLYoCCXA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type: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=fm1; t=1796408601; x= 1796495001; bh=Ra38B8ZFk+sd6tgRI57GlkKbV1mAVVx4xEB0UggXdjQ=; b=l 1+1WtUnrkP5co6BYUyz/iqrS4t3Mdy7hklx+dugIi461IiBRZ5qxhVAywqkGOtC5 HANkDNc/Z0a/8AFUDHZlaUK0ZkGdZQJwBc1QKFbI13aCil53+/GBWoMyNsyPy9zw Hj028p3BwWytg60y20c2YVaVndcjWDwjgHFVqIIU60k7SePIB8F7dAwjCtvX/03a qTB1fZSdZ9CYsoq5GuKG1JQGTNZL/8Ycl3u3WMpJLzcDsZOlG6uQZPA0tWJr+gN8 BjUoyA+tAFXF8CQNDzgwc++tEtg0R1fPm7SS7a7gWQ4YviWDrpClB+GI7HkCeAkB D2dsoear35s41A+o095hQ== 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=1796408601; d=squebb.ca; mf=PG1wZWFyc29uLWxlbm92b0BzcXVlYmIuY2E+; rt=PGxpbnV4LWtlcm5lbEB2Z2VyLmtlcm5lbC5vcmc+; s=fm1:rsa-sha256:fXa916fyEngHrSlm3+3FGpo6zWBIv4LTjyKlPTqkFM70HGa 9pVlz1We06P1CHWUfIkHIoU8daWdOhL5OjgYQTP1yOaABWBIy6vRG1Hu9NqY9Xkw MuNEr6FNLJfkx3blu//A/nKJTJL1fmyfosnLit6gYev16qMZlPAClkw7ypSdhIzB 7LyCwkWou0XyfgHt4D32isZliN8XzE0CbH7JwYC0HKFChYTAinlDTsTuAXkJiPPT SoYyNNRwPDSqAn3NBWw/7gq9nT8VYQqFGPnrp+DF+P719CzbeIw0qpHoXz6AUVmL 5X8uq2HL3SysCHBNEEajAcQlIdgjtBbj469LKjg==; 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=12; hn=cc,content-transfer-encoding,content-type,date,feedback-id, from,in-reply-to,message-id,mime-version,references,subject,to; Message-Instance: m=1; h=sha256:6mTHf6WGaXwDPVt5Ow1Zr3guVD2HcCRQElrrP/+gD4s=:y5a1sQ4EqKH5u0gxXn50Ky2hh9n8P6GxCXZKTC1BR7Y=; X-ME-Sender: X-ME-Proxy-Cause: dmFkZTE8cGnX00xwLDXWp6cv22BmPfGkph65N8H0H36NxCEPn+Ts+CXbe7QpdkyD3drR8Z u4kl7k8QY/bTAN9rrkQkA+YYXbpbBWPjyi8ivUFoqV/2tv6rzTFSFBKtYydsIYPJ9RgrHk pNQDNyvP1a/Sn40GHvW/iLCDCr85D6F2RCUmmlP8PfKrTow098rw0cHBztyjhEVqJWA6+K OvUJDtrD0xCXOXzgnoHfyyJ+vq1K/LGmYfS6/wqdXoqRRWMsnqYuNKVywLpG7/v54CjDw2 QgoX59mdfSyBP0li/i7zhgZ7jErHwOpWG/5k+lcIm4XhUriTxhl4bMb9il1RcaAB9Eodj0 UQhgqdW2T5Z4PK/U8dNiTA7Syx38CmzieAh0JwpE6zs/pxBiY8neYFN0jMNiVTCPxIxGtX wAImGDEXgfMQwqZQiQU/0+yUK8dw/JjtHxYumnl5MRRYTOOLcDT8V1nh5xJflCkt1Hv/7H 2gg30+ElgTWckBeYRFubStR4OzOkusKS2alzozfLHQZx0dk4L9MGHez+vJxcmgMQM/avSA O8nBu9GmW25QZbOo76ffvkCK92vHyHKrH3hBtMyHxm3WI6K46gYQe9ZwkVY7PklswuchMw 4aBV/haGGla7h++nUpWnbUBeWDJn2zQy42ZNmSb7+LNynxHe/4bgzRBxpFmA X-ME-Proxy: Feedback-ID: ibe194615:Fastmail Received: by mailuser.stl.internal (Postfix, from userid 501) id 1D4982C00085; Fri, 4 Dec 2026 13:23:21 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface 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 X-ThreadId: Adb9OXoc-_hZ Date: Fri, 04 Dec 2026 13:22:59 -0500 From: "Mark Pearson" To: "Rong Zhang" Cc: "Derek J . Clark" , "Hans de Goede" , =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , "platform-driver-x86@vger.kernel.org" , linux-kernel@vger.kernel.org Message-Id: <8b92076a-7ed8-426e-9f8b-df8fe0881ae6@app.fastmail.com> In-Reply-To: <3e300b22948cc5a9c010180e036d432eb8531db1.camel@rong.moe> References: <20261204022032.3074618-1-mpearson-lenovo@squebb.ca> <43de629a47286b8681658ed4bf0e3cf09a74e3b1.camel@rong.moe> <1ffaaa56-46b2-48a6-88b4-60a02e6d7dd8@app.fastmail.com> <3e300b22948cc5a9c010180e036d432eb8531db1.camel@rong.moe> Subject: Re: [PATCH 00/13] New Lenovo common WMI driver - tlmi Content-Type: text/plain Content-Transfer-Encoding: 7bit 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