drm/i915/dp: add max data rate calculation for UHBR rates
authorJani Nikula <jani.nikula@intel.com>
Mon, 23 Aug 2021 16:18:12 +0000 (19:18 +0300)
committerJani Nikula <jani.nikula@intel.com>
Tue, 24 Aug 2021 08:02:55 +0000 (11:02 +0300)
commit48efd014f0ea898b0975e77156acb752047d4449
tree2cc5ecd8b0bab0c4a2a76323d12c59646a947295
parente752d1f9c14a61b0996bdbcaf024ef587c6af9d8
drm/i915/dp: add max data rate calculation for UHBR rates

DP 2.0 UHBR link rates always use 128b/132b channel encoding, which has
a different data bandwidth efficiency from 8b/10b. The computation is
slightly convoluted due to the units we use; this is all explained in
the added comment.

v2: Clarified comment (Manasi)

Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/8afd8d97a04c2d86c2dcadfed9f8e1f84272a13c.1629735412.git.jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_dp.c
drivers/gpu/drm/i915/display/intel_dp.h