From: Matthew Schwartz <matthew.schwartz@linux.dev>
To: "Derek J. Clark" <derekjohn.clark@gmail.com>,
"Hans de Goede" <hdegoede@redhat.com>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
Cc: Armin Wolf <W_Armin@gmx.de>, Jonathan Corbet <corbet@lwn.net>,
Mario Limonciello <superm1@kernel.org>,
Luke Jones <luke@ljones.dev>, Xino Ni <nijs1@lenovo.com>,
Zhixin Zhang <zhangzx36@lenovo.com>,
Mia Shao <shaohz1@lenovo.com>,
Mark Pearson <mpearson-lenovo@squebb.ca>,
"Pierre-Loup A . Griffais" <pgriffais@valvesoftware.com>,
"Cody T . -H . Chiu" <codyit@gmail.com>,
John Martens <johnfanv2@gmail.com>,
platform-driver-x86@vger.kernel.org, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 0/4] platform/x86: Add Lenovo Gaming Series WMI Drivers
Date: Wed, 26 Feb 2025 11:07:36 -0800 [thread overview]
Message-ID: <1d495444-5287-453f-8d20-6d578c4edb36@linux.dev> (raw)
In-Reply-To: <20250225220037.16073-1-derekjohn.clark@gmail.com>
For the series on both Lenovo Legion Go and Legion Go S, all platform profile selection and power controls have been working consistently over several hours with numerous adjustments and many suspend/resume cycles. Tested on Arch Linux w/ kernel 6.14-rc1 compiled from platform-drivers-x86.
Tested-by: Matthew Schwartz <matthew.schwartz@linux.dev>
On 2/25/25 1:59 PM, Derek J. Clark wrote:
> Adds support for the Lenovo "Gaming Series" of laptop hardware that use
> WMI interfaces that control various power settings. There are multiple WMI
> interfaces that work in concert to provide getting and setting values as
> well as validation of input. Currently only the "Gamezone", "Other
> Mode", and "LENOVO_CAPABILITY_DATA_01" interfaces are implemented, but
> I attempted to structure the driver so that adding the "Custom Mode",
> "Lighting", and other data block interfaces would be trivial in a later
> patches.
>
> This driver is distinct from, but should be considered a replacement for
> this patch:
> https://lore.kernel.org/all/20241118100503.14228-1-jonmail@163.com/
>
> This driver attempts to standardize the exposed sysfs by mirroring the
> asus-armoury driver currently under review. As such, a lot of
> inspiration has been drawn from that driver.
> https://lore.kernel.org/all/20240930000046.51388-1-luke@ljones.dev/
>
> The drivers have been tested by me on the Lenovo Legion Go and Legion Go
> S.
>
> v3:
> - Added notifier chain to Gamezone and Other Mode drivers.
> - Added component framework to lenovo-wmi-other driver with
> lenovo-wmi-capdata01 acting as a component.
> - Completed all suggestions from v2.
> - Checkpatch produces CHECK complaints about the Other Mode macros
> reusing some variable names. This don't appear to create the condition
> it highlights in my testing.
>
> v2:
> https://lore.kernel.org/platform-driver-x86/20250102004854.14874-1-derekjohn.clark@gmail.com/t/#m9682cee65783ff3a9e927f2ad1f55c4cbfc37615
> v1:
> https://lore.kernel.org/platform-driver-x86/CAFqHKTna+kJpHLo5s4Fm1TmHcSSqSTr96JHDm0DJ0dxsZMkixA@mail.gmail.com/T/#t
>
> Suggested-by: Mario Limonciello <superm1@kernel.org>
> Signed-off-by: Derek J. Clark <derekjohn.clark@gmail.com>
> Derek J. Clark (4):
> platform/x86: Add lenovo-wmi drivers Documentation
> platform/x86: Add Lenovo Gamezone WMI Driver
> platform/x86: Add Lenovo Capability Data 01 WMI Driver
> platform/x86: Add Lenovo Other Mode WMI Driver
>
> .../wmi/devices/lenovo-wmi-gamezone.rst | 355 +++++++++++
> .../wmi/devices/lenovo-wmi-other-method.rst | 142 +++++
> MAINTAINERS | 12 +
> drivers/platform/x86/Kconfig | 35 ++
> drivers/platform/x86/Makefile | 4 +
> drivers/platform/x86/lenovo-wmi-capdata01.c | 140 +++++
> drivers/platform/x86/lenovo-wmi-gamezone.c | 374 ++++++++++++
> drivers/platform/x86/lenovo-wmi-other.c | 549 ++++++++++++++++++
> drivers/platform/x86/lenovo-wmi.c | 77 +++
> drivers/platform/x86/lenovo-wmi.h | 94 +++
> 10 files changed, 1782 insertions(+)
> create mode 100644 Documentation/wmi/devices/lenovo-wmi-gamezone.rst
> create mode 100644 Documentation/wmi/devices/lenovo-wmi-other-method.rst
> create mode 100644 drivers/platform/x86/lenovo-wmi-capdata01.c
> create mode 100644 drivers/platform/x86/lenovo-wmi-gamezone.c
> create mode 100644 drivers/platform/x86/lenovo-wmi-other.c
> create mode 100644 drivers/platform/x86/lenovo-wmi.c
> create mode 100644 drivers/platform/x86/lenovo-wmi.h
>
next prev parent reply other threads:[~2025-02-26 19:07 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-25 21:59 [PATCH v3 0/4] platform/x86: Add Lenovo Gaming Series WMI Drivers Derek J. Clark
2025-02-25 21:59 ` [PATCH v3 1/4] platform/x86: Add lenovo-wmi drivers Documentation Derek J. Clark
2025-02-26 6:36 ` Mario Limonciello
2025-02-27 0:21 ` Derek John Clark
2025-03-01 18:07 ` kernel test robot
2025-03-07 21:51 ` Armin Wolf
2025-03-10 21:36 ` Derek John Clark
2025-02-25 21:59 ` [PATCH v3 2/4] platform/x86: Add Lenovo Gamezone WMI Driver Derek J. Clark
2025-02-26 6:41 ` Mario Limonciello
2025-02-27 0:42 ` Derek John Clark
2025-02-27 19:54 ` Mario Limonciello
2025-03-03 4:03 ` kernel test robot
2025-03-07 22:47 ` Armin Wolf
2025-03-08 0:41 ` Armin Wolf
2025-03-10 22:20 ` Derek John Clark
2025-03-11 20:21 ` Armin Wolf
2025-03-10 22:11 ` Derek John Clark
2025-03-11 20:30 ` Armin Wolf
2025-03-14 21:29 ` Derek John Clark
2025-03-16 0:01 ` Armin Wolf
2025-02-25 21:59 ` [PATCH v3 3/4] platform/x86: Add Lenovo Capability Data 01 " Derek J. Clark
2025-02-25 22:33 ` Derek J. Clark
2025-03-07 23:04 ` Armin Wolf
2025-03-10 22:26 ` Derek John Clark
2025-03-11 20:33 ` Armin Wolf
2025-03-16 17:00 ` Derek John Clark
2025-02-25 21:59 ` [PATCH v3 4/4] platform/x86: Add Lenovo Other Mode " Derek J. Clark
2025-02-26 6:47 ` Mario Limonciello
2025-02-27 0:56 ` Derek John Clark
2025-02-27 19:57 ` Mario Limonciello
2025-03-03 0:08 ` kernel test robot
2025-03-08 0:24 ` Armin Wolf
2025-03-10 22:55 ` Derek John Clark
2025-03-11 20:44 ` Armin Wolf
2025-02-26 19:07 ` Matthew Schwartz [this message]
2025-03-06 22:58 ` [PATCH v3 0/4] platform/x86: Add Lenovo Gaming Series WMI Drivers Armin Wolf
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=1d495444-5287-453f-8d20-6d578c4edb36@linux.dev \
--to=matthew.schwartz@linux.dev \
--cc=W_Armin@gmx.de \
--cc=codyit@gmail.com \
--cc=corbet@lwn.net \
--cc=derekjohn.clark@gmail.com \
--cc=hdegoede@redhat.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=johnfanv2@gmail.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luke@ljones.dev \
--cc=mpearson-lenovo@squebb.ca \
--cc=nijs1@lenovo.com \
--cc=pgriffais@valvesoftware.com \
--cc=platform-driver-x86@vger.kernel.org \
--cc=shaohz1@lenovo.com \
--cc=superm1@kernel.org \
--cc=zhangzx36@lenovo.com \
/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;
as well as URLs for NNTP newsgroup(s).