]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/vdsc: Account for DSC slice overhead in intel_vdsc_min_cdclk()
authorAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Tue, 23 Dec 2025 15:08:26 +0000 (20:38 +0530)
committerAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Mon, 29 Dec 2025 05:17:41 +0000 (10:47 +0530)
commit345ad34565c371f71aeb37d048c845a0fea7eb3a
tree18ced2da669fde76e2a4006864ef9e061aa2ccb1
parentfb3fba6933d169a4a12a7aa33cb68abfeed62ef4
drm/i915/vdsc: Account for DSC slice overhead in intel_vdsc_min_cdclk()

When DSC is enabled on a pipe, the pipe pixel rate input to the
CDCLK frequency and pipe joining calculation needs an adjustment to
account for compression overhead "bubbles" added at each horizontal
slice boundary.

Account for this overhead while computing min cdclk required for DSC.

v2:
 - Get rid of the scaling factor and return unchanged pixel-rate
   instead of 0.
v3:
 - Use mul_u32_u32() for the bubble-adjusted pixel rate to avoid 64x64
   multiplication and drop redundant casts in DIV_ROUND_UP_ULL(). (Imre)

Bspec:68912
Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Link: https://patch.msgid.link/20251223150826.2591182-1-ankit.k.nautiyal@intel.com
drivers/gpu/drm/i915/display/intel_vdsc.c