drm/amd/pp: Not call cgs interface to get display info
Subsystems (2)
PATCH 2/2 drm/amd/pp: Not call cgs interface to get display info
DC/Non DC all will update display configuration to pp when the display state changed
No need to get display info through cgs interface
--- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 48 +++++----------------- drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c | 6 +-- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 39 ++++-------------- drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 21 ++-------- drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c | 4 +- .../gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c | 4 +- .../drm/amd/powerplay/smumgr/polaris10_smumgr.c | 4 +- .../gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c | 10 ++--- 8 files changed, 31 insertions(+), 105 deletions(-)
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +11 -37
@@ -2777,8 +2777,6 @@ static int smu7_apply_state_adjust_rules(struct pp_hwmgr *hwmgr,struct PP_Clocks minimum_clocks = {0 };bool disable_mclk_switching;bool disable_mclk_switching_for_frame_lock; -struct cgs_display_info info = {0 }; -struct cgs_mode_info mode_info = {0 };const struct phm_clock_and_voltage_limits *max_limits;uint32_t i;struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr->backend);
@@ -2787,7 +2785,6 @@ static int smu7_apply_state_adjust_rules(struct pp_hwmgr *hwmgr,int32_t count;int32_t stable_pstate_sclk =0 , stable_pstate_mclk =0 ; - info.mode_info = &mode_info; data->battery_state = (PP_StateUILabel_Battery == request_ps->classification.ui_label);
@@ -2809,8 +2806,6 @@ static int smu7_apply_state_adjust_rules(struct pp_hwmgr *hwmgr, } } -cgs_get_active_displays_info (hwmgr->device, &info); - minimum_clocks.engineClock = hwmgr->display_config.min_core_set_clock; minimum_clocks.memoryClock = hwmgr->display_config.min_mem_set_clock;
@@ -2843,12 +2838,12 @@ static int smu7_apply_state_adjust_rules(struct pp_hwmgr *hwmgr, PHM_PlatformCaps_DisableMclkSwitchingForFrameLock); -if (info.display_count ==0 ) +if (hwmgr->display_config.num_display ==0 ) disable_mclk_switching = false;else - disable_mclk_switching = ((1 < info.display_count) || + disable_mclk_switching = ((1 < hwmgr->display_config.num_display) || disable_mclk_switching_for_frame_lock || -smu7_vblank_too_short (hwmgr, mode_info.vblank_time_us)); +smu7_vblank_too_short (hwmgr, hwmgr->display_config.min_vblank_time)); sclk = smu7_ps->performance_levels[0 ].engine_clock; mclk = smu7_ps->performance_levels[0 ].memory_clock;
@@ -3478,7 +3473,6 @@ static int smu7_find_dpm_states_clocks_in_dpm_table(struct pp_hwmgr *hwmgr, cons [smu7_ps->performance_level_count -1 ].memory_clock;struct PP_Clocks min_clocks = {0 };uint32_t i; -struct cgs_display_info info = {0 };for (i =0 ; i < sclk_table->count; i++) {if (sclk == sclk_table->dpm_levels[i].value)
@@ -3505,9 +3499,8 @@ static int smu7_find_dpm_states_clocks_in_dpm_table(struct pp_hwmgr *hwmgr, consif (i >= mclk_table->count) data->need_update_smu7_dpm_table |=DPMTABLE_OD_UPDATE_MCLK ; -cgs_get_active_displays_info (hwmgr->device, &info); -if (data->display_timing.num_existing_displays != info.display_count) +if (data->display_timing.num_existing_displays != hwmgr->display_config.num_display) data->need_update_smu7_dpm_table |=DPMTABLE_UPDATE_MCLK ;return 0 ;
@@ -3904,15 +3897,8 @@ static int smu7_set_max_fan_pwm_output(struct pp_hwmgr *hwmgr, uint16_t us_max_fstatic int smu7_notify_smc_display_config_after_ps_adjustment (struct pp_hwmgr *hwmgr) { -uint32_t num_active_displays =0 ; -struct cgs_display_info info = {0 }; - - info.mode_info =NULL ; -cgs_get_active_displays_info (hwmgr->device, &info); - - num_active_displays = info.display_count; - -if (num_active_displays >1 && hwmgr->display_config.multi_monitor_in_sync != true) +if (hwmgr->display_config.num_display >1 && + hwmgr->display_config.multi_monitor_in_sync != true)smu7_notify_smc_display_change (hwmgr, false);return 0 ;
@@ -3927,33 +3913,24 @@ static int smu7_set_max_fan_pwm_output(struct pp_hwmgr *hwmgr, uint16_t us_max_fstatic int smu7_program_display_gap (struct pp_hwmgr *hwmgr) {struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr->backend); -uint32_t num_active_displays =0 ;uint32_t display_gap =cgs_read_ind_register (hwmgr->device,CGS_IND_REG__SMC , ixCG_DISPLAY_GAP_CNTL);uint32_t display_gap2;uint32_t pre_vbi_time_in_us;uint32_t frame_time_in_us; -uint32_t ref_clock; -uint32_t refresh_rate =0 ; -struct cgs_display_info info = {0 }; -struct cgs_mode_info mode_info = {0 }; +uint32_t ref_clock, refresh_rate; - info.mode_info = &mode_info; -cgs_get_active_displays_info (hwmgr->device, &info); - num_active_displays = info.display_count; - - display_gap =PHM_SET_FIELD (display_gap,CG_DISPLAY_GAP_CNTL ,DISP_GAP , (num_active_displays >0 ) ?DISPLAY_GAP_VBLANK_OR_WM :DISPLAY_GAP_IGNORE ); + display_gap =PHM_SET_FIELD (display_gap,CG_DISPLAY_GAP_CNTL ,DISP_GAP , (hwmgr->display_config.num_display >0 ) ?DISPLAY_GAP_VBLANK_OR_WM :DISPLAY_GAP_IGNORE );cgs_write_ind_register (hwmgr->device,CGS_IND_REG__SMC , ixCG_DISPLAY_GAP_CNTL, display_gap); ref_clock =amdgpu_asic_get_xclk ((struct amdgpu_device *)hwmgr->adev); - - refresh_rate = mode_info.refresh_rate; + refresh_rate = hwmgr->display_config.vrefresh;if (0 == refresh_rate) refresh_rate =60 ; frame_time_in_us =1000000 / refresh_rate; - pre_vbi_time_in_us = frame_time_in_us -200 - mode_info.vblank_time_us; + pre_vbi_time_in_us = frame_time_in_us -200 - hwmgr->display_config.min_vblank_time; data->frame_time_x2 = frame_time_in_us *2 /100 ;
@@ -4033,11 +4010,8 @@ static int smu7_register_irq_handlers(struct pp_hwmgr *hwmgr) {struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr->backend);bool is_update_required = false; -struct cgs_display_info info = {0 ,0 ,NULL }; - -cgs_get_active_displays_info (hwmgr->device, &info); -if (data->display_timing.num_existing_displays != info.display_count) +if (data->display_timing.num_existing_displays != hwmgr->display_config.num_display) is_update_required = true;if (phm_cap_enabled (hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_SclkDeepSleep)) {
drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c +1 -5
@@ -1040,8 +1040,6 @@ static int smu8_apply_state_adjust_rules(struct pp_hwmgr *hwmgr,struct smu8_hwmgr *data = hwmgr->backend;struct PP_Clocks clocks = {0 ,0 ,0 ,0 };bool force_high; -uint32_t num_of_active_displays =0 ; -struct cgs_display_info info = {0 }; smu8_ps->need_dfs_bypass = true;
@@ -1051,14 +1049,12 @@ static int smu8_apply_state_adjust_rules(struct pp_hwmgr *hwmgr, hwmgr->display_config.min_mem_set_clock : data->sys_info.nbp_memory_clock[1]; -cgs_get_active_displays_info (hwmgr->device, &info); - num_of_active_displays = info.display_count;if (phm_cap_enabled (hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_StablePState)) clocks.memoryClock = hwmgr->dyn_state.max_clock_voltage_on_ac.mclk; force_high = (clocks.memoryClock > data->sys_info.nbp_memory_clock[SMU8_NUM_NBPMEMORYCLOCK -1 ]) - || (num_of_active_displays >=3 ); + || (hwmgr->display_config.num_display >=3 ); smu8_ps->action = smu8_current_ps->action;
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +8 -31
@@ -3028,7 +3028,6 @@ static int vega10_apply_state_adjust_rules(struct pp_hwmgr *hwmgr,bool disable_mclk_switching_for_frame_lock;bool disable_mclk_switching_for_vr;bool force_mclk_high; -struct cgs_display_info info = {0 };const struct phm_clock_and_voltage_limits *max_limits;uint32_t i;struct vega10_hwmgr *data = hwmgr->backend;
@@ -3063,8 +3062,6 @@ static int vega10_apply_state_adjust_rules(struct pp_hwmgr *hwmgr, } } -cgs_get_active_displays_info (hwmgr->device, &info); -/* result = PHM_CheckVBlankTime(hwmgr, &vblankTooShort);*/ minimum_clocks.engineClock = hwmgr->display_config.min_core_set_clock; minimum_clocks.memoryClock = hwmgr->display_config.min_mem_set_clock;
@@ -3107,10 +3104,10 @@ static int vega10_apply_state_adjust_rules(struct pp_hwmgr *hwmgr,PP_CAP (PHM_PlatformCaps_DisableMclkSwitchForVR); force_mclk_high =PP_CAP (PHM_PlatformCaps_ForceMclkHigh); -if (info.display_count ==0 ) +if (hwmgr->display_config.num_display ==0 ) disable_mclk_switching = false;else - disable_mclk_switching = (info.display_count >1 ) || + disable_mclk_switching = (hwmgr->display_config.num_display >1 ) || disable_mclk_switching_for_frame_lock || disable_mclk_switching_for_vr || force_mclk_high;
@@ -3186,7 +3183,6 @@ static int vega10_find_dpm_states_clocks_in_dpm_table(struct pp_hwmgr *hwmgr, co [vega10_ps->performance_level_count -1 ].mem_clock;struct PP_Clocks min_clocks = {0 };uint32_t i; -struct cgs_display_info info = {0 }; data->need_update_dpm_table =0 ;
@@ -3211,10 +3207,8 @@ static int vega10_find_dpm_states_clocks_in_dpm_table(struct pp_hwmgr *hwmgr, co data->need_update_dpm_table |=DPMTABLE_UPDATE_SCLK ; } -cgs_get_active_displays_info (hwmgr->device, &info); -if (data->display_timing.num_existing_displays != - info.display_count) + hwmgr->display_config.num_display) data->need_update_dpm_table |=DPMTABLE_UPDATE_MCLK ; }else {for (i =0 ; i < sclk_table->count; i++) {
@@ -3242,13 +3236,11 @@ static int vega10_find_dpm_states_clocks_in_dpm_table(struct pp_hwmgr *hwmgr, cobreak ; } -cgs_get_active_displays_info (hwmgr->device, &info); -if (i >= mclk_table->count) data->need_update_dpm_table |=DPMTABLE_OD_UPDATE_MCLK ;if (data->display_timing.num_existing_displays != - info.display_count || + hwmgr->display_config.num_display || i >= mclk_table->count) data->need_update_dpm_table |=DPMTABLE_UPDATE_MCLK ; }
@@ -3956,19 +3948,11 @@ static int vega10_notify_smc_display_config_after_ps_adjustment( (struct phm_ppt_v2_information *)hwmgr->pptable;struct phm_ppt_v1_clock_voltage_dependency_table *mclk_table = table_info->vdd_dep_on_mclk;uint32_t idx; -uint32_t num_active_disps =0 ; -struct cgs_display_info info = {0 };struct PP_Clocks min_clocks = {0 };uint32_t i;struct pp_display_clock_request clock_req; - info.mode_info =NULL ; - -cgs_get_active_displays_info (hwmgr->device, &info); - - num_active_disps = info.display_count; - -if (num_active_disps >1 ) +if (hwmgr->display_config.num_display >1 )vega10_notify_smc_display_change (hwmgr, false);else vega10_notify_smc_display_change (hwmgr, true);
@@ -4501,10 +4485,8 @@ static int vega10_print_clock_levels(struct pp_hwmgr *hwmgr,static int vega10_display_configuration_changed_task (struct pp_hwmgr *hwmgr) {struct vega10_hwmgr *data = hwmgr->backend; -int result =0 ; -uint32_t num_turned_on_displays =1 ;Watermarks_t *wm_table = &(data->smc_state_table.water_marks_table); -struct cgs_display_info info = {0 }; +int result =0 ;if ((data->water_marks_bitmap & WaterMarksExist) && !(data->water_marks_bitmap & WaterMarksLoaded)) {
@@ -4514,10 +4496,8 @@ static int vega10_display_configuration_changed_task(struct pp_hwmgr *hwmgr) }if (data->water_marks_bitmap & WaterMarksLoaded) { -cgs_get_active_displays_info (hwmgr->device, &info); - num_turned_on_displays = info.display_count;smum_send_msg_to_smc_with_parameter (hwmgr, - PPSMC_MSG_NumOfDisplays, num_turned_on_displays); + PPSMC_MSG_NumOfDisplays, hwmgr->display_config.num_display); }return result;
@@ -4603,11 +4583,8 @@ static int vega10_check_states_equal(struct pp_hwmgr *hwmgr, {struct vega10_hwmgr *data = hwmgr->backend;bool is_update_required = false; -struct cgs_display_info info = {0 ,0 ,NULL }; - -cgs_get_active_displays_info (hwmgr->device, &info); -if (data->display_timing.num_existing_displays != info.display_count) +if (data->display_timing.num_existing_displays != hwmgr->display_config.num_display) is_update_required = true;if (PP_CAP (PHM_PlatformCaps_SclkDeepSleep)) {
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c +4 -17
@@ -1260,16 +1260,11 @@ static int vega12_notify_smc_display_config_after_ps_adjustment( {struct vega12_hwmgr *data = (struct vega12_hwmgr *)(hwmgr->backend); -uint32_t num_active_disps =0 ; -struct cgs_display_info info = {0 };struct PP_Clocks min_clocks = {0 };struct pp_display_clock_request clock_req;uint32_t clk_request; - info.mode_info =NULL ; -cgs_get_active_displays_info (hwmgr->device, &info); - num_active_disps = info.display_count; -if (num_active_disps >1 ) +if (hwmgr->display_config.num_display >1 )vega12_notify_smc_display_change (hwmgr, false);else vega12_notify_smc_display_change (hwmgr, true);
@@ -1832,9 +1827,7 @@ static int vega12_display_configuration_changed_task(struct pp_hwmgr *hwmgr) {struct vega12_hwmgr *data = (struct vega12_hwmgr *)(hwmgr->backend);int result =0 ; -uint32_t num_turned_on_displays =1 ;Watermarks_t *wm_table = &(data->smc_state_table.water_marks_table); -struct cgs_display_info info = {0 };if ((data->water_marks_bitmap & WaterMarksExist) && !(data->water_marks_bitmap & WaterMarksLoaded)) {
@@ -1846,12 +1839,9 @@ static int vega12_display_configuration_changed_task(struct pp_hwmgr *hwmgr)if ((data->water_marks_bitmap & WaterMarksExist) && data->smu_features[GNLD_DPM_DCEFCLK ].supported && - data->smu_features[GNLD_DPM_SOCCLK ].supported) { -cgs_get_active_displays_info (hwmgr->device, &info); - num_turned_on_displays = info.display_count; + data->smu_features[GNLD_DPM_SOCCLK ].supported)smum_send_msg_to_smc_with_parameter (hwmgr, - PPSMC_MSG_NumOfDisplays, num_turned_on_displays); - } + PPSMC_MSG_NumOfDisplays, hwmgr->display_config.num_display);return result; }
@@ -1894,11 +1884,8 @@ static void vega12_power_gate_uvd(struct pp_hwmgr *hwmgr, bool bgate) {struct vega12_hwmgr *data = (struct vega12_hwmgr *)(hwmgr->backend);bool is_update_required = false; -struct cgs_display_info info = {0 ,0 ,NULL }; - -cgs_get_active_displays_info (hwmgr->device, &info); -if (data->display_timing.num_existing_displays != info.display_count) +if (data->display_timing.num_existing_displays != hwmgr->display_config.num_display) is_update_required = true;if (data->registry_data.gfx_clk_deep_sleep_support) {
drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c +1 -3
@@ -1182,7 +1182,6 @@ static int ci_populate_single_memory_level(struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr->backend);int result =0 ;bool dll_state_on; -struct cgs_display_info info = {0 };uint32_t mclk_edc_wr_enable_threshold =40000 ;uint32_t mclk_edc_enable_threshold =40000 ;uint32_t mclk_strobe_mode_threshold =40000 ;
@@ -1236,8 +1235,7 @@ static int ci_populate_single_memory_level(/* default set to low watermark. Highest level will be set to high later.*/ memory_level->DisplayWatermark =PPSMC_DISPLAY_WATERMARK_LOW ; -cgs_get_active_displays_info (hwmgr->device, &info); - data->display_timing.num_existing_displays = info.display_count; + data->display_timing.num_existing_displays = hwmgr->display_config.num_display;/* stutter mode not support on ci */
drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c +1 -3
@@ -1236,7 +1236,6 @@ static int iceland_populate_single_memory_level(struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr->backend);int result =0 ;bool dll_state_on; -struct cgs_display_info info = {0 };uint32_t mclk_edc_wr_enable_threshold =40000 ;uint32_t mclk_edc_enable_threshold =40000 ;uint32_t mclk_strobe_mode_threshold =40000 ;
@@ -1283,8 +1282,7 @@ static int iceland_populate_single_memory_level(/* default set to low watermark. Highest level will be set to high later.*/ memory_level->DisplayWatermark =PPSMC_DISPLAY_WATERMARK_LOW ; -cgs_get_active_displays_info (hwmgr->device, &info); - data->display_timing.num_existing_displays = info.display_count; + data->display_timing.num_existing_displays = hwmgr->display_config.num_display;/* stutter mode not support on iceland */
drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c +1 -3
@@ -1076,11 +1076,9 @@ static int polaris10_populate_single_memory_level(struct pp_hwmgr *hwmgr,struct phm_ppt_v1_information *table_info = (struct phm_ppt_v1_information *)(hwmgr->pptable);int result =0 ; -struct cgs_display_info info = {0 ,0 ,NULL };uint32_t mclk_stutter_mode_threshold =40000 ;phm_ppt_v1_clock_voltage_dependency_table *vdd_dep_table =NULL ; -cgs_get_active_displays_info (hwmgr->device, &info);if (hwmgr->od_enabled) vdd_dep_table = (phm_ppt_v1_clock_voltage_dependency_table *)&data->odn_dpm_table.vdd_dependency_on_mclk;
@@ -1106,7 +1104,7 @@ static int polaris10_populate_single_memory_level(struct pp_hwmgr *hwmgr, mem_level->StutterEnable = false; mem_level->DisplayWatermark =PPSMC_DISPLAY_WATERMARK_LOW ; - data->display_timing.num_existing_displays = info.display_count; + data->display_timing.num_existing_displays = hwmgr->display_config.num_display; if (mclk_stutter_mode_threshold && (clock <= mclk_stutter_mode_threshold) &&
drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c +4 -6
@@ -956,18 +956,17 @@ static int tonga_populate_single_memory_level(SMU72_Discrete_MemoryLevel *memory_level ) { -uint32_t mvdd =0 ;struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr->backend);struct phm_ppt_v1_information *pptable_info = (struct phm_ppt_v1_information *)(hwmgr->pptable); -int result =0 ; -bool dll_state_on; -struct cgs_display_info info = {0 };uint32_t mclk_edc_wr_enable_threshold =40000 ;uint32_t mclk_stutter_mode_threshold =30000 ;uint32_t mclk_edc_enable_threshold =40000 ;uint32_t mclk_strobe_mode_threshold =40000 ;phm_ppt_v1_clock_voltage_dependency_table *vdd_dep_table =NULL ; +int result =0 ; +bool dll_state_on; +uint32_t mvdd =0 ;if (hwmgr->od_enabled) vdd_dep_table = (phm_ppt_v1_clock_voltage_dependency_table *)&data->odn_dpm_table.vdd_dependency_on_mclk;
@@ -1008,8 +1007,7 @@ static int tonga_populate_single_memory_level(/* default set to low watermark. Highest level will be set to high later.*/ memory_level->DisplayWatermark =PPSMC_DISPLAY_WATERMARK_LOW ; -cgs_get_active_displays_info (hwmgr->device, &info); - data->display_timing.num_existing_displays = info.display_count; + data->display_timing.num_existing_displays = hwmgr->display_config.num_display; if ((mclk_stutter_mode_threshold != 0) && (memory_clock <= mclk_stutter_mode_threshold) &&
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1522137302-26215-1-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org
Quan, Evan
Reviewed-by Evan QuanQuoted 585 lines
-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Rex Zhu
Sent: Tuesday, March 27, 2018 3:55 PM
To: [email protected]
Cc: Zhu, Rex <[email protected]>
Subject: [PATCH 2/2] drm/amd/pp: Not call cgs interface to get display infoDC/Non DC all will update display configuration to pp when the display state changed No need to get display info through cgs interface
Change-Id I4a25c63edb46d6162576a73620b9d9cbcd347a30Signed-off-by Rex Zhu <[email protected]>--- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 48 +++++------- ---------- drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c | 6 +-- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 39 ++++-------- ------ drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 21 ++---- ---- drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c | 4 +- .../gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c | 4 +- .../drm/amd/powerplay/smumgr/polaris10_smumgr.c | 4 +- .../gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c | 10 ++--- 8 files changed, 31 insertions(+), 105 deletions(-)drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +0
-2@@ -2777,8 +2777,6 @@ static int smu7_apply_state_adjust_rules(structpp_hwmgr *hwmgr, struct PP_Clocks minimum_clocks = {0};bool disable_mclk_switching;bool disable_mclk_switching_for_frame_lock; -struct cgs_display_info info = {0 }; -struct cgs_mode_info mode_info = {0 };const struct phm_clock_and_voltage_limits *max_limits;uint32_t i;struct
smu7_hwmgr*data = (structsmu7_hwmgr*)(hwmgr-Quoted 1 line
backend); @@ -2787,7 +2785,6 @@ static int
smu7_apply_state_adjust_rules(struct
pp_hwmgr*hwmgr,drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +0
-3int32_t count;int32_t stable_pstate_sclk =0 , stable_pstate_mclk =0 ; - info.mode_info = &mode_info; data->battery_state = (PP_StateUILabel_Battery == request_ps->classification.ui_label);@@ -2809,8 +2806,6 @@ static int smu7_apply_state_adjust_rules(struct pp_hwmgr *hwmgr, } } -cgs_get_active_displays_info (hwmgr->device, &info); - minimum_clocks.engineClock = hwmgr- >display_config.min_core_set_clock;minimum_clocks.memoryClock = hwmgr-
Quoted 1 line
display_config.min_mem_set_clock;
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +2
-2@@ -2843,12 +2838,12 @@ static int smu7_apply_state_adjust_rules(structpp_hwmgr *hwmgr, PHM_PlatformCaps_DisableMclkSwitchingForFrameLock); -if (info.display_count ==0 ) +if (hwmgr->display_config.num_display ==0 ) disable_mclk_switching = false;else - disable_mclk_switching = ((1 < info.display_count) || + disable_mclk_switching = ((1 < hwmgr-Quoted 1 line
display_config.num_display) ||
disable_mclk_switching_for_frame_lock||drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +0
-1- smu7_vblank_too_short(hwmgr,mode_info.vblank_time_us));
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +2
-0+smu7_vblank_too_short (hwmgr, +hwmgr->display_config.min_vblank_time)); sclk = smu7_ps->performance_levels[0 ].engine_clock; mclk = smu7_ps->performance_levels[0 ].memory_clock;@@ -3478,7 +3473,6 @@ static int smu7_find_dpm_states_clocks_in_dpm_table(struct pp_hwmgr *hwmgr,cons
[smu7_ps->performance_level_count-
1].memory_clock;drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +1
-1struct PP_Clocks min_clocks = {0 };uint32_t i; -struct cgs_display_info info = {0 };for (i =0 ; i < sclk_table->count; i++) { if (sclk == sclk_table->dpm_levels[i].value) @@ -3505,9 +3499,8 @@ static int smu7_find_dpm_states_clocks_in_dpm_table(struct
pp_hwmgr*hwmgr, consdrivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +0
-0if (i >= mclk_table->count) data->need_update_smu7_dpm_table |=
DPMTABLE_OD_UPDATE_MCLK;drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +2
-2-cgs_get_active_displays_info (hwmgr->device, &info); -if (data->display_timing.num_existing_displays != info.display_count) +if (data->display_timing.num_existing_displays != +hwmgr->display_config.num_display) data->need_update_smu7_dpm_table |=
DPMTABLE_UPDATE_MCLK;drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +0
-0return 0 ;@@ -3904,15 +3897,8 @@ static int smu7_set_max_fan_pwm_output(struct
pp_hwmgr*hwmgr,uint16_tus_max_fstatic intsmu7_notify_smc_display_config_after_ps_adjustment(struct pp_hwmgr *hwmgr){drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +0
-9-uint32_t num_active_displays =0 ; -struct cgs_display_info info = {0 }; - - info.mode_info =NULL ; -cgs_get_active_displays_info (hwmgr->device, &info); - - num_active_displays = info.display_count; - - if (num_active_displays > 1 && hwmgr-Quoted 1 line
display_config.multi_monitor_in_sync != true)
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +2
-0+if (hwmgr->display_config.num_display >1 && + hwmgr->display_config.multi_monitor_in_sync !=true)
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +0
-0smu7_notify_smc_display_change (hwmgr, false);return 0 ;@@ -3927,33 +3913,24 @@ static intsmu7_set_max_fan_pwm_output(struct
pp_hwmgr*hwmgr,uint16_tus_max_fstatic intsmu7_program_display_gap(struct pp_hwmgr *hwmgr){
structsmu7_hwmgr*data = (structsmu7_hwmgr*)(hwmgr-Quoted 1 line
backend);
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +0
-1-uint32_t num_active_displays =0 ; uint32_t display_gap = cgs_read_ind_register(hwmgr->device,
CGS_IND_REG__SMC,ixCG_DISPLAY_GAP_CNTL);drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +1
-9uint32_t display_gap2;uint32_t pre_vbi_time_in_us;uint32_t frame_time_in_us; -uint32_t ref_clock; -uint32_t refresh_rate =0 ; -struct cgs_display_info info = {0 }; -struct cgs_mode_info mode_info = {0 }; +uint32_t ref_clock, refresh_rate; - info.mode_info = &mode_info; -cgs_get_active_displays_info (hwmgr->device, &info); - num_active_displays = info.display_count; - - display_gap = PHM_SET_FIELD(display_gap, CG_DISPLAY_GAP_CNTL,
DISP_GAP, (num_active_displays> 0) ?DISPLAY_GAP_VBLANK_OR_WM:DISPLAY_GAP_IGNORE);drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +3
-0+ display_gap =PHM_SET_FIELD (display_gap,CG_DISPLAY_GAP_CNTL , +DISP_GAP , (hwmgr->display_config.num_display >0 ) ? +DISPLAY_GAP_VBLANK_OR_WM :DISPLAY_GAP_IGNORE ); cgs_write_ind_register(hwmgr->device, CGS_IND_REG__SMC,
ixCG_DISPLAY_GAP_CNTL,display_gap);
ref_clock= amdgpu_asic_get_xclk((structamdgpu_device*)hwmgr-Quoted 1 line
adev);
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +1
-3- - refresh_rate = mode_info.refresh_rate; + refresh_rate = hwmgr->display_config.vrefresh;if (0 == refresh_rate) refresh_rate =60 ; frame_time_in_us =1000000 / refresh_rate; - pre_vbi_time_in_us = frame_time_in_us - 200 -mode_info.vblank_time_us;
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +4
-4+ pre_vbi_time_in_us = frame_time_in_us -200 - +hwmgr->display_config.min_vblank_time; data->frame_time_x2 = frame_time_in_us *2 /100 ;@@ -4033,11 +4010,8 @@ static int smu7_register_irq_handlers(struct pp_hwmgr *hwmgr) {struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr- >backend);bool is_update_required = false; -struct cgs_display_info info = {0 ,0 ,NULL }; - -cgs_get_active_displays_info (hwmgr->device, &info); -if (data->display_timing.num_existing_displays != info.display_count) +if (data->display_timing.num_existing_displays != +hwmgr->display_config.num_display) is_update_required = true; if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps,
PHM_PlatformCaps_SclkDeepSleep)) { diff --gita/drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.cb/drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.cindex 0534b51..bc56926 100644drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c +1
-5@@ -1040,8 +1040,6 @@ static int smu8_apply_state_adjust_rules(structpp_hwmgr *hwmgr, struct smu8_hwmgr *data = hwmgr->backend;struct PP_Clocks clocks = {0 ,0 ,0 ,0 };bool force_high; -uint32_t num_of_active_displays =0 ; -struct cgs_display_info info = {0 }; smu8_ps->need_dfs_bypass = true;@@ -1051,14 +1049,12 @@ static int smu8_apply_state_adjust_rules(struct pp_hwmgr *hwmgr, hwmgr->display_config.min_mem_set_clock : data->sys_info.nbp_memory_clock[1 ]; -cgs_get_active_displays_info (hwmgr->device, &info); - num_of_active_displays = info.display_count;if (phm_cap_enabled (hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_StablePState)) clocks.memoryClock = hwmgr- >dyn_state.max_clock_voltage_on_ac.mclk; force_high = (clocks.memoryClock > data- >sys_info.nbp_memory_clock[SMU8_NUM_NBPMEMORYCLOCK -1 ]) - || (num_of_active_displays >=3 ); + || (hwmgr->display_config.num_display >=3 ); smu8_ps->action = smu8_current_ps->action;drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +0
-1@@ -3028,7 +3028,6 @@ static int vega10_apply_state_adjust_rules(structpp_hwmgr *hwmgr, bool disable_mclk_switching_for_frame_lock;bool disable_mclk_switching_for_vr;bool force_mclk_high; -struct cgs_display_info info = {0 };const struct phm_clock_and_voltage_limits *max_limits;uint32_t i;struct
vega10_hwmgr*data =hwmgr->backend; @@ -3063,8 +3062,6
@@ static int vega10_apply_state_adjust_rules(structpp_hwmgr*hwmgr,drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +0
-2} } -cgs_get_active_displays_info (hwmgr->device, &info); -/* result = PHM_CheckVBlankTime(hwmgr, &vblankTooShort);*/ minimum_clocks.engineClock = hwmgr-Quoted 1 line
display_config.min_core_set_clock;
minimum_clocks.memoryClock = hwmgr-
Quoted 1 line
display_config.min_mem_set_clock;
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +2
-2@@ -3107,10 +3104,10 @@ static int vega10_apply_state_adjust_rules(structpp_hwmgr *hwmgr,PP_CAP (PHM_PlatformCaps_DisableMclkSwitchForVR ); force_mclk_high =PP_CAP (PHM_PlatformCaps_ForceMclkHigh); -if (info.display_count ==0 ) +if (hwmgr->display_config.num_display ==0 ) disable_mclk_switching = false;else - disable_mclk_switching = (info.display_count > 1) || + disable_mclk_switching = (hwmgr-Quoted 1 line
display_config.num_display > 1) ||
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +0
-0disable_mclk_switching_for_frame_lock || disable_mclk_switching_for_vr || force_mclk_high;@@ -3186,7 +3183,6 @@ static int vega10_find_dpm_states_clocks_in_dpm_table(struct pp_hwmgr *hwmgr,co
[vega10_ps->performance_level_count-
1].mem_clock;drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +0
-1struct PP_Clocks min_clocks = {0 };uint32_t i; -struct cgs_display_info info = {0 }; data->need_update_dpm_table =0 ;@@ -3211,10 +3207,8 @@ static int vega10_find_dpm_states_clocks_in_dpm_table(struct pp_hwmgr *hwmgr,co
data->need_update_dpm_table|=DPMTABLE_UPDATE_SCLK;drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +1
-3} -cgs_get_active_displays_info (hwmgr->device, &info); -if (data->display_timing.num_existing_displays != - info.display_count) + hwmgr->display_config.num_display) data->need_update_dpm_table |=
DPMTABLE_UPDATE_MCLK;drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +0
-0}else { for (i = 0; i < sclk_table->count; i++) { @@ -3242,13 +3236,11@@ static int vega10_find_dpm_states_clocks_in_dpm_table(struct
pp_hwmgr*hwmgr, codrivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +0
-2break ; } -cgs_get_active_displays_info (hwmgr->device, &info); -if (i >= mclk_table->count) data->need_update_dpm_table |=
DPMTABLE_OD_UPDATE_MCLK;drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +1
-1if (data->display_timing.num_existing_displays != - info.display_count || + hwmgr->display_config.num_display || i >= mclk_table->count) data->need_update_dpm_table |=
DPMTABLE_UPDATE_MCLK;drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +0
-0}@@ -3956,19 +3948,11 @@ static intvega10_notify_smc_display_config_after_ps_adjustment(
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +0
-0(struct phm_ppt_v2_information *)hwmgr->pptable; struct phm_ppt_v1_clock_voltage_dependency_table *mclk_table =
table_info->vdd_dep_on_mclk;drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +1
-9uint32_t idx; -uint32_t num_active_disps =0 ; -struct cgs_display_info info = {0 };struct PP_Clocks min_clocks = {0 };uint32_t i;struct pp_display_clock_request clock_req; - info.mode_info =NULL ; - -cgs_get_active_displays_info (hwmgr->device, &info); - - num_active_disps = info.display_count; - -if (num_active_disps >1 ) +if (hwmgr->display_config.num_display >1 )vega10_notify_smc_display_change (hwmgr, false);else vega10_notify_smc_display_change(hwmgr, true); @@ -4501,10 +4485,8 @@ static int vega10_print_clock_levels(struct
pp_hwmgr*hwmgr, static intvega10_display_configuration_changed_task(struct pp_hwmgr *hwmgr){drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +0
-2struct vega10_hwmgr *data = hwmgr->backend; -int result =0 ; -uint32_t num_turned_on_displays =1 ; Watermarks_t *wm_table = &(data-Quoted 1 line
smc_state_table.water_marks_table);
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +1
-1-struct cgs_display_info info = {0 }; +int result =0 ;if ((data->water_marks_bitmap & WaterMarksExist) && !(data->water_marks_bitmap & WaterMarksLoaded)){ @@ -4514,10 +4496,8 @@ static int
vega10_display_configuration_changed_task(struct pp_hwmgr *hwmgr)drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +0
-3}if (data->water_marks_bitmap & WaterMarksLoaded) { -cgs_get_active_displays_info (hwmgr->device, &info); - num_turned_on_displays = info.display_count; smum_send_msg_to_smc_with_parameter(hwmgr, - PPSMC_MSG_NumOfDisplays,
num_turned_on_displays);drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +1
-0+ PPSMC_MSG_NumOfDisplays, hwmgr-Quoted 1 line
display_config.num_display);
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +2
-4}return result;@@ -4603,11 +4583,8 @@ static int vega10_check_states_equal(struct pp_hwmgr *hwmgr, {struct vega10_hwmgr *data = hwmgr->backend;bool is_update_required = false; -struct cgs_display_info info = {0 ,0 ,NULL }; - -cgs_get_active_displays_info (hwmgr->device, &info); -if (data->display_timing.num_existing_displays != info.display_count) +if (data->display_timing.num_existing_displays != +hwmgr->display_config.num_display) is_update_required = true; if (PP_CAP(PHM_PlatformCaps_SclkDeepSleep)) { diff --git
a/drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.cb/drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.cindex 200de46..5e59ef1 100644drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c +0
-0@@ -1260,16 +1260,11 @@ static intvega12_notify_smc_display_config_after_ps_adjustment(
{drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c +1
-6struct vega12_hwmgr *data = (struct vega12_hwmgr *)(hwmgr->backend); -uint32_t num_active_disps =0 ; -struct cgs_display_info info = {0 };struct PP_Clocks min_clocks = {0 };struct pp_display_clock_request clock_req;uint32_t clk_request; - info.mode_info =NULL ; -cgs_get_active_displays_info (hwmgr->device, &info); - num_active_disps = info.display_count; -if (num_active_disps >1 ) +if (hwmgr->display_config.num_display >1 )vega12_notify_smc_display_change (hwmgr, false);else vega12_notify_smc_display_change(hwmgr, true); @@ -1832,9 +1827,7 @@ static int
vega12_display_configuration_changed_task(struct pp_hwmgr *hwmgr){
structvega12_hwmgr*data = (structvega12_hwmgr*)(hwmgr-Quoted 1 line
backend);
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c +0
-1int result =0 ; -uint32_t num_turned_on_displays =1 ; Watermarks_t *wm_table = &(data-Quoted 1 line
smc_state_table.water_marks_table);
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c +0
-1-struct cgs_display_info info = {0 };if ((data->water_marks_bitmap & WaterMarksExist) && !(data->water_marks_bitmap & WaterMarksLoaded)){ @@ -1846,12 +1839,9 @@ static int
vega12_display_configuration_changed_task(struct pp_hwmgr *hwmgr)drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c +1
-4if ((data->water_marks_bitmap & WaterMarksExist) && data->smu_features[GNLD_DPM_DCEFCLK ].supported && - data->smu_features[GNLD_DPM_SOCCLK ].supported) { -cgs_get_active_displays_info (hwmgr->device, &info); - num_turned_on_displays = info.display_count; + data->smu_features[GNLD_DPM_SOCCLK ].supported) smum_send_msg_to_smc_with_parameter(hwmgr, - PPSMC_MSG_NumOfDisplays,
num_turned_on_displays);drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c +1
-1- } + PPSMC_MSG_NumOfDisplays, hwmgr-Quoted 1 line
display_config.num_display);
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c +2
-4return result; }@@ -1894,11 +1884,8 @@ static void vega12_power_gate_uvd(struct pp_hwmgr *hwmgr, bool bgate) {struct vega12_hwmgr *data = (struct vega12_hwmgr *)(hwmgr- >backend);bool is_update_required = false; -struct cgs_display_info info = {0 ,0 ,NULL }; - -cgs_get_active_displays_info (hwmgr->device, &info); -if (data->display_timing.num_existing_displays != info.display_count) +if (data->display_timing.num_existing_displays != +hwmgr->display_config.num_display) is_update_required = true; if (data->registry_data.gfx_clk_deep_sleep_support) { diff --git
a/drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.cb/drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.cindex e30a2ee..918da48 100644drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c +0
-1@@ -1182,7 +1182,6 @@ static int ci_populate_single_memory_level(struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr- >backend);int result =0 ;bool dll_state_on; -struct cgs_display_info info = {0 };uint32_t mclk_edc_wr_enable_threshold =40000 ;uint32_t mclk_edc_enable_threshold =40000 ;
uint32_tmclk_strobe_mode_threshold= 40000; @@ -1236,8 +1235,7
@@ static int ci_populate_single_memory_level(
/* default set to low watermark. Highest level will be set to high
later.*/
memory_level->DisplayWatermark=PPSMC_DISPLAY_WATERMARK_LOW;drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c +2
-2-cgs_get_active_displays_info (hwmgr->device, &info); - data->display_timing.num_existing_displays = info.display_count; + data->display_timing.num_existing_displays = +hwmgr->display_config.num_display;/* stutter mode not support on ci */ drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c +0
-1@@ -1236,7 +1236,6 @@ static int iceland_populate_single_memory_level(struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr- >backend);int result =0 ;bool dll_state_on; -struct cgs_display_info info = {0 };uint32_t mclk_edc_wr_enable_threshold =40000 ;uint32_t mclk_edc_enable_threshold =40000 ;
uint32_tmclk_strobe_mode_threshold= 40000; @@ -1283,8 +1282,7
@@ static int iceland_populate_single_memory_level(
/* default set to low watermark. Highest level will be set to high
later.*/
memory_level->DisplayWatermark=PPSMC_DISPLAY_WATERMARK_LOW;drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c +2
-2-cgs_get_active_displays_info (hwmgr->device, &info); - data->display_timing.num_existing_displays = info.display_count; + data->display_timing.num_existing_displays = +hwmgr->display_config.num_display;/* stutter mode not support on iceland */ drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c +0
-2@@ -1076,11 +1076,9 @@ static int polaris10_populate_single_memory_level(struct pp_hwmgr *hwmgr, struct phm_ppt_v1_information *table_info = (struct phm_ppt_v1_information *)(hwmgr- >pptable);int result =0 ; -struct cgs_display_info info = {0 ,0 ,NULL };uint32_t mclk_stutter_mode_threshold =40000 ;phm_ppt_v1_clock_voltage_dependency_table *vdd_dep_table =NULL ; -cgs_get_active_displays_info (hwmgr->device, &info);drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c +0
-0if (hwmgr->od_enabled) vdd_dep_table =(
phm_ppt_v1_clock_voltage_dependency_table*)&data-Quoted 1 line
odn_dpm_table.vdd_dependency_on_mclk;
drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c +2
-1@@ -1106,7 +1104,7 @@ static int polaris10_populate_single_memory_level(struct pp_hwmgr *hwmgr, mem_level->StutterEnable = false; mem_level->DisplayWatermark =PPSMC_DISPLAY_WATERMARK_LOW ; - data->display_timing.num_existing_displays = info.display_count; + data->display_timing.num_existing_displays = +hwmgr->display_config.num_display;if (mclk_stutter_mode_threshold && (clock <= mclk_stutter_mode_threshold) && diff --git
a/drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.cb/drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.cindex 2ba05d2..975a009 100644drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c +3
-4@@ -956,18 +956,17 @@ static int tonga_populate_single_memory_level(SMU72_Discrete_MemoryLevel *memory_level ) { -uint32_t mvdd =0 ;struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr- >backend);struct phm_ppt_v1_information *pptable_info = (struct phm_ppt_v1_information *)(hwmgr- >pptable); -int result =0 ; -bool dll_state_on; -struct cgs_display_info info = {0 };uint32_t mclk_edc_wr_enable_threshold =40000 ;uint32_t mclk_stutter_mode_threshold =30000 ;uint32_t mclk_edc_enable_threshold =40000 ;uint32_t mclk_strobe_mode_threshold =40000 ;phm_ppt_v1_clock_voltage_dependency_table *vdd_dep_table =NULL ; +int result =0 ; +bool dll_state_on; +uint32_t mvdd =0 ;drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c +0
-0if (hwmgr->od_enabled) vdd_dep_table =(
phm_ppt_v1_clock_voltage_dependency_table*)&data-Quoted 1 line
odn_dpm_table.vdd_dependency_on_mclk;
drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c +0
-0@@ -1008,8 +1007,7 @@ static int tonga_populate_single_memory_level(/* default set to low watermark. Highest level will be set to high later.*/
memory_level->DisplayWatermark=PPSMC_DISPLAY_WATERMARK_LOW;drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c +2
-3-cgs_get_active_displays_info (hwmgr->device, &info); - data->display_timing.num_existing_displays = info.display_count; + data->display_timing.num_existing_displays = +hwmgr->display_config.num_display; if ((mclk_stutter_mode_threshold != 0) && (memory_clock <= mclk_stutter_mode_threshold) && --1.9.1
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx