From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Luke Jones <luke@ljones.dev>
Cc: platform-driver-x86@vger.kernel.org,
LKML <linux-kernel@vger.kernel.org>,
Hans de Goede <hdegoede@redhat.com>,
corentin.chary@gmail.com
Subject: Re: [PATCH v2 4/6] platform/x86: asus-armoury: add apu-mem control support
Date: Mon, 12 Aug 2024 10:39:47 +0300 (EEST) [thread overview]
Message-ID: <a663ee3e-1c8b-5e7d-503f-e46641039f16@linux.intel.com> (raw)
In-Reply-To: <d3577748-14b6-4aa4-9f51-069ae9ccff49@app.fastmail.com>
[-- Attachment #1: Type: text/plain, Size: 1229 bytes --]
On Sun, 11 Aug 2024, Luke Jones wrote:
> On Tue, 6 Aug 2024, at 10:20 PM, Ilpo Järvinen wrote:
> > On Tue, 6 Aug 2024, Luke D. Jones wrote:
> >
> > > Implement the APU memory size control under the asus-armoury module using
> > > the fw_attributes class.
> > >
> > > This allows the APU allocated memory size to be adjusted depending on
> > > the users priority. A reboot is required after change.
> > >
> > > Signed-off-by: Luke D. Jones <luke@ljones.dev>
> > > ---
> > > + sysfs_notify(kobj, NULL, attr->attr.name);
> > > +
> > > + asus_set_reboot_and_signal_event();
> > > +
> > > + return count;
> > > +}
> > > +
> > > +static ssize_t apu_mem_possible_values_show(struct kobject *kobj,
> > > + struct kobj_attribute *attr, char *buf)
> > > +{
> > > + return sysfs_emit(buf, "0;1;2;3;4;5;6;7;8\n");
>
> Ack all
>
> > IIRC, space or newline is the usual separator for possible values sysfs
> > files. I don't think I've ever seen ; used.
>
> The docs specify this format. https://github.com/torvalds/linux/blob/5189dafa4cf950e675f02ee04b577dfbbad0d9b1/Documentation/ABI/testing/sysfs-class-firmware-attributes#L56
Okay, I didn't know. Please use what's documented then.
--
i.
next prev parent reply other threads:[~2024-08-12 7:39 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-06 2:07 [PATCH v2 0/6] platform/x86: introduce asus-armoury Luke D. Jones
2024-08-06 2:07 ` [PATCH v2 1/6] platform/x86: asus-wmi: Add quirk for ROG Ally X Luke D. Jones
2024-08-06 7:28 ` Ilpo Järvinen
2024-08-06 2:07 ` [PATCH v2 2/6] platform/x86: asus-armoury: move existing tunings to asus-armoury module Luke D. Jones
2024-08-06 10:16 ` Ilpo Järvinen
2024-08-11 9:52 ` Luke Jones
2024-08-12 7:37 ` Ilpo Järvinen
2024-09-18 8:50 ` Luke Jones
2024-08-11 10:40 ` Luke Jones
2024-08-06 2:07 ` [PATCH v2 3/6] platform/x86: asus-armoury: add dgpu tgp control Luke D. Jones
2024-08-06 10:17 ` Ilpo Järvinen
2024-08-06 2:07 ` [PATCH v2 4/6] platform/x86: asus-armoury: add apu-mem control support Luke D. Jones
2024-08-06 10:20 ` Ilpo Järvinen
2024-08-11 10:05 ` Luke Jones
2024-08-12 7:39 ` Ilpo Järvinen [this message]
2024-08-06 2:07 ` [PATCH v2 5/6] platform/x86: asus-armoury: add core count control Luke D. Jones
2024-08-06 10:32 ` Ilpo Järvinen
2024-08-11 10:33 ` Luke Jones
2024-08-06 2:07 ` [PATCH v2 6/6] asus-wmi: deprecate bios features Luke D. Jones
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=a663ee3e-1c8b-5e7d-503f-e46641039f16@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=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