diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2019-08-22 14:17:57 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-08-23 11:33:00 -0500 |
commit | d99f38aed1a03f78cb7ae04d86e7fc5ac70411e3 (patch) | |
tree | 4b3d3d8b749555d0685368e6cfd0abcc1c1a3dba /drivers/gpu/drm/amd/display/dc/calcs | |
parent | 8b2608f1cfece410801a7f5fba374abde4540c0c (diff) | |
download | linux-d99f38aed1a03f78cb7ae04d86e7fc5ac70411e3.tar.gz linux-d99f38aed1a03f78cb7ae04d86e7fc5ac70411e3.tar.bz2 linux-d99f38aed1a03f78cb7ae04d86e7fc5ac70411e3.zip |
drm/amdgpu/display: add flag for multi-display mclk switching
Add a dcfeaturemask flag for mclk switching. Disable by default;
enable once the feature has seen more testing.
Set amdgpu.dcfeaturemask=2 on the kernel command line in grub
to enable this.
Acked-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/calcs')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c b/drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c index eca681d9d7f5..a1d49256fab7 100644 --- a/drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c +++ b/drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c @@ -3025,7 +3025,10 @@ bool bw_calcs(struct dc_context *ctx, populate_initial_data(pipe, pipe_count, data); - calcs_output->all_displays_in_sync = all_displays_in_sync(pipe, pipe_count); + if (ctx->dc->config.multi_mon_pp_mclk_switch) + calcs_output->all_displays_in_sync = all_displays_in_sync(pipe, pipe_count); + else + calcs_output->all_displays_in_sync = false; if (data->number_of_displays != 0) { uint8_t yclk_lvl, sclk_lvl; |