From: Alvin Lee Date: Fri, 25 Nov 2022 03:36:26 +0000 (-0500) Subject: drm/amd/display: Ensure commit_streams returns the DC return code X-Git-Tag: v6.6.7~3824^2~3^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a27416656acd8c1e7e6797259c23bc0742c03a8a;p=platform%2Fkernel%2Flinux-starfive.git drm/amd/display: Ensure commit_streams returns the DC return code [Description] - Ensure dc_commit_streams returns the correct return code so any failures can be handled properly in DM layer - If set timings fail and we have to remove MPO planes, do so unconditionally but make sure to mark for removal so we report the VSYNC and prevent timeout - Failure to remove MPO plane results in set timings failure due to lack of resources Reviewed-by: Aric Cyr Acked-by: Stylon Wang Signed-off-by: Alvin Lee Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index 486d182..0cb8d1f 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -1988,7 +1988,7 @@ context_alloc_fail: DC_LOG_DC("%s Finished.\n", __func__); - return (res == DC_OK); + return res; } /* TODO: When the transition to the new commit sequence is done, remove this