OSDN Git Service

drm/i915: Update connector atomic state before crtc sanitize-disabling
authorImre Deak <imre.deak@intel.com>
Wed, 10 May 2023 10:31:21 +0000 (13:31 +0300)
committerImre Deak <imre.deak@intel.com>
Tue, 16 May 2023 13:53:46 +0000 (16:53 +0300)
commitdb4069fcbdc5c8bc03424934a3395b39b71d9dc6
treefd0f24a6c2d51c6c914ca810d7abf9b2e6ec6e28
parent7ff9a17e372e5152a77ec657949a3c9250720fa4
drm/i915: Update connector atomic state before crtc sanitize-disabling

During HW state readout/sanitization an up-to-date connector atomic
state will be required by a follow-up patch, which can disable CRTCs
with an encoder (and calling the correct encoder hooks happens via the
connector atomic state encoder pointer). So update the connector state
already before the CRTC sanitize/disable step. For now this doesn't make
a difference, since intel_modeset_update_connector_atomic_state() will
update/enable the atomic state only for connectors that have an enabled
encoder/CRTC. Such CRTCs/encoders will not be affected by
intel_sanitize_crtc().

v2: Add comment about why the connector state needs to be up-to-date.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230510103131.1618266-5-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_modeset_setup.c