]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gen9: Fix DMC/DC state asserts
authorImre Deak <imre.deak@intel.com>
Fri, 1 Apr 2016 13:02:37 +0000 (16:02 +0300)
committerImre Deak <imre.deak@intel.com>
Fri, 15 Apr 2016 11:46:53 +0000 (14:46 +0300)
commitceff0e262cf023234a8c6767042d986e757de48e
tree9a503075cb236da2ccbafb168a7b331f8c54f1f7
parent3c13b1bb46bacc3782e224510f9026ecd4ddac8a
drm/i915/gen9: Fix DMC/DC state asserts

The display power well support and DC state management doesn't depend on
runtime PM support, so remove the incorrect asserts about this.

Also Broxton does support DC5, so the related assert in
assert_can_enable_dc5() is incorrect. There is a more generic and
correct assert for this already in gen9_set_dc_state(), so we can remove
all the other ones.

At the same time convert WARNs to WARN_ONCE for consistency with the
other DC state asserts.

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/1459515767-29228-7-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/intel_runtime_pm.c