summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/display/intel_dp_mst.c
diff options
context:
space:
mode:
authorImre Deak <imre.deak@intel.com>2023-10-24 04:09:07 +0300
committerImre Deak <imre.deak@intel.com>2023-11-08 18:22:12 +0300
commit7ff2090c7c98644ea04be7ff8e304b74f47cf9dc (patch)
treec9be79ac02507c4076a05902aff4139532d21d31 /drivers/gpu/drm/i915/display/intel_dp_mst.c
parent3e306daab76ac32b3496583e1db43baabe8a062e (diff)
downloadlinux-7ff2090c7c98644ea04be7ff8e304b74f47cf9dc.tar.xz
drm/i915/dp: Pass actual BW overhead to m_n calculation
A follow-up MST patch will need to specify the total BW allocation overhead, prepare for that here by passing the amount of overhead to intel_link_compute_m_n(), keeping the existing behavior. v2: - Fix passing the correct crtc_state->fec_enable param in intel_dp_mst_compute_link_config() / intel_dp_dsc_mst_compute_link_config(). Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com> (v1) Signed-off-by: Imre Deak <imre.deak@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20231030155843.2251023-13-imre.deak@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_dp_mst.c')
-rw-r--r--drivers/gpu/drm/i915/display/intel_dp_mst.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_dp_mst.c b/drivers/gpu/drm/i915/display/intel_dp_mst.c
index 28db1775d3a5..1f6fbab7d4ad 100644
--- a/drivers/gpu/drm/i915/display/intel_dp_mst.c
+++ b/drivers/gpu/drm/i915/display/intel_dp_mst.c
@@ -180,8 +180,8 @@ static int intel_dp_mst_compute_link_config(struct intel_encoder *encoder,
crtc_state->lane_count,
adjusted_mode->crtc_clock,
crtc_state->port_clock,
- &crtc_state->dp_m_n,
- crtc_state->fec_enable);
+ intel_dp_bw_fec_overhead(crtc_state->fec_enable),
+ &crtc_state->dp_m_n);
crtc_state->dp_m_n.tu = slots;
return 0;
@@ -275,8 +275,8 @@ static int intel_dp_dsc_mst_compute_link_config(struct intel_encoder *encoder,
crtc_state->lane_count,
adjusted_mode->crtc_clock,
crtc_state->port_clock,
- &crtc_state->dp_m_n,
- crtc_state->fec_enable);
+ intel_dp_bw_fec_overhead(crtc_state->fec_enable),
+ &crtc_state->dp_m_n);
crtc_state->dp_m_n.tu = slots;
return 0;