drm/i915/dp: Reduce link params only after retrying with unchanged params
authorImre Deak <imre.deak@intel.com>
Mon, 10 Jun 2024 16:49:20 +0000 (19:49 +0300)
committerImre Deak <imre.deak@intel.com>
Thu, 13 Jun 2024 18:26:49 +0000 (21:26 +0300)
commit5bd3e7ea8854601866bac507b3cdda5fd3a29c15
treed915b792c099a937eac8579afd8172521f7b5c11
parent3b3be899fc81d5957c5dba8907263b52d92993ed
drm/i915/dp: Reduce link params only after retrying with unchanged params

Try to maintain the current link parameters by retrying the link
training with unchanged link parameters before reducing these parameters
(sending an uevent to userspace to retrain the link instead).

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240610164933.2947366-9-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_display_types.h
drivers/gpu/drm/i915/display/intel_dp.c
drivers/gpu/drm/i915/display/intel_dp_link_training.c