]> 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)
commit477846634b8ee3eda12dc610b80f77945f1ab6c3
tree158289458733bb31f9b38c22f26e33c29a73b3e9
parent7f15682c8bd30505b11a485e2d2d9d488af50280
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