]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitee24685200bb0364df50b217be6c2efc10690200
tree62bbfd3c5d46039fec0e5aaecb261617bb3e4fd3
parent1e5f3e468b194244eaa6a74004ce0ab51ee13f7e
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