]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Relax RPS contraints to allows setting minfreq on idle
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 18 Mar 2015 09:48:21 +0000 (09:48 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 20 Mar 2015 10:48:13 +0000 (11:48 +0100)
commit1313dbb70ce03006b307473923fbfc6c3f40b8dd
tree9bf4cf8bef001d27088e37d037f55f1149802964
parente4ecbe37086234f71e8f65f881b7751a62c1c0ad
drm/i915: Relax RPS contraints to allows setting minfreq on idle

When we idle, we set the GPU frequency to the hardware minimum (not user
minimum). We introduce a new variable to distinguish between the
different roles, and to allow easy tuning of the idle frequency without
impacting over aspects of RPS. Setting the minimum frequency should be a
safety blanket as the pcu on the GPU should be power gating itself
anyway. However, in order for us to do set the absolute minimum
frequency, we need to relax a few of our assertions that we do not
exceed the user limits.

v2: Add idle_freq
v3: Init idle_freq for vlv and add a bunch of WARNs

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Deepak S <deepak.s@linux.intel.com>
Reviewed-by: Deepak S<deepak.s@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_pm.c