drm/i915/dp: limit DP link rate based on VBT on CNL+
authorJani Nikula <jani.nikula@intel.com>
Thu, 1 Feb 2018 11:03:43 +0000 (13:03 +0200)
committerJani Nikula <jani.nikula@intel.com>
Fri, 2 Feb 2018 07:50:51 +0000 (09:50 +0200)
commit99b91bda84060bac061d1649fad0e3bddcf67ce6
treed424ac1fd941df089ecedabf6c97a6fb3eac6655
parent4ba285d4154ab587cc00bf9bd04bb8c7b19b595a
drm/i915/dp: limit DP link rate based on VBT on CNL+

We have the max DP link rate info available in VBT since BDB version
216, included in child device config since commit c4fb60b9aba9
("drm/i915/bios: add DP max link rate to VBT child device
struct"). Parse it and use it.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/a8b1364d1f2394fba3062b6ad11b474744ea4366.1517482774.git.jani.nikula@intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_bios.c
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_vbt_defs.h