[PATCH 6/6] drm/i915/dp: Account for dsc bubbles overhead in intel_dp_mode_valid()

Ankit Nautiyal ankit.k.nautiyal at intel.com
Mon Aug 11 13:10:22 UTC 2025


Account for DSC bubble overhead to determine if the mode is ok if DSC is
required for given number of pipes joined.

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal at intel.com>
---
 drivers/gpu/drm/i915/display/intel_dp.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index 0acd86c7d1c2..e3f42ffb5739 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -1542,6 +1542,10 @@ intel_dp_mode_valid(struct drm_connector *_connector,
 					      &dsc_slice_count);
 
 			dsc = dsc_max_compressed_bpp && dsc_slice_count;
+
+			target_clock = intel_dsc_get_pixel_rate_with_dsc_bubbles(target_clock,
+										 mode->htotal,
+										 dsc_slice_count);
 		}
 
 		if (intel_dp_joiner_needs_dsc(display, num_joined_pipes) && !dsc) {
-- 
2.45.2



More information about the Intel-gfx-trybot mailing list