mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-17 22:23:45 -04:00
Expose power1_max_interval, that is the tau corresponding to PL1, as a
custom hwmon attribute. Some bit manipulation is needed because of the
format of PKG_PWR_LIM_1_TIME in
GT0_PACKAGE_RAPL_LIMIT register (1.x * power(2,y)).
v2: Update date and kernel version in Documentation (Badal)
v3: Cleaned up hwm_power1_max_interval_store() (Badal)
v4:
- Fixed review comments (Anshuman)
- In hwm_power1_max_interval_store() get PKG_MAX_WIN from
pkg_power_sku when it is valid (Ashutosh)
- KernelVersion: 6.2, Date: February 2023 in doc (Tvrtko)
v5: On some of the DGFX setups it is seen that although pkg_power_sku
is valid the field PKG_WIN_MAX is not populated. So it is
decided to stick to default value of PKG_WIN_MAX (Ashutosh)
v6: Change contact to intel-gfx (Rodrigo)
Fixed variable types in hwm_power1_max_interval_store (Andi)
Documented PKG_MAX_WIN_DEFAULT (Andi)
Removed else in hwm_attributes_visible (Andi)
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Signed-off-by: Badal Nilawar <badal.nilawar@intel.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Anshuman Gupta <anshuman.gupta@intel.com>
Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221013154526.2105579-7-ashutosh.dixit@intel.com
71 lines
2.4 KiB
Plaintext
71 lines
2.4 KiB
Plaintext
What: /sys/devices/.../hwmon/hwmon<i>/in0_input
|
|
Date: February 2023
|
|
KernelVersion: 6.2
|
|
Contact: intel-gfx@lists.freedesktop.org
|
|
Description: RO. Current Voltage in millivolt.
|
|
|
|
Only supported for particular Intel i915 graphics platforms.
|
|
|
|
What: /sys/devices/.../hwmon/hwmon<i>/power1_max
|
|
Date: February 2023
|
|
KernelVersion: 6.2
|
|
Contact: intel-gfx@lists.freedesktop.org
|
|
Description: RW. Card reactive sustained (PL1/Tau) power limit in microwatts.
|
|
|
|
The power controller will throttle the operating frequency
|
|
if the power averaged over a window (typically seconds)
|
|
exceeds this limit.
|
|
|
|
Only supported for particular Intel i915 graphics platforms.
|
|
|
|
What: /sys/devices/.../hwmon/hwmon<i>/power1_rated_max
|
|
Date: February 2023
|
|
KernelVersion: 6.2
|
|
Contact: intel-gfx@lists.freedesktop.org
|
|
Description: RO. Card default power limit (default TDP setting).
|
|
|
|
Only supported for particular Intel i915 graphics platforms.
|
|
|
|
What: /sys/devices/.../hwmon/hwmon<i>/power1_max_interval
|
|
Date: February 2023
|
|
KernelVersion: 6.2
|
|
Contact: intel-gfx@lists.freedesktop.org
|
|
Description: RW. Sustained power limit interval (Tau in PL1/Tau) in
|
|
milliseconds over which sustained power is averaged.
|
|
|
|
Only supported for particular Intel i915 graphics platforms.
|
|
|
|
What: /sys/devices/.../hwmon/hwmon<i>/power1_crit
|
|
Date: February 2023
|
|
KernelVersion: 6.2
|
|
Contact: intel-gfx@lists.freedesktop.org
|
|
Description: RW. Card reactive critical (I1) power limit in microwatts.
|
|
|
|
Card reactive critical (I1) power limit in microwatts is exposed
|
|
for client products. The power controller will throttle the
|
|
operating frequency if the power averaged over a window exceeds
|
|
this limit.
|
|
|
|
Only supported for particular Intel i915 graphics platforms.
|
|
|
|
What: /sys/devices/.../hwmon/hwmon<i>/curr1_crit
|
|
Date: February 2023
|
|
KernelVersion: 6.2
|
|
Contact: intel-gfx@lists.freedesktop.org
|
|
Description: RW. Card reactive critical (I1) power limit in milliamperes.
|
|
|
|
Card reactive critical (I1) power limit in milliamperes is
|
|
exposed for server products. The power controller will throttle
|
|
the operating frequency if the power averaged over a window
|
|
exceeds this limit.
|
|
|
|
Only supported for particular Intel i915 graphics platforms.
|
|
|
|
What: /sys/devices/.../hwmon/hwmon<i>/energy1_input
|
|
Date: February 2023
|
|
KernelVersion: 6.2
|
|
Contact: intel-gfx@lists.freedesktop.org
|
|
Description: RO. Energy input of device in microjoules.
|
|
|
|
Only supported for particular Intel i915 graphics platforms.
|