drm/i915/dp_mst: Account for channel coding efficiency in the DSC DPT bpp limit
authorImre Deak <imre.deak@intel.com>
Tue, 16 Apr 2024 22:10:03 +0000 (01:10 +0300)
committerImre Deak <imre.deak@intel.com>
Fri, 19 Apr 2024 14:20:44 +0000 (17:20 +0300)
commitfd13841d8b2e8b619f542ed75950c3b206605340
treef101c3bdfce64a624eac276e3b031214a1a5e3d6
parent1ff65bf8ffc16e0a85728412a035f04247761a26
drm/i915/dp_mst: Account for channel coding efficiency in the DSC DPT bpp limit

The DSC DPT interface BW limit check should take into account the link
clock's (aka DDI clock in bspec) channel coding efficiency overhead.
Bspec suggests that the FEC overhead needs to be applied, however HW
people claim this isn't the case, nor is any overhead applicable.

However based on testing various 5k/6k modes both on the DELL U3224KBA
monitor and the Unigraf UCD-500 CTS test device, both the channel coding
efficiency (which includes the FEC overhead) and an additional 3%
overhead must be accounted for to get these modes working.

Bspec: 49259

v2:
- Apply an additional 3% overhead, add a commit log and code comment
  about these overheads and the relation to the Bspec BW limit formula.

Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240416221010.376865-5-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_dp_mst.c