mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Mark Pearson" <mpearson-lenovo@squebb.ca>
To: "Rafael J. Wysocki" <rafael@kernel.org>,
	"Armin Wolf" <W_Armin@gmx.de>,
	"Daniel Lezcano" <daniel.lezcano@oss.qualcomm.com>,
	"Hans de Goede" <hansg@kernel.org>
Cc: "Jonathan Corbet" <corbet@lwn.net>,
	"Shuah Khan" <skhan@linuxfoundation.org>,
	"Viresh Kumar" <viresh.kumar@linaro.org>,
	"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
	"Maximilian Luz" <luzmaximilian@gmail.com>,
	"Shyam Sundar S K" <Shyam-sundar.S-k@amd.com>,
	"Derek J . Clark" <derekjohn.clark@gmail.com>,
	"Daniel Lezcano" <daniel.lezcano@kernel.org>,
	"Zhang Rui" <rui.zhang@intel.com>,
	"Lukasz Luba" <lukasz.luba@arm.com>,
	"Jai Luthra" <jai.luthra@ideasonboard.com>,
	"Greg KH" <gregkh@linuxfoundation.org>,
	"Jack Wu" <jackbb_wu@compal.com>,
	"Mario Limonciello" <superm1@kernel.org>,
	"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
	linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org,
	linux-pm@vger.kernel.org,
	"platform-driver-x86@vger.kernel.org"
	<platform-driver-x86@vger.kernel.org>,
	"Kurt Borja" <kuurtb@gmail.com>
Subject: Re: [PATCH v1 3/4] platform profile: Add firmware-neutral aggregate sysfs interface
Date: Thu, 15 Oct 2026 14:04:38 -0400	[thread overview]
Message-ID: <1cba0f2a-38cd-42b2-a773-9dca5d7519e5@app.fastmail.com> (raw)
In-Reply-To: <CAJZ5v0jQQsXP4v7dymuHZhy2oVjPwV9eXhqV4bGPUgMyGyUsUQ@mail.gmail.com>


On Thu, Oct 15, 2026, at 7:30 AM, Rafael J. Wysocki (Intel) wrote:
> On Wed, Oct 14, 2026 at 11:31 PM Armin Wolf <W_Armin@gmx.de> wrote:
>>
>> Am 14.10.26 um 15:24 schrieb Daniel Lezcano:
>>
>> > The per-provider class interface is firmware-independent, but system-
>> > wide profile selection is only exposed under /sys/firmware/acpi.
>> >
>> > Add /sys/kernel/platform_profile/{choices,profile}, sharing the existing
>> > aggregate callbacks and semantics with the legacy interface. Keep
>> > attributes hidden until a provider is registered and remove them after
>> > the last provider.
>> >
>> > Notify both aggregate frontends on profile changes. Also notify the
>> > provider class device on a direct profile write, matching its documented
>> > POLLPRI ABI. Restore aggregate visibility after a failed registration.
>>
>> IMHO the aggregate sysfs interface only exists for backwards-compatibility,
>> so i would be very happy if you could just make the associated code optional
>> and instead teach platform-profiles-daemon to use the individual class devices
>> instead.
>
> It is not just a matter of opinion AFAICS, the aggregate interface has
> been regarded as legacy for quite a while (see commit 778b94d7ac17
> "ACPI: platform_profile: Add support for hidden choices" for example)
> and it was retained exactly for backwards compatibility reasons IIRC.
>
> I'm with Armin on this.
>
> Thanks!

I don't think we can get rid of the legacy aggregate interface - which I think is what you and Armin are asking for? What does making it optional mean?

Reading through the patch series it seemed quite reasonable to me to move it out from under ACPI but still have the old interface working. What are the alternatives?

User space (and users) are still using the aggregate interface in my experience

Mark

  reply	other threads:[~2026-10-15 18:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-14 13:24 [PATCH v1 0/4] Make platform profiles firmware independent Daniel Lezcano
2026-10-14 13:24 ` [PATCH v1 1/4] platform profile: Separate handler locking from sysfs lifetime Daniel Lezcano
2026-10-14 13:24 ` [PATCH v1 2/4] platform profile: Extract the core from ACPI Daniel Lezcano
2026-10-14 13:24 ` [PATCH v1 3/4] platform profile: Add firmware-neutral aggregate sysfs interface Daniel Lezcano
2026-10-14 21:31   ` Armin Wolf
2026-10-15 11:30     ` Rafael J. Wysocki (Intel)
2026-10-15 18:04       ` Mark Pearson [this message]
2026-10-15 18:28         ` Mario Limonciello
2026-10-15 18:33           ` Rafael J. Wysocki (Intel)
2026-10-15 18:42             ` Mario Limonciello
2026-10-15 19:28               ` Mark Pearson
2026-10-15 18:28         ` Rafael J. Wysocki (Intel)
2026-10-14 13:24 ` [PATCH v1 4/4] platform profile: Document firmware-independent profile selection Daniel Lezcano

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=1cba0f2a-38cd-42b2-a773-9dca5d7519e5@app.fastmail.com \
    --to=mpearson-lenovo@squebb.ca \
    --cc=Shyam-sundar.S-k@amd.com \
    --cc=W_Armin@gmx.de \
    --cc=corbet@lwn.net \
    --cc=daniel.lezcano@kernel.org \
    --cc=daniel.lezcano@oss.qualcomm.com \
    --cc=derekjohn.clark@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=hansg@kernel.org \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=jackbb_wu@compal.com \
    --cc=jai.luthra@ideasonboard.com \
    --cc=kuurtb@gmail.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=lukasz.luba@arm.com \
    --cc=luzmaximilian@gmail.com \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=rafael@kernel.org \
    --cc=rui.zhang@intel.com \
    --cc=skhan@linuxfoundation.org \
    --cc=superm1@kernel.org \
    --cc=viresh.kumar@linaro.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®