drm/amd/display: fix dcn315 dml detile overestimation
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Thu, 8 Sep 2022 15:37:58 +0000 (11:37 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Oct 2022 15:57:51 +0000 (11:57 -0400)
commitab5220bb5a910246c61512a9e29a4e2406cb1ecd
treea1ee7642a1fe34df800af8be08750675681daf81
parentc1969fbaa57d88ddef626bb8ae313d38478d8631
drm/amd/display: fix dcn315 dml detile overestimation

DML does not take the fact that dcn315 does not have enough detile
buffer to max all pipes. This change adds a workaround to apply
the same logic DC does when calculating detile buffer size in DML.

Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dcn31/dcn31_fpu.c
drivers/gpu/drm/amd/display/dc/dml/dcn31/display_mode_vba_31.c
drivers/gpu/drm/amd/display/dc/dml/display_mode_lib.c
drivers/gpu/drm/amd/display/dc/dml/display_mode_lib.h