OSDN Git Service

drm/i915/tc: Fix TypeC port init/resume time sanitization
authorImre Deak <imre.deak@intel.com>
Wed, 29 Sep 2021 13:28:27 +0000 (16:28 +0300)
committerImre Deak <imre.deak@intel.com>
Wed, 29 Sep 2021 20:56:33 +0000 (23:56 +0300)
commit7194dc998dfffca096c30b3cd39625158608992d
treed2c2388a5c59761f911e9f1e4b1bb17c46708561
parent11408ea52786c2ae802b4cae32597fffe440147e
drm/i915/tc: Fix TypeC port init/resume time sanitization

Atm during driver loading and system resume TypeC ports are accessed
before their HW/SW state is synced. Move the TypeC port sanitization to
the encoder's sync_state hook to fix this.

v2: Handle the encoder disabled case in gen11_dsi_sync_state() as well
    (Jose, Jani)

Fixes: f9e76a6e68d3 ("drm/i915: Add an encoder hook to sanitize its state during init/resume")
Cc: José Roberto de Souza <jose.souza@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210929132833.2253961-1-imre.deak@intel.com
drivers/gpu/drm/i915/display/icl_dsi.c
drivers/gpu/drm/i915/display/intel_ddi.c
drivers/gpu/drm/i915/display/intel_display.c