drm/i915: Preserve crtc_state->inherited during state clearing
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 23 Feb 2023 15:20:48 +0000 (17:20 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 10 Mar 2023 12:28:12 +0000 (14:28 +0200)
commit2553bacaf953b48c59357f5a622282bc0c45adae
tree40f54727551e88a4305f8cc96f58213ec6f3e78b
parentce086a32ae21a01e48d202cf85b43815a0eeccfc
drm/i915: Preserve crtc_state->inherited during state clearing

intel_crtc_prepare_cleared_state() is unintentionally losing
the "inherited" flag. This will happen if intel_initial_commit()
is forced to go through the full modeset calculations for
whatever reason.

Afterwards the first real commit from userspace will not get
forced to the full modeset path, and thus eg. audio state may
not get recomputed properly. So if the monitor was already
enabled during boot audio will not work until userspace itself
does an explicit full modeset.

Cc: stable@vger.kernel.org
Tested-by: Lee Shawn C <shawn.c.lee@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230223152048.20878-1-ville.syrjala@linux.intel.com
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
drivers/gpu/drm/i915/display/intel_display.c