]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amd/display: Add DML variable for future asics
authorJoshua Aberback <joshua.aberback@amd.com>
Wed, 22 Apr 2020 22:07:51 +0000 (18:07 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Apr 2020 20:17:36 +0000 (16:17 -0400)
Signed-off-by: Joshua Aberback <joshua.aberback@amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/display_mode_structs.h
drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c
drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.h

index 687010c17324cc595eb70ae81136fa6ca0af14a7..b2ecb174a93f91649f06506af9519c1b714088a5 100644 (file)
@@ -121,6 +121,7 @@ struct _vcs_dpi_soc_bounding_box_st {
 };
 
 struct _vcs_dpi_ip_params_st {
+       bool use_min_dcfclk;
        bool gpuvm_enable;
        bool hostvm_enable;
        unsigned int gpuvm_max_page_table_levels;
index 6b525c52124c6aa3b93dd3ee3cb0665727a9f2ac..6e4e8a452e66432a80d09694759fa88e45deabc4 100644 (file)
@@ -280,6 +280,7 @@ static void fetch_ip_params(struct display_mode_lib *mode_lib)
        ip_params_st *ip = &mode_lib->vba.ip;
 
        // IP Parameters
+       mode_lib->vba.UseMinimumRequiredDCFCLK = ip->use_min_dcfclk;
        mode_lib->vba.MaxNumDPP = ip->max_num_dpp;
        mode_lib->vba.MaxNumOTG = ip->max_num_otg;
        mode_lib->vba.MaxNumHDMIFRLOutputs = ip->max_num_hdmi_frl_outputs;
index 5d82fc5a7ed7258d4c34217272eb2a7d3cf27728..a1884ffe63aeddf5c50470add50c9bba2cd0f212 100644 (file)
@@ -898,6 +898,7 @@ struct vba_vars_st {
        bool dummystring[DC__NUM_DPP__MAX];
        double BPP;
        enum odm_combine_policy ODMCombinePolicy;
+       bool UseMinimumRequiredDCFCLK;
 };
 
 bool CalculateMinAndMaxPrefetchMode(