igt-dev.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: S Sebinraj <s.sebinraj@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: jeevaka.badrappan@intel.com, zbigniew.kempczynski@intel.com,
	kamil.konieczny@intel.com, S Sebinraj <s.sebinraj@intel.com>
Subject: [PATCH i-g-t v3 0/3] tools/intel_gpu_frequency: Add multi-GT support and Xe driver compatibility
Date: Thu, 20 Nov 2025 02:15:27 +0530	[thread overview]
Message-ID: <20251119204530.1357940-1-s.sebinraj@intel.com> (raw)

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, prior to this changes.

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.

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

 lib/drmtest.c               |   2 +-
 man/intel_gpu_frequency.rst |  34 +++-
 tools/intel_gpu_frequency.c | 363 +++++++++++++++++++++++++++++-------
 3 files changed, 321 insertions(+), 78 deletions(-)

-- 
2.43.0


             reply	other threads:[~2025-11-19 21:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-19 20:45 S Sebinraj [this message]
2025-11-19 20:45 ` [PATCH i-g-t v3 1/3] tools/intel_gpu_frequency: Add support for get, set in order & vice-versa S Sebinraj
2025-11-19 20:45 ` [PATCH i-g-t v3 2/3] tools/intel_gpu_frequency: Add multi-GT support S Sebinraj
2025-11-20  6:18   ` Sebinraj, S
2025-11-19 20:45 ` [PATCH i-g-t v3 3/3] tools/intel_gpu_frequency: Add Xe driver support S Sebinraj
2025-11-19 23:43 ` ✗ Fi.CI.BUILD: failure for tools/intel_gpu_frequency: Add multi-GT support and Xe driver compatibility (rev2) Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251119204530.1357940-1-s.sebinraj@intel.com \
    --to=s.sebinraj@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=jeevaka.badrappan@intel.com \
    --cc=kamil.konieczny@intel.com \
    --cc=zbigniew.kempczynski@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).