]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Don't set undefined bits in dirty_pipes
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 11 Oct 2019 20:09:45 +0000 (23:09 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 29 Nov 2019 19:49:16 +0000 (21:49 +0200)
commit80ecf790b11499e742ac4015d446a10ea29aef85
tree158289458733bb31f9b38c22f26e33c29a73b3e9
parentca0f70b8f11e22ff23ecb737867289272d5c267f
drm/i915: Don't set undefined bits in dirty_pipes

skl_commit_modeset_enables() straight up compares dirty_pipes
with a bitmask of already committed pipes. If we set bits in
dirty_pipes for non-existent pipes that comparison will never
work right. So let's limit ourselves to bits that exist.

And we'll do the same for the active_pipes_changed bitmask.

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