mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 06:33:34 +00:00
345dadc4f6
Add infra to support card power and energy attributes through channel 0. Package attributes will be now exposed through channel 1 rather than channel 0 as shown below. Channel 0 i.e power1/energy1_xxx used for card and channel 1 i.e power2/energy2_xxx used for package power,energy attributes. power1/curr1_crit and in0_input are moved to channel 1, i.e. power2/curr2_crit and in1_input as these are available for package only. This would be needed for future platforms where they might be separate registers for package and card power and energy. Each discrete GPU supported by Xe driver, would have a directory in /sys/class/hwmon/ with multiple channels under it. Each channel would have attributes for power, energy etc. Ex: /sys/class/hwmon/hwmon2/power1_max /power1_label /energy1_input /energy1_label Attributes will have a label to get more description of it. Labelling is as below. power1_label/energy1_label - "card", power2_label/energy2_label - "pkg". v2: Fix checkpatch errors. v3: - Update intel-xe-hwmon documentation. (Riana, Badal) - Rename hwmon card channel enum from CHANNEL_PLATFORM to CHANNEL_CARD. (Riana) v4: - Remove unrelated changes from patch. (Anshuman) - Fix typo in commit msg. v5: - Update commit message and intel-xe-hwmon documentation with "Xe" instead of xe when using it as a name. (Rodrigo) Signed-off-by: Karthik Poosa <karthik.poosa@intel.com> Reviewed-by: Badal Nilawar <badal.nilawar@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240328175435.3870957-1-karthik.poosa@intel.com Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
111 lines
4.0 KiB
Plaintext
111 lines
4.0 KiB
Plaintext
What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon<i>/power1_max
|
|
Date: September 2023
|
|
KernelVersion: 6.5
|
|
Contact: intel-xe@lists.freedesktop.org
|
|
Description: RW. Card reactive sustained (PL1) power limit in microwatts.
|
|
|
|
The power controller will throttle the operating frequency
|
|
if the power averaged over a window (typically seconds)
|
|
exceeds this limit. A read value of 0 means that the PL1
|
|
power limit is disabled, writing 0 disables the
|
|
limit. Writing values > 0 and <= TDP will enable the power limit.
|
|
|
|
Only supported for particular Intel Xe graphics platforms.
|
|
|
|
What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon<i>/power1_rated_max
|
|
Date: September 2023
|
|
KernelVersion: 6.5
|
|
Contact: intel-xe@lists.freedesktop.org
|
|
Description: RO. Card default power limit (default TDP setting).
|
|
|
|
Only supported for particular Intel Xe graphics platforms.
|
|
|
|
|
|
What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon<i>/energy1_input
|
|
Date: September 2023
|
|
KernelVersion: 6.5
|
|
Contact: intel-xe@lists.freedesktop.org
|
|
Description: RO. Card energy input of device in microjoules.
|
|
|
|
Only supported for particular Intel Xe graphics platforms.
|
|
|
|
What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon<i>/power1_max_interval
|
|
Date: October 2023
|
|
KernelVersion: 6.6
|
|
Contact: intel-xe@lists.freedesktop.org
|
|
Description: RW. Card sustained power limit interval (Tau in PL1/Tau) in
|
|
milliseconds over which sustained power is averaged.
|
|
|
|
Only supported for particular Intel Xe graphics platforms.
|
|
|
|
What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon<i>/power2_max
|
|
Date: February 2024
|
|
KernelVersion: 6.8
|
|
Contact: intel-xe@lists.freedesktop.org
|
|
Description: RW. Package reactive sustained (PL1) power limit in microwatts.
|
|
|
|
The power controller will throttle the operating frequency
|
|
if the power averaged over a window (typically seconds)
|
|
exceeds this limit. A read value of 0 means that the PL1
|
|
power limit is disabled, writing 0 disables the
|
|
limit. Writing values > 0 and <= TDP will enable the power limit.
|
|
|
|
Only supported for particular Intel Xe graphics platforms.
|
|
|
|
What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon<i>/power2_rated_max
|
|
Date: February 2024
|
|
KernelVersion: 6.8
|
|
Contact: intel-xe@lists.freedesktop.org
|
|
Description: RO. Package default power limit (default TDP setting).
|
|
|
|
Only supported for particular Intel Xe graphics platforms.
|
|
|
|
What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon<i>/power2_crit
|
|
Date: February 2024
|
|
KernelVersion: 6.8
|
|
Contact: intel-xe@lists.freedesktop.org
|
|
Description: RW. Package reactive critical (I1) power limit in microwatts.
|
|
|
|
Package 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 Xe graphics platforms.
|
|
|
|
What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon<i>/curr2_crit
|
|
Date: February 2024
|
|
KernelVersion: 6.8
|
|
Contact: intel-xe@lists.freedesktop.org
|
|
Description: RW. Package reactive critical (I1) power limit in milliamperes.
|
|
|
|
Package 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.
|
|
|
|
What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon<i>/energy2_input
|
|
Date: February 2024
|
|
KernelVersion: 6.8
|
|
Contact: intel-xe@lists.freedesktop.org
|
|
Description: RO. Package energy input of device in microjoules.
|
|
|
|
Only supported for particular Intel Xe graphics platforms.
|
|
|
|
What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon<i>/power2_max_interval
|
|
Date: February 2024
|
|
KernelVersion: 6.8
|
|
Contact: intel-xe@lists.freedesktop.org
|
|
Description: RW. Package sustained power limit interval (Tau in PL1/Tau) in
|
|
milliseconds over which sustained power is averaged.
|
|
|
|
Only supported for particular Intel Xe graphics platforms.
|
|
|
|
What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon<i>/in1_input
|
|
Date: February 2024
|
|
KernelVersion: 6.8
|
|
Contact: intel-xe@lists.freedesktop.org
|
|
Description: RO. Package current voltage in millivolt.
|
|
|
|
Only supported for particular Intel Xe graphics platforms.
|