drm/i915/icl: Prevent incorrect DBuf enabling
authorImre Deak <imre.deak@intel.com>
Thu, 7 Mar 2019 10:32:35 +0000 (12:32 +0200)
committerImre Deak <imre.deak@intel.com>
Fri, 8 Mar 2019 08:07:49 +0000 (10:07 +0200)
commit209d73530d7effed2acf7e5b88ea5cf8c73a800b
tree45e5b9a25340a8a24dfe6750e76721b4c4a374b9
parent2835f4f36b6a9e8e8a719e4741c39d436f9c2e43
drm/i915/icl: Prevent incorrect DBuf enabling

Pretend that we have only 1 DBuf slice and that 1 slice is always
enabled, until we have a proper way for on-demand toggling of the second
slice.  Currently we'll try to incorrectly enable DBuf even when all
pipes are disabled and we are already runtime suspended (as the computed
number of DBuf slices will be 1 in that case).

This also means we'll leave the second slice enabled redundantly (except
when suspended), but that's an acceptable tradeoff until we have a
proper solution.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108756
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190307103235.23538-1-imre.deak@intel.com
drivers/gpu/drm/i915/intel_pm.c
drivers/gpu/drm/i915/intel_runtime_pm.c