]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
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)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Wed, 17 May 2023 11:33:40 +0000 (13:33 +0200)
commit23e9d955fe6f99eb9f3e6245a0987666e33212ad
tree8c80243cdca765b2f3618e11a4305e49451bfb29
parentfce16386e52551dfe05c44c5e9d678f5b3896dcc
drm/i915: Preserve crtc_state->inherited during state clearing

BugLink: https://bugs.launchpad.net/bugs/2016877
commit 3a84f2c6c9558c554a90ec26ad25df92fc5e05b7 upstream.

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>
(cherry picked from commit 2553bacaf953b48c59357f5a622282bc0c45adae)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/gpu/drm/i915/display/intel_display.c