[PATCH v4] drm/i915/slpc: Add sysfs for SLPC power profiles
Michal Wajdeczko
michal.wajdeczko at intel.com
Sat Jan 18 17:47:27 UTC 2025
On 17.01.2025 22:57, Vinay Belgaumkar wrote:
> Default SLPC power profile is Base(0). Power Saving mode(1)
> has conservative up/down thresholds and is suitable for use with
> apps that typically need to be power efficient.
>
> Selected power profile will be displayed in this format-
>
> $ cat slpc_power_profile
>
> [base] power_saving
>
> $ echo power_saving > slpc_power_profile
> $ cat slpc_power_profile
>
> base [power_saving]
>
is that output aligned with the sysfs rules? from [1]
"Attributes should be ASCII text files, preferably with only one value
per file. It is noted that it may not be efficient to contain only one
value per file, so it is socially acceptable to express an array of
values of the same type.
Mixing types, expressing multiple lines of data, and doing fancy
formatting of data is heavily frowned upon. Doing these things may get
you publicly humiliated and your code rewritten without not"
[1] https://www.kernel.org/doc/html/latest/filesystems/sysfs.html#attributes
More information about the dri-devel
mailing list