]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/dp: Unify detect and compute time DSC mode BW validation
authorImre Deak <imre.deak@intel.com>
Mon, 22 Dec 2025 15:35:40 +0000 (17:35 +0200)
committerImre Deak <imre.deak@intel.com>
Tue, 13 Jan 2026 16:42:18 +0000 (18:42 +0200)
commit2bd5dd6e720952778233636e0d0dd1ede3563634
tree479575fa3ce74730190a8aab6959fbfb534c9b4d
parent745395b51c26766b070f5761d97f9fbad15618c3
drm/i915/dp: Unify detect and compute time DSC mode BW validation

Atm, a DP DSC video mode's required BW vs. the available BW is
determined by calculating the maximum compressed BPP value allowed by
the available BW. Doing that using a closed-form formula as it's done
atm (vs. an iterative way) is problematic, since the overhead of the
required BW itself depends on the BPP value being calculated. Instead of
that calculate the required BW for the minimum compressed BPP value
supported both by the source and the sink and check this BW against the
available BW. This change also aligns the BW calculation during mode
validation with how this is done during state computation, calculating
the required effective data rate with the corresponding BW overhead.

Reviewed-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patch.msgid.link/20251222153547.713360-14-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_dp.c
drivers/gpu/drm/i915/display/intel_dp.h