public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Hans de Goede <hdegoede@redhat.com>
Cc: "Luke D. Jones" <luke@ljones.dev>,
	platform-driver-x86@vger.kernel.org,  corentin.chary@gmail.com,
	mario.limonciello@amd.com,  LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 0/5] platform/x86: introduce asus-bioscfg
Date: Tue, 16 Jul 2024 18:11:46 +0300 (EEST)	[thread overview]
Message-ID: <e9f4fb37-5277-a7f0-2bec-8a6909b4e674@linux.intel.com> (raw)
In-Reply-To: <8273ed57-4c65-41da-ad7d-907acf168c07@redhat.com>

On Tue, 16 Jul 2024, Hans de Goede wrote:
> On 7/16/24 7:16 AM, Luke D. Jones wrote:
> > This is the first major patch I've ever done with the intention of
> > introducing a new module, so it's highly likely I've made some mistakes
> > or misunderstood something.
> > 
> > TL;DR:
> > 1. introduce new module to contain bios attributes, using fw_attributes_class
> > 2. deprecate all possible attributes from asus-wmi that were added ad-hoc
> > 3. remove those in the next LTS cycle
> > 
> > The idea for this originates from a conversation with Mario Limonciello
> > https://lore.kernel.org/platform-driver-x86/371d4109-a3bb-4c3b-802f-4ec27a945c99@amd.com/
> > 
> > It is without a doubt much cleaner to use, easier to discover, and the
> > API is well defined as opposed to the random clutter of attributes I had
> > been placing in the platform sysfs.
> 
> This is a bit of a novel use of the fw_attributes_class and I'm not
> entirely sure of what to think of this.
> 
> The fw_attributes_class API was designed for (mostly enterprise)
> x86 machines where it is possible to change all BIOS settings directly
> from the OS without entering the BIOS.
> 
> Here some ACPI or WMI function is present to actually enumerate all
> the BIOS options (which can be set this way) and get there type.
> 
> IOW there is not a static list of options inside the driver, nor
> is there special handling in the driver other then handling differences
> per type.
> 
> And if a new BIOS version has new options or a different machine model
> has different options then these are discovered automatically.
> 
> This new use is quite different from this. Although I do see that
> at least for the attributes using WMI_STORE_INT() + WMI_SHOW_INT()
> that there is quite some commonality between some of the attributes.
> 
> I see how using the existing firmware-attributes class API definition
> for this, including allow tweaking this with some of the fwupd
> firmware-attributes class commandline util work Mario did is a useful
> thing to have.
> 
> I guess using the firmware-attributes class for this is ok, but
> this _must_ not be named bioscfg, since the existing hp-bioscfg
> driver is a "classic" firmware-attributes drivers enumerating all
> the options through BIOS provided enumeration functions and I want
> the name to make it clear that this is not that. And the Dell
> implementation is called dell-wmi-sysman so lets also avoid sysman
> as name.
> 
> Maybe call it "asus-bios-tunables" ?   And then if Asus actually
> implements some more classic firmware-attributes enumerable interface
> we can use "asus-bioscfg" for that.
> 
> Mario, Ilpo what is your opinion on this ?

What you suggested sounds good to me.

-- 
 i.


  reply	other threads:[~2024-07-16 15:11 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-16  5:16 [PATCH 0/5] platform/x86: introduce asus-bioscfg Luke D. Jones
2024-07-16  5:16 ` [PATCH 1/5] platform/x86 asus-bioscfg: move existing tunings to asus-bioscfg module Luke D. Jones
2024-07-16  9:45   ` Ilpo Järvinen
2024-07-16 10:41     ` Luke Jones
2024-07-16 11:06       ` Ilpo Järvinen
2024-07-16  9:50   ` Hans de Goede
2024-07-16 10:48     ` Luke Jones
2024-07-16  5:16 ` [PATCH 2/5] platform/x86: asus-bioscfg: add dgpu tgp control Luke D. Jones
2024-08-21 21:18   ` Mario Limonciello
2024-07-16  5:16 ` [PATCH 3/5] platform/x86: asus-bioscfg: add apu-mem control support Luke D. Jones
2024-07-16  5:16 ` [PATCH 4/5] platform/x86: asus-bios: add core count control Luke D. Jones
2024-07-16  9:25   ` Hans de Goede
2024-07-16  9:41     ` Luke Jones
2024-07-16  9:43       ` Luke Jones
2024-07-16  5:16 ` [PATCH 5/5] asus-wmi: deprecate bios features Luke D. Jones
2024-07-16  9:20 ` [PATCH 0/5] platform/x86: introduce asus-bioscfg Hans de Goede
2024-07-16 15:11   ` Ilpo Järvinen [this message]
2024-07-17  2:34     ` Luke Jones
2024-08-05 15:18       ` Hans de Goede
2024-08-05 21:41         ` Luke Jones
2024-08-06  9:34           ` Hans de Goede
2024-08-21 21:16             ` Mario Limonciello

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=e9f4fb37-5277-a7f0-2bec-8a6909b4e674@linux.intel.com \
    --to=ilpo.jarvinen@linux.intel.com \
    --cc=corentin.chary@gmail.com \
    --cc=hdegoede@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luke@ljones.dev \
    --cc=mario.limonciello@amd.com \
    --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