]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/display: Include EQU Prefetch Bandwidth For Bandwidth Calculations
authorAustin Zheng <Austin.Zheng@amd.com>
Thu, 5 Jun 2025 20:37:36 +0000 (16:37 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Jun 2025 13:55:22 +0000 (09:55 -0400)
commit90adb32480fce1ccda76ed5ebd58c4463ead3fd6
treee9ea469d70df90c6dc73183e333ee96cdbac26ef
parente01bf2704224b10e9eabd48d168abb8b9edaaad0
drm/amd/display: Include EQU Prefetch Bandwidth For Bandwidth Calculations

[Why]
Pixel data bandwidth required in mode programming (MP) ends up being
higher than what was calculated in mode support (MS) even though
the prefetch bandwidths calculated in MP are lower than the MS ones.

MP used a different equ prefetch schedule than MS which lead a
slight difference in parameters. This resulted in the pixel data
bandwidth in MP to be higher than MS.

[How]
Rename the RequiredPrefetchBWOTO term so it can be applied generically.
Update the value with the EQU bandwidth if the EQU schedule is used.
Get the max prefetch bandwidth that MS calculated and use it
as part of the calculations for required bandwidth.

Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Signed-off-by: Austin Zheng <Austin.Zheng@amd.com>
Signed-off-by: Fangzhi Zuo <jerry.zuo@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_shared_types.h