]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Properly clear crtc state when disabling it fully, again
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 17 Feb 2022 10:32:21 +0000 (12:32 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 23 Feb 2022 11:29:33 +0000 (13:29 +0200)
commit5e5bb786debb1ade735cde49521aa3ab3a458ae5
tree3afcead399415840e07610a4a4f3a96692474687
parent0d9ce156ee4b9dd3def80ab7bddeb3aecb2dfc9c
drm/i915: Properly clear crtc state when disabling it fully, again

Currently we just leave the old gunk lying around in the crtc
state when userspace asks us to fully disable the crtc. That
doesn't match what the state would be had we never even enabled
the crtc in the first place. So let's make this consistent and
call intel_crtc_prepare_cleared_state() for disabled crtcs as well
(excluding bigjoiner slaves of course which have had their state
copied from the master).

I actually already did this once in commit 3778b1b99ef7 ("drm/i915:
Clear most of crtc state when disabling the crtc") but then
commit 4d4540cb4e1d ("drm/i915: Try to make bigjoiner work in atomic
check") undid it all :(

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220217103221.10405-5-ville.syrjala@linux.intel.com
Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
drivers/gpu/drm/i915/display/intel_display.c