mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 13:06:59 +02:00
drm/i915/dp: Account with MST, SSC BW overhead for uncompressed DP-MST stream BW
On MST links the symbol alignment and SSC have a BW overhead, which should be accounted for when calculating the required stream BW, do so during mode validation for an uncompressed stream. Reviewed-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Imre Deak <imre.deak@intel.com> Link: https://patch.msgid.link/20251215192357.172201-11-imre.deak@intel.com
This commit is contained in:
parent
2fb850a6ae
commit
e25b6f1334
|
|
@ -1458,6 +1458,8 @@ mst_connector_mode_valid_ctx(struct drm_connector *_connector,
|
|||
const int min_bpp = 18;
|
||||
int max_dotclk = display->cdclk.max_dotclk_freq;
|
||||
int max_rate, mode_rate, max_lanes, max_link_clock;
|
||||
unsigned long bw_overhead_flags =
|
||||
DRM_DP_BW_OVERHEAD_MST | DRM_DP_BW_OVERHEAD_SSC_REF_CLK;
|
||||
int ret;
|
||||
bool dsc = false;
|
||||
u16 dsc_max_compressed_bpp = 0;
|
||||
|
|
@ -1491,7 +1493,8 @@ mst_connector_mode_valid_ctx(struct drm_connector *_connector,
|
|||
max_link_clock, max_lanes);
|
||||
mode_rate = intel_dp_link_required(max_link_clock, max_lanes,
|
||||
mode->clock, mode->hdisplay,
|
||||
fxp_q4_from_int(min_bpp), 0);
|
||||
fxp_q4_from_int(min_bpp),
|
||||
bw_overhead_flags);
|
||||
|
||||
/*
|
||||
* TODO:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user