Skip to content

tools/intel_gpu_frequency: Add multi-GT support and Xe driver compatibility

S Sebinraj igt-dev 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest3 patches 3 repliesIn review
  2. v54 patches 1 replySuperseded
  3. v43 patches 0 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v33 patches1 replySuperseded
v23 patches4 repliesSuperseded

Changes in v6 from the cover letter

- Remove the patch added for regular user read as it already updated
- Rebase code with latest changes in intel_gpu_frequency
- Remove bool argument in functions and re-design approach
- Revert the change made in drmtest in v4

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3tools/intel_gpu_frequency: Add support for get, set in order & vice-versatools/intel_gpu_frequency.c+41 -221 reply
2/3tools/intel_gpu_frequency: Add multi-GT supportman/intel_gpu_frequency.rst tools/intel_gpu_frequency.c+238 -661 reply
3/3tools/intel_gpu_frequency: Add Xe driver supporttools/intel_gpu_frequency.c+66 -151 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.

Read the v6 thread

Cover letter [PATCH i-g-t v6 0/3] tools/intel_gpu_frequency: Add multi-GT support and Xe driver compatibility

This patch enhances intel_gpu_frequency to support Intel GPUs with multiple Graphics Technology (GT) units and adds compatibility with both i915 and Xe drivers. This also includes the changes to use get, set in order and vice-versa which was resulting in assertion errors.

Key improvements:
- Add runtime GT detection using igt_sysfs_get_num_gt() and xe_number_gt()
- Auto-detect driver type (i915 vs Xe) using is_xe_device()
- New --gt/-t option to specify target GT (defaults to GT0)
- New --list/-l option to display available GTs
- Driver-agnostic frequency management with unified interface
- Add support for get, set inorder and vice-versa.

Driver-specific implementations:
- Frequency name mapping for Xe (RP1→rpe, RP0→rp0, RPn→rpn for Xe)

Usage examples:
intel_gpu_frequency --get --gt 1 # Get GT1 frequencies
intel_gpu_frequency --set 400 --gt 0 # Set GT0 frequency
intel_gpu_frequency --list # List available GTs

The tool now auto-detects i915 / Xe drivers and uses appropriate interfaces.
---

Changes in v6:
- Remove the patch added for regular user read as it already updated
- Rebase code with latest changes in intel_gpu_frequency
- Remove bool argument in functions and re-design approach
- Revert the change made in drmtest in v4

Changes in v5:
- Add patch for regular user read

Changes in v4:
- Rebase the patch to fix Ci.build issue in v3

Changes in v3:
- Use --list as arg instead of --list-gts
- Change printing of frequencies to tabular
and with additional informations

Changes in v2:
- Remove output from commit message
- Add support for simultaneous read and write

---
S Sebinraj (3):
tools/intel_gpu_frequency: Add support for get, set in order &
vice-versa
tools/intel_gpu_frequency: Add multi-GT support tools/intel_gpu_frequency: Add Xe driver support

 man/intel_gpu_frequency.rst |  34 +++-
 tools/intel_gpu_frequency.c | 360 +++++++++++++++++++++++++++++-------
 2 files changed, 318 insertions(+), 76 deletions(-)
Signature · 1 line
2.43.0