drm/i915: Switch to LTTPR transparent mode link training
authorImre Deak <imre.deak@intel.com>
Wed, 7 Oct 2020 17:09:16 +0000 (20:09 +0300)
committerImre Deak <imre.deak@intel.com>
Mon, 12 Oct 2020 12:33:03 +0000 (15:33 +0300)
commit7b2a4ab8b0ef2a6dbec0b15d2cabf5a9e7acdf4c
tree57506e198ed6b0b7e392dea71e1f307c9d80c79a
parent9782f52ab5d65a667074beda11b12490935d608b
drm/i915: Switch to LTTPR transparent mode link training

By default LTTPRs should be in transparent link training mode,
nevertheless in this patch we switch to this default mode explicitly.

The DP Standard recommends this, supposedly because an LTTPR may be left
in the non-transparent mode (by BIOS, previous kernel, or after reset
due to a firmware bug). I haven't seen this happening, but let's follow
the DP Standard.

v2:
- Add a code comment about the explicit disabling of non-transparent
  mode.
v3:
- Move check to prevent initing LTTPRs on eDP to init_dp_lttpr_init().

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/20201007170917.1764556-6-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
drivers/gpu/drm/i915/display/intel_dp_link_training.h