]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Fix prefetch bandwidth calculation for DCN3.1
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Wed, 29 Sep 2021 15:37:33 +0000 (11:37 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Oct 2021 19:17:13 +0000 (15:17 -0400)
commit85dddd2dfe7e5d3876c38410e7e54ed4172b45f4
treefc834754506a7ccd3b9ff006af20e7c4e5ac813c
parent096dbe80c3ca0d06fee5f8493c380fbef05d13c8
drm/amd/display: Fix prefetch bandwidth calculation for DCN3.1

[Why]
Prefetch BW calculated is lower than the DML reference because of a
porting error that's excluding cursor and row bandwidth from the
pixel data bandwidth.

[How]
Change the dml_max4 to dml_max3 and include cursor and row bandwidth
in the same calculation as the rest of the pixel data during vactive.

Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: Agustin Gutierrez Sanchez <agustin.gutierrez@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/dc/dml/dcn31/display_mode_vba_31.c