mbox series

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

Message ID 20230309034621.1008458-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 9, 2023, 3:46 a.m. UTC
Expose intel_rps_read_actual_frequency_fw to read the actual freq without
taking forcewake for use by PMU. The code is refactored to use a common set
of functions across sysfs and PMU. Using common functions with sysfs in PMU
solves the issues of missing support for MTL and missing support for older
generations (prior to Gen6). It also future proofs the PMU where sometimes
code has been updated for sysfs and PMU has been missed.

Ashutosh Dixit (2):
  drm/i915/pmu: Use functions common with sysfs to read actual freq
  drm/i915/pmu: Remove fallback to requested freq for SLPC

 drivers/gpu/drm/i915/gt/intel_rps.c | 46 +++++++++++++++++++----------
 drivers/gpu/drm/i915/gt/intel_rps.h |  2 +-
 drivers/gpu/drm/i915/i915_pmu.c     | 17 +++++++----
 3 files changed, 43 insertions(+), 22 deletions(-)