]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/xe/guc: Add SLPC power profile interface
authorVinay Belgaumkar <vinay.belgaumkar@intel.com>
Wed, 3 Sep 2025 23:21:20 +0000 (16:21 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 11 Sep 2025 12:45:05 +0000 (08:45 -0400)
commit60d2b7899142d56654ba254a454eb282c1d181ca
treec87355c185eda604ff00ed2b2e9089a0ec700fb0
parent692a4802435ba7389810b15b476ed360675e38c1
drm/xe/guc: Add SLPC power profile interface

GuC has an interface to set a power profile for the SLPC algorithm.
Base mode is default and ensures a balanced performance, power_saving
mode has conservative up/down thresholds and is suitable for use with
apps that typically need to be power efficient. This will result in
lower GT frequencies, thus consuming lower power.

Selected power profile will be displayed in this format:

$ cat power_profile

  [base]    power_saving

$ echo power_saving > power_profile
$ cat power_profile

  base    [power_saving]

v2: Address review comments (Rodrigo)

Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://lore.kernel.org/r/20250903232120.390190-1-vinay.belgaumkar@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/abi/guc_actions_slpc_abi.h
drivers/gpu/drm/xe/xe_gt_freq.c
drivers/gpu/drm/xe/xe_guc_pc.c
drivers/gpu/drm/xe/xe_guc_pc.h
drivers/gpu/drm/xe/xe_guc_pc_types.h