Commit a2741665 authored by Alvin Lee's avatar Alvin Lee Committed by Alex Deucher

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: default avatarAric Cyr <Aric.Cyr@amd.com>
Acked-by: default avatarStylon Wang <stylon.wang@amd.com>
Signed-off-by: default avatarAlvin Lee <Alvin.Lee2@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 8747075f
...@@ -1988,7 +1988,7 @@ enum dc_status dc_commit_streams(struct dc *dc, ...@@ -1988,7 +1988,7 @@ enum dc_status dc_commit_streams(struct dc *dc,
DC_LOG_DC("%s Finished.\n", __func__); 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 /* TODO: When the transition to the new commit sequence is done, remove this
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment