]> asedeno.scripts.mit.edu Git - linux.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)
commit8d9875b47a5dae0690b04bbb9de68b0a0f1a2cce
tree158289458733bb31f9b38c22f26e33c29a73b3e9
parentd92f77deefc9051f2b6fa17836b365bb2a67ce29
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