drm/i915: Don't flag both full modeset and fastset at the same time
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 21 Oct 2022 16:24:41 +0000 (19:24 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Sat, 22 Oct 2022 09:39:05 +0000 (12:39 +0300)
commit7de5b6b54630c670af6822bebe70ff7b4281dc23
treea666a61a2cc9876aab199d881d460bc3d0f06968
parent925ac8bc33bfe05e0bf3df3a0ff5183b00654aa0
drm/i915: Don't flag both full modeset and fastset at the same time

Be consistent in whether we flag a full modeset or a
fastset for the pipe. intel_modeset_all_pipes() would
seem to be the only codepath not getting this right.

The other case is when we flag the fastset initially,
currently we just clear the mode_changed flag and set
the update_pipe flag. But we could still have
connectors_changed==true or active_changed==true forcing
a full modeset anyway. So check for that after clearing
the mode_changed flag.

And let's add a WARN to make sure we did get it right.

v2: Deal with {connectors,active}_changed

Reviewed-by: Jani Nikula <jani.nikula@intel.com> #v1
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221021162442.27283-4-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_display.c