mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 14:56:54 -04:00
drm/amd/display: Check validation passed after applying pipe split changes
[WHY?] Validation can fail for configurations that were previously supported, by only changing parameters such as the DET allocations, which is currently unexpected. [HOW?] Add a check that validation passes after applying pipe split related changes. Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com> Acked-by: Alex Hung <alex.hung@amd.com> Signed-off-by: Dillon Varone <Dillon.Varone@amd.com> Tested-by: Mark Broadworth <mark.broadworth@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
6139ab41f2
commit
c40f8b132e
@@ -1736,10 +1736,12 @@ bool dcn32_internal_validate_bw(struct dc *dc,
|
||||
* ensure all the params are calculated correctly. We do not need to run the
|
||||
* pipe split check again after this call (pipes are already split / merged).
|
||||
* */
|
||||
if (!fast_validate) {
|
||||
context->bw_ctx.dml.soc.allow_for_pstate_or_stutter_in_vblank_final =
|
||||
dm_prefetch_support_uclk_fclk_and_stutter_if_possible;
|
||||
vlevel = dml_get_voltage_level(&context->bw_ctx.dml, pipes, pipe_cnt);
|
||||
context->bw_ctx.dml.soc.allow_for_pstate_or_stutter_in_vblank_final =
|
||||
dm_prefetch_support_uclk_fclk_and_stutter_if_possible;
|
||||
vlevel = dml_get_voltage_level(&context->bw_ctx.dml, pipes, pipe_cnt);
|
||||
if (vlevel == context->bw_ctx.dml.soc.num_states) {
|
||||
/* failed after DET size changes */
|
||||
goto validate_fail;
|
||||
}
|
||||
}
|
||||
*vlevel_out = vlevel;
|
||||
|
||||
Reference in New Issue
Block a user