Expose RPS thresholds in sysfs
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest5 patches 0 repliesNew
- v2 RFC4 patches 5 repliesSuperseded
- v1 RFC4 patches 0 repliesSuperseded
Changes in v3 from the cover letter
* Added a patch which captures the thresholds in error state, to account for any potential instability which may be caused by moving away from defaults.
* Fixed one checkpatch warning.
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | drm/i915: Move setting of rps thresholds to initdrivers/ | +16 | 0 replies | |
| 2/5 | drm/i915: Record default rps threshold valuesdrivers/ drivers/ | +5 | 0 replies | |
| 3/5 | drm/i915: Add helpers for managing rps thresholdsdrivers/ drivers/ | +58 | 0 replies | |
| 4/5 | drm/i915: Expose RPS thresholds in sysfsdrivers/ | +108 | 0 replies | |
| 5/5 | drm/i915: Include RPS threshold in error statedrivers/ drivers/ | +10 | 0 replies |
Reviews trailers per patch
4 of 5 patches have a Reviewed-by or Acked-by.
| Patch | Rodrigo Vivi | Andi Shyti |
|---|---|---|
| 1/5 | R-b | R-b |
| 2/5 | R-b | R-b |
| 3/5 | R-b | R-b |
| 4/5 | A-b | R-b |
| 5/5 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/5] Expose RPS thresholds in sysfs
From: Tvrtko Ursulin <[email protected]>
From patch 4:
User feedback indicates significant performance gains are possible in specific games with non default RPS up/down thresholds.
Expose these tunables via sysfs which will allow users to achieve best performance when running games and best power efficiency elsewhere.
Note this patch supports non GuC based platforms only.
References: https://gitlab.freedesktop.org/drm/intel/-/issues/8389
Issue 8389 suggests 10-15% performance gains are possible with tweaked thresholds.
One question is are we able to find a "one size fits all" values.
However regardless of that, given we already expose frequency controls in sysfs with the same reasoning of allowing system owners explicit control if so wanted, I think exposing the thresholds can be equally justified.
v2:
* Hopefully fixed the debug build issue.
* Re-program the hw registers on change too!
v3:
* Added a patch which captures the thresholds in error state, to account for any potential instability which may be caused by moving away from defaults.
* Fixed one checkpatch warning.
Test-with: [email protected]
Tvrtko Ursulin (5):
drm/i915: Move setting of rps thresholds to init drm/i915: Record default rps threshold values drm/i915: Add helpers for managing rps thresholds drm/i915: Expose RPS thresholds in sysfs drm/i915: Include RPS threshold in error state
drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c | 108 ++++++++++++++++++++ drivers/gpu/drm/i915/gt/intel_gt_types.h | 3 + drivers/gpu/drm/i915/gt/intel_rps.c | 83 +++++++++++++-- drivers/gpu/drm/i915/gt/intel_rps.h | 4 + drivers/gpu/drm/i915/i915_gpu_error.c | 5 + drivers/gpu/drm/i915/i915_gpu_error.h | 5 + 6 files changed, 197 insertions(+), 11 deletions(-)
Signature · 1 line
2.39.2