diff options
author | Ilya Bakoulin <Ilya.Bakoulin@amd.com> | 2022-11-24 13:58:49 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-01-24 12:25:21 -0500 |
commit | 3a9c6f9a6159d8ecdf715f7eda0777ead96bcdc0 (patch) | |
tree | 53ba0fd6c9da17c20bb0b6d03c1b42756d8a25c6 /drivers/gpu/drm/amd/display/dc/dml/display_mode_lib.h | |
parent | 0bed85e48af1a1a2851f44bd4c486bff414f1079 (diff) | |
download | linux-stable-3a9c6f9a6159d8ecdf715f7eda0777ead96bcdc0.tar.gz linux-stable-3a9c6f9a6159d8ecdf715f7eda0777ead96bcdc0.tar.bz2 linux-stable-3a9c6f9a6159d8ecdf715f7eda0777ead96bcdc0.zip |
drm/amd/display: Speed up DML fast_validate path
[Why]
Iterating over every voltage state when we need to validate thousands of
configurations all at once (i.e. display hotplug) can take a significant
amount of time.
[How]
Check just the highest voltage state when fast_validate is true to
verify whether the configuration can work at all, then do a proper
validation including all voltage states later when fast_validate is false.
Reviewed-by: Nevenko Stupar <Nevenko.Stupar@amd.com>
Acked-by: Alan Liu <HaoPing.Liu@amd.com>
Signed-off-by: Ilya Bakoulin <Ilya.Bakoulin@amd.com>
Signed-off-by: Dillon Varone <Dillon.Varone@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dml/display_mode_lib.h')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dml/display_mode_lib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dml/display_mode_lib.h b/drivers/gpu/drm/amd/display/dc/dml/display_mode_lib.h index 3d643d50c3eb..a9d49ef58fb5 100644 --- a/drivers/gpu/drm/amd/display/dc/dml/display_mode_lib.h +++ b/drivers/gpu/drm/amd/display/dc/dml/display_mode_lib.h @@ -91,6 +91,7 @@ struct display_mode_lib { struct dal_logger *logger; struct dml_funcs funcs; struct _vcs_dpi_display_e2e_pipe_params_st dml_pipe_state[6]; + bool validate_max_state; }; void dml_init_instance(struct display_mode_lib *lib, |