]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gen9: Sanitize handling of allowed DC states
authorImre Deak <imre.deak@intel.com>
Mon, 29 Feb 2016 20:49:03 +0000 (22:49 +0200)
committerImre Deak <imre.deak@intel.com>
Tue, 1 Mar 2016 17:11:10 +0000 (19:11 +0200)
commit8ec4e939ba520d793680200d011abd8f007c9a31
tree42f6c46f4ec0328b77d1facebd7042ab6f5be517
parent5140f57d24af4ef28de2f44d18972249940abf24
drm/i915/gen9: Sanitize handling of allowed DC states

We can simplify the conditions selecting the target DC state during
runtime by calculating the allowed DC states in advance during driver
loading. This also makes it easier to disable DC states depending on the
i915.disable_power_well module option, added in the next patch.

v2:
- Print a debug message if the requested max DC value was adjusted due
  to a platform limit. Also debug print the calculated mask value. (Patrik)

CC: Patrik Jakobsson <patrik.jakobsson@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Patrik Jakobsson <patrik.jakobsson@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1456778945-5411-2-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_runtime_pm.c