]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Clear most of crtc state when disabling the crtc
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 15 Jan 2020 19:08:10 +0000 (21:08 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 20 Jan 2020 14:52:29 +0000 (16:52 +0200)
commit3778b1b99ef7a442273f260366ee210c0a7b7290
tree9b68e16cff2b0cf1dbdc0239df7bb5535ce2d127
parentfb77e895b48a246b86631d4b8f57183c01edc020
drm/i915: Clear most of crtc state when disabling the crtc

Currently we don't call intel_crtc_prepare_cleared_state() for crtcs
that are going to be entirely disabled (uapi.enable==false). That
means such crtcs will leave stale junk lying around in their states
and we have to sprinkle hw.enable checks all over before we can
look at the states. Let's change that a bit so that we aways do
the state clearing, even for fully disabled crtcs.

Note that we still keep some parts of the old state (see
intel_crtc_prepare_cleared_state() for the details) so probably
can't trust things 100% when hw.enable==false. But at least there's
less chance now that we end up looking at stale junk.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200115190813.17971-2-ville.syrjala@linux.intel.com
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
drivers/gpu/drm/i915/display/intel_display.c