drm/amd/display: Account for Subvp Phantoms in DML MALL surface calculations
authorDillon Varone <Dillon.Varone@amd.com>
Thu, 8 Dec 2022 18:55:13 +0000 (13:55 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Jan 2023 20:37:52 +0000 (15:37 -0500)
commita21005e4d2026ea6541f438e8d086a33b55c74df
treeb9531f25639d0bb743932ed40445ebed04715ef1
parent95c454ca923bf6752180398eb4e4b86ea7be3641
drm/amd/display: Account for Subvp Phantoms in DML MALL surface calculations

DML does not explicitly consider support for space in MALL required for
subvp phantom pipes. This adds a check to make sure portion of phantom
surface can fit in MALL.

Tested-by: Daniel Wheeler <Daniel.Wheeler@amd.com>
Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Dillon Varone <Dillon.Varone@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.h