mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
drm/xe: Add debugfs for IA/GT bias
GT_IA_PERF_BIAS_REG indicates power budget between IA and GT. Lower 16 bits correspond to IA and upper to GT. Higher value indicates more bias towards that plane. The values are in U1.15 format. $ cat /sys/kernel/debug/dri/0/gt0/gt_ia_bias 0x80004000 (GT: 1.0000, IA: 0.5000) This interface will allow us to observe power budget changes while running workloads and also, if needed, tune it. Minimum allowed value for each of GT/IA bias is 0x10, and max is 0x8000 which corresponds to a bias ratio of 1. Bspec: 51878 v3: Add a helper function for U1.15 decode (Michal) v4: Validate input values (Rodrigo) v5: Comments (Michal, Rodrigo) v6: Rename to gt_ia_bias (Anirban), check lower bound (Michal) v7: Update filename in commit message Cc: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com> Cc: Sk Anirban <sk.anirban@intel.com> Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com> Assisted-by: Copilot:auto Reviewed-by: Sk Anirban <sk.anirban@intel.com> Link: https://patch.msgid.link/20260729221629.593195-3-vinay.belgaumkar@intel.com Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
parent
5c45e2dbe6
commit
41fe15d1a4
2 changed files with 86 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue