]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Index the ring frequency table by HW frequency range
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 8 Mar 2018 14:26:48 +0000 (14:26 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 8 Mar 2018 19:40:34 +0000 (19:40 +0000)
commitbad9e3113409bf94efe33a0e9448211c612201f5
treeeb5b1e6aae9f0811506d9986228af2b07dcbd038
parentb91d9ce9c66a82912101e18775b4c9c0064d453a
drm/i915: Index the ring frequency table by HW frequency range

When reporting the frequency table stored in the punit, report the full
range and not just the user restricted frequency range. In the process
keep the code to set the frequency table and read it the same.

v3: As we haven't separated the sb_lock from the pcu_lock yet, there's a
cycle between the pcu_lock and intel_runtime_pm_get.

References: 7e7c3fb0de33 ("drm/i915/skl: Updated the i915_ring_freq_table debugfs function")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com> #v1
Link: https://patchwork.freedesktop.org/patch/msgid/20180308142648.4016-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/intel_pm.c