OSDN Git Service

drm/i915/xehpsdv: factor out function to read RP_STATE_CAP
authorLucas De Marchi <lucas.demarchi@intel.com>
Thu, 5 Aug 2021 16:36:43 +0000 (09:36 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Thu, 12 Aug 2021 23:06:56 +0000 (16:06 -0700)
commitefd330b97855013c8b58185683ddfb75deab5fa9
tree62bbfd3c5d46039fec0e5aaecb261617bb3e4fd3
parentb97090575ed27f8a23cc8f8ace642d5a8ea59206
drm/i915/xehpsdv: factor out function to read RP_STATE_CAP

Instead of maintaining the same if ladder in 3 different places, add a
function to read RP_STATE_CAP.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210805163647.801064-6-matthew.d.roper@intel.com
drivers/gpu/drm/i915/gt/debugfs_gt_pm.c
drivers/gpu/drm/i915/gt/intel_rps.c
drivers/gpu/drm/i915/gt/intel_rps.h
drivers/gpu/drm/i915/i915_debugfs.c