diff options
author | Taimur Hassan <[email protected]> | 2022-07-08 13:32:46 -0400 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2022-07-25 09:31:02 -0400 |
commit | 660f46e16c4b8a34978012a9f10a32a16db3e98f (patch) | |
tree | 70869c027c9a2dc9fa5a275f4382446eb8220a6c | |
parent | 7b5b0d196c2e6cad87cb1e3ce285c7885f2bd796 (diff) |
drm/amd/display: Loop through all pipes for DET allocation
[Why & How]
There are cases where the pipes populated are not all at the top
of the pipes list under context. Loop through all pipes for DET
allocation instead of just the number of populated ones, even if
some unpopulated pipes are iterated through unnecessarily.
Tested-by: Daniel Wheeler <[email protected]>
Reviewed-by: Alvin Lee <[email protected]>
Acked-by: Alan Liu <[email protected]>
Signed-off-by: Taimur Hassan <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c index 0cb44ea9753b..32da47e24839 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c @@ -3068,7 +3068,7 @@ int dcn32_populate_dml_pipes_from_context( } } } else - dcn32_determine_det_override(context, pipes, is_pipe_split_expected, pipe_cnt); + dcn32_determine_det_override(context, pipes, is_pipe_split_expected, dc->res_pool->pipe_count); // In general cases we want to keep the dram clock change requirement // (prefer configs that support MCLK switch). Only override to false |