]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9ca69da801d444ca3cb33d59685d63a8fa0f2b3b
tree45e5b9a25340a8a24dfe6750e76721b4c4a374b9
parent82c131085de37bb8aba3be27fc352c648ea518c2
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