mbox series

[0/3] drm/i915/pmu: Use common freq functions with sysfs

Message ID 20230308053321.939906-1-ashutosh.dixit@intel.com (mailing list archive)
Headers show
Series drm/i915/pmu: Use common freq functions with sysfs | expand

Message

Dixit, Ashutosh March 8, 2023, 5:33 a.m. UTC
Using common freq functions with sysfs in PMU (but without taking
forcewake) solves the following issues (a) missing support for MTL (b)
missing support for older generations (prior to Gen6) (c) missing support
for slpc when freq sampling has to fall back to requested freq. It also
makes the PMU code future proof where sometimes code has been updated for
sysfs and PMU has been missed.

Ashutosh Dixit (3):
  drm/i915/rps: Expose read_actual_frequency_fw for PMU
  drm/i915/rps: Expose get_requested_frequency_fw for PMU
  drm/i915/pmu: Use common freq functions with sysfs

 drivers/gpu/drm/i915/gt/intel_rps.c | 68 +++++++++++++++++++++--------
 drivers/gpu/drm/i915/gt/intel_rps.h |  4 +-
 drivers/gpu/drm/i915/i915_pmu.c     | 10 ++---
 3 files changed, 56 insertions(+), 26 deletions(-)