drm/i915: Fix g4x cxsr enable condition
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 14 May 2021 12:57:39 +0000 (15:57 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 22 Sep 2021 13:48:44 +0000 (16:48 +0300)
commit0cf771b5d02244d2b2515cb17d967e19bf33e83f
tree02c6c6512cd6a0828f7347eef28a9b484f032671
parent8f27dbf0987ad5941f969456fa6f65850866ba2e
drm/i915: Fix g4x cxsr enable condition

The intention was to check whether the primary plane is enabled
without any sprites planes being enabled. Instead we ended up checking
whether just any one of the planes is enabled. g4x isn't vlv/chv and
cxsr only works with the primary plane. Fix the check to examine the
bitmask of active planes rather than the number of bits set in said
bitmask.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210514125751.17075-3-ville.syrjala@linux.intel.com
Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
drivers/gpu/drm/i915/intel_pm.c