[Intel-gfx] [PATCH v2 0/3] drm/i915/gt: Expose per gt defaults in sysfs

Ashutosh Dixit ashutosh.dixit at intel.com
Thu May 26 19:00:42 UTC 2022


Create a gt/gtN/.defaults directory (similar to
engine/<engine-name>/.defaults) to expose default parameter values for each
gt in sysfs. This allows userspace to restore default parameter values
after they may have changed.

Patch 1: Creates the gt/gtN/.defaults directory
Patch 2: Adds per-gt RPS defaults to gt/gtN/.defaults
Patch 3: Adds media_freq_factor to gt/gtN/.defaults

Cc: Tvrtko Ursulin <tvrtko.ursulin at linux.intel.com>
Cc: Andi Shyti <andi.shyti at linux.intel.com>
Signed-off-by: Ashutosh Dixit <ashutosh.dixit at intel.com>

Ashutosh Dixit (3):
  drm/i915/gt: Create gt/gtN/.defaults for per gt sysfs defaults
  drm/i915/gt: Expose per-gt RPS defaults in sysfs
  drm/i915/gt: Expose default value for media_freq_factor in per-gt
    sysfs

 drivers/gpu/drm/i915/gt/intel_gt_sysfs.c    | 10 ++--
 drivers/gpu/drm/i915/gt/intel_gt_sysfs.h    |  6 ++
 drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c | 64 +++++++++++++++++++++
 drivers/gpu/drm/i915/gt/intel_gt_types.h    | 11 ++++
 drivers/gpu/drm/i915/gt/intel_rps.c         |  3 +
 drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c | 19 ++++--
 6 files changed, 103 insertions(+), 10 deletions(-)

-- 
2.34.1



More information about the Intel-gfx mailing list