drm/i915: WARN if max vswing/pre-emphasis violates the DP spec
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 9 Jul 2020 14:58:45 +0000 (17:58 +0300)
committerJosé Roberto de Souza <jose.souza@intel.com>
Mon, 13 Jul 2020 21:43:56 +0000 (14:43 -0700)
commita133c6988f7080fb8baf86ecf5161065bec65fb6
treec50e9ba5ea2b0382e1c6244b30848d3b4f898dfc
parente398d7c126c10eb40f87edb6d4ce6dea6c123e7f
drm/i915: WARN if max vswing/pre-emphasis violates the DP spec

According to the DP spec a DPTX must support vswing/pre-emphasis
up to and including level 2. Level 3 is optional (actually DP 1.4a
seems to make even level 3 mandatory for HBR2/3, while leaving it
optional for RBR/HBR1).

WARN if out encoders' .voltage_max()/.preemph_max() return
an illegal value.

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