HDMI 2.1 FRL uses 16b/18b line coding, so only 16/18 of the raw FRL rate carries payload. The FRL bandwidth check compared the required bandwidth against the raw rate of the PCON and the sink, and so accepted modes that cannot be carried.
Use the payload bandwidth for the check. The requirement is still estimated from the full pixel clock including blanking, so it remains an upper bound. Signed-off-by: Ankit Nautiyal <[email protected]> --- drivers/gpu/drm/i915/display/intel_dp.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c index 179e0d8b89c2..c0cf0938a7b6 100644 --- a/drivers/gpu/drm/i915/display/intel_dp.c +++ b/drivers/gpu/drm/i915/display/intel_dp.c @@ -1206,8 +1206,11 @@ intel_dp_frl_bw_valid(struct intel_dp *intel_dp, int target_clock, max_frl_bw = min(intel_dp->dfp.pcon_max_frl_bw, intel_dp_hdmi_sink_max_frl(intel_dp)); - /* converting bw from Gbps to Kbps*/ - max_frl_bw = max_frl_bw * 1000000; + /* + * Convert the rate from Gbps to kbps. FRL uses 16b/18b line coding, so + * only 16/18 of the raw rate carries payload. + */ + max_frl_bw = max_frl_bw * 1000000 * 16 / 18; /* #FIXME check bandwidth with DSC if both PCON and HDMI sink support DSC */ if (target_bw > max_frl_bw) -- 2.50.1
