Commit 5cb646d7 authored by Ilya Bakoulin's avatar Ilya Bakoulin Committed by Alex Deucher

drm/amd/display: Add writeback_config to VBA vars

Adding writeback_config enum to vba_vars_st, replacing old flag.
Initialize to dm_normal.
Signed-off-by: default avatarIlya Bakoulin <Ilya.Bakoulin@amd.com>
Reviewed-by: default avatarCharlene Liu <Charlene.Liu@amd.com>
Acked-by: default avatarLeo Li <sunpeng.li@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent c69dd2d0
...@@ -152,6 +152,7 @@ struct _vcs_dpi_ip_params_st { ...@@ -152,6 +152,7 @@ struct _vcs_dpi_ip_params_st {
unsigned int writeback_line_buffer_luma_buffer_size; unsigned int writeback_line_buffer_luma_buffer_size;
unsigned int writeback_line_buffer_chroma_buffer_size; unsigned int writeback_line_buffer_chroma_buffer_size;
#endif #endif
unsigned int max_page_table_levels; unsigned int max_page_table_levels;
unsigned int max_num_dpp; unsigned int max_num_dpp;
unsigned int max_num_otg; unsigned int max_num_otg;
......
...@@ -306,7 +306,6 @@ static void fetch_ip_params(struct display_mode_lib *mode_lib) ...@@ -306,7 +306,6 @@ static void fetch_ip_params(struct display_mode_lib *mode_lib)
mode_lib->vba.WritebackInterfaceBufferSize = ip->writeback_interface_buffer_size_kbytes; mode_lib->vba.WritebackInterfaceBufferSize = ip->writeback_interface_buffer_size_kbytes;
mode_lib->vba.WritebackLineBufferSize = ip->writeback_line_buffer_buffer_size; mode_lib->vba.WritebackLineBufferSize = ip->writeback_line_buffer_buffer_size;
mode_lib->vba.WritebackSupportInterleaveAndUsingWholeBufferForASingleStream = false;
mode_lib->vba.MinVoltageLevel = 0; mode_lib->vba.MinVoltageLevel = 0;
mode_lib->vba.MaxVoltageLevel = 5; mode_lib->vba.MaxVoltageLevel = 5;
...@@ -323,6 +322,7 @@ static void fetch_ip_params(struct display_mode_lib *mode_lib) ...@@ -323,6 +322,7 @@ static void fetch_ip_params(struct display_mode_lib *mode_lib)
mode_lib->vba.WritebackMinVSCLRatio = ip->writeback_min_vscl_ratio; mode_lib->vba.WritebackMinVSCLRatio = ip->writeback_min_vscl_ratio;
mode_lib->vba.WritebackMaxHSCLTaps = ip->writeback_max_hscl_taps; mode_lib->vba.WritebackMaxHSCLTaps = ip->writeback_max_hscl_taps;
mode_lib->vba.WritebackMaxVSCLTaps = ip->writeback_max_vscl_taps; mode_lib->vba.WritebackMaxVSCLTaps = ip->writeback_max_vscl_taps;
mode_lib->vba.WritebackConfiguration = dm_normal;
mode_lib->vba.GPUVMMaxPageTableLevels = ip->gpuvm_max_page_table_levels; mode_lib->vba.GPUVMMaxPageTableLevels = ip->gpuvm_max_page_table_levels;
mode_lib->vba.HostVMMaxNonCachedPageTableLevels = ip->hostvm_max_page_table_levels; mode_lib->vba.HostVMMaxNonCachedPageTableLevels = ip->hostvm_max_page_table_levels;
mode_lib->vba.HostVMMaxPageTableLevels = ip->hostvm_max_page_table_levels; mode_lib->vba.HostVMMaxPageTableLevels = ip->hostvm_max_page_table_levels;
......
...@@ -237,6 +237,7 @@ struct vba_vars_st { ...@@ -237,6 +237,7 @@ struct vba_vars_st {
unsigned int WritebackInterfaceLumaBufferSize; unsigned int WritebackInterfaceLumaBufferSize;
unsigned int WritebackInterfaceChromaBufferSize; unsigned int WritebackInterfaceChromaBufferSize;
unsigned int WritebackChromaLineBufferWidth; unsigned int WritebackChromaLineBufferWidth;
enum writeback_config WritebackConfiguration;
double MaxDCHUBToPSCLThroughput; double MaxDCHUBToPSCLThroughput;
double MaxPSCLToLBThroughput; double MaxPSCLToLBThroughput;
unsigned int PTEBufferSizeInRequestsLuma; unsigned int PTEBufferSizeInRequestsLuma;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment