]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit59d2989d4eba91ae17c4f5d63dcb75f3c0e5e87e
tree02c6c6512cd6a0828f7347eef28a9b484f032671
parent22216780857835822f10b48bb6cb6befd40acbd7
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