/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dce112/ |
D | dce112_resource.c | 1090 clks.clocks_in_khz[clks.num_levels-1], 1000); in bw_calcs_data_update_from_pplib() 1092 clks.clocks_in_khz[clks.num_levels/8], 1000); in bw_calcs_data_update_from_pplib() 1094 clks.clocks_in_khz[clks.num_levels*2/8], 1000); in bw_calcs_data_update_from_pplib() 1096 clks.clocks_in_khz[clks.num_levels*3/8], 1000); in bw_calcs_data_update_from_pplib() 1098 clks.clocks_in_khz[clks.num_levels*4/8], 1000); in bw_calcs_data_update_from_pplib() 1100 clks.clocks_in_khz[clks.num_levels*5/8], 1000); in bw_calcs_data_update_from_pplib() 1102 clks.clocks_in_khz[clks.num_levels*6/8], 1000); in bw_calcs_data_update_from_pplib() 1104 clks.clocks_in_khz[0], 1000); in bw_calcs_data_update_from_pplib() 1113 clks.clocks_in_khz[0] * memory_type_multiplier, 1000); in bw_calcs_data_update_from_pplib() 1115 clks.clocks_in_khz[clks.num_levels>>1] * memory_type_multiplier, in bw_calcs_data_update_from_pplib() [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dce120/ |
D | dce120_resource.c | 935 eng_clks.data[i].clocks_in_khz = clk; in bw_calcs_data_update_from_pplib() 942 eng_clks.data[eng_clks.num_levels-1].clocks_in_khz, 1000); in bw_calcs_data_update_from_pplib() 944 eng_clks.data[eng_clks.num_levels/8].clocks_in_khz, 1000); in bw_calcs_data_update_from_pplib() 946 eng_clks.data[eng_clks.num_levels*2/8].clocks_in_khz, 1000); in bw_calcs_data_update_from_pplib() 948 eng_clks.data[eng_clks.num_levels*3/8].clocks_in_khz, 1000); in bw_calcs_data_update_from_pplib() 950 eng_clks.data[eng_clks.num_levels*4/8].clocks_in_khz, 1000); in bw_calcs_data_update_from_pplib() 952 eng_clks.data[eng_clks.num_levels*5/8].clocks_in_khz, 1000); in bw_calcs_data_update_from_pplib() 954 eng_clks.data[eng_clks.num_levels*6/8].clocks_in_khz, 1000); in bw_calcs_data_update_from_pplib() 956 eng_clks.data[0].clocks_in_khz, 1000); in bw_calcs_data_update_from_pplib() 969 mem_clks.data[i].clocks_in_khz = clk; in bw_calcs_data_update_from_pplib() [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm_pp_smu.c | 123 memmove(clks->clocks_in_khz, disp_clks_in_khz, in get_default_clock_levels() 128 memmove(clks->clocks_in_khz, sclks_in_khz, in get_default_clock_levels() 133 memmove(clks->clocks_in_khz, mclks_in_khz, in get_default_clock_levels() 233 dc_clks->clocks_in_khz[i] = pp_clks->clock[i]; in pp_to_dc_clock_levels() 258 DRM_DEBUG("DM_PPLIB:\t %d in kHz\n", pp_clks->data[i].clocks_in_khz); in pp_to_dc_clock_levels_with_latency() 259 clk_level_info->data[i].clocks_in_khz = pp_clks->data[i].clocks_in_khz; in pp_to_dc_clock_levels_with_latency() 285 DRM_INFO("DM_PPLIB:\t %d in kHz, %d in mV\n", pp_clks->data[i].clocks_in_khz, in pp_to_dc_clock_levels_with_voltage() 287 clk_level_info->data[i].clocks_in_khz = pp_clks->data[i].clocks_in_khz; in pp_to_dc_clock_levels_with_voltage() 334 if (dc_clks->clocks_in_khz[i] > validation_clks.engine_max_clock) { in dm_pp_get_clock_levels_by_type() 347 if (dc_clks->clocks_in_khz[i] > validation_clks.memory_max_clock) { in dm_pp_get_clock_levels_by_type() [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/ |
D | dm_services_types.h | 99 uint32_t clocks_in_khz[DM_PP_MAX_CLOCK_LEVELS]; member 103 uint32_t clocks_in_khz; member 113 uint32_t clocks_in_khz; member 255 uint32_t clocks_in_khz; member
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dml/calcs/ |
D | dcn_calcs.c | 1318 int clocks_in_khz) in dcn_find_normalized_clock_vdd_Level() argument 1322 if (clocks_in_khz == 0)/*todo some clock not in the considerations*/ in dcn_find_normalized_clock_vdd_Level() 1327 if (clocks_in_khz > dc->dcn_soc->max_dispclk_vmax0p9*1000) { in dcn_find_normalized_clock_vdd_Level() 1330 } else if (clocks_in_khz > dc->dcn_soc->max_dispclk_vnom0p8*1000) { in dcn_find_normalized_clock_vdd_Level() 1332 } else if (clocks_in_khz > dc->dcn_soc->max_dispclk_vmid0p72*1000) { in dcn_find_normalized_clock_vdd_Level() 1334 } else if (clocks_in_khz > dc->dcn_soc->max_dispclk_vmin0p65*1000) { in dcn_find_normalized_clock_vdd_Level() 1340 if (clocks_in_khz > dc->dcn_soc->phyclkv_max0p9*1000) { in dcn_find_normalized_clock_vdd_Level() 1343 } else if (clocks_in_khz > dc->dcn_soc->phyclkv_nom0p8*1000) { in dcn_find_normalized_clock_vdd_Level() 1345 } else if (clocks_in_khz > dc->dcn_soc->phyclkv_mid0p72*1000) { in dcn_find_normalized_clock_vdd_Level() 1347 } else if (clocks_in_khz > dc->dcn_soc->phyclkv_min0p65*1000) { in dcn_find_normalized_clock_vdd_Level() [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dce110/ |
D | dce110_resource.c | 1294 clks.clocks_in_khz[clks.num_levels-1], 1000); in bw_calcs_data_update_from_pplib() 1296 clks.clocks_in_khz[clks.num_levels/8], 1000); in bw_calcs_data_update_from_pplib() 1298 clks.clocks_in_khz[clks.num_levels*2/8], 1000); in bw_calcs_data_update_from_pplib() 1300 clks.clocks_in_khz[clks.num_levels*3/8], 1000); in bw_calcs_data_update_from_pplib() 1302 clks.clocks_in_khz[clks.num_levels*4/8], 1000); in bw_calcs_data_update_from_pplib() 1304 clks.clocks_in_khz[clks.num_levels*5/8], 1000); in bw_calcs_data_update_from_pplib() 1306 clks.clocks_in_khz[clks.num_levels*6/8], 1000); in bw_calcs_data_update_from_pplib() 1308 clks.clocks_in_khz[0], 1000); in bw_calcs_data_update_from_pplib() 1317 clks.clocks_in_khz[clks.num_levels-1], 1000); in bw_calcs_data_update_from_pplib() 1319 clks.clocks_in_khz[clks.num_levels>>1], 1000); in bw_calcs_data_update_from_pplib() [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/clk_mgr/dce120/ |
D | dce120_clk_mgr.c | 106 clock_voltage_req.clocks_in_khz = patched_disp_clk; in dce12_update_clocks() 114 clock_voltage_req.clocks_in_khz = max_pix_clk; in dce12_update_clocks()
|
/linux-6.6.21/drivers/gpu/drm/amd/include/ |
D | dm_pp_interface.h | 170 uint32_t clocks_in_khz; member 180 uint32_t clocks_in_khz; member
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/ |
D | dce110_clk_mgr.c | 80 if (dc->sclk_lvls.clocks_in_khz[i] >= required_sclk) in determine_sclk_from_bounding_box() 81 return dc->sclk_lvls.clocks_in_khz[i]; in determine_sclk_from_bounding_box() 89 return dc->sclk_lvls.clocks_in_khz[dc->sclk_lvls.num_levels - 1]; in determine_sclk_from_bounding_box()
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dce/ |
D | dce_clk_mgr.c | 586 if (dc->sclk_lvls.clocks_in_khz[i] >= required_sclk) in determine_sclk_from_bounding_box() 587 return dc->sclk_lvls.clocks_in_khz[i]; in determine_sclk_from_bounding_box() 595 return dc->sclk_lvls.clocks_in_khz[dc->sclk_lvls.num_levels - 1]; in determine_sclk_from_bounding_box() 775 clock_voltage_req.clocks_in_khz = patched_disp_clk; in dce12_update_clocks() 783 clock_voltage_req.clocks_in_khz = max_pix_clk; in dce12_update_clocks()
|
/linux-6.6.21/drivers/gpu/drm/amd/pm/swsmu/smu13/ |
D | aldebaran_ppt.c | 567 clocks->data[i].clocks_in_khz = in aldebaran_get_clk_table() 830 i, clocks.data[i].clocks_in_khz / 1000, in aldebaran_print_clk_levels() 833 clocks.data[i].clocks_in_khz / 1000, in aldebaran_print_clk_levels() 853 i, clocks.data[i].clocks_in_khz / 1000, in aldebaran_print_clk_levels() 856 clocks.data[i].clocks_in_khz / 1000, in aldebaran_print_clk_levels() 879 clocks.data[i].clocks_in_khz / 1000, in aldebaran_print_clk_levels() 902 clocks.data[i].clocks_in_khz / 1000, in aldebaran_print_clk_levels() 925 clocks.data[i].clocks_in_khz / 1000, in aldebaran_print_clk_levels()
|
D | smu_v13_0_6_ppt.c | 648 clocks->data[i].clocks_in_khz = in smu_v13_0_6_get_clk_table() 864 clocks.data[i].clocks_in_khz / 1000, in smu_v13_0_6_print_clk_levels() 868 clocks.data[i].clocks_in_khz / in smu_v13_0_6_print_clk_levels() 895 clocks.data[i].clocks_in_khz / 1000, in smu_v13_0_6_print_clk_levels() 899 clocks.data[i].clocks_in_khz / in smu_v13_0_6_print_clk_levels() 930 clocks.data[i].clocks_in_khz / in smu_v13_0_6_print_clk_levels() 961 clocks.data[i].clocks_in_khz / in smu_v13_0_6_print_clk_levels() 992 clocks.data[i].clocks_in_khz / in smu_v13_0_6_print_clk_levels()
|
/linux-6.6.21/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
D | vega12_hwmgr.c | 1861 clocks->data[i].clocks_in_khz = in vega12_get_sclks() 1893 clocks->data[i].clocks_in_khz = dpm_table->dpm_levels[i].value * 1000; in vega12_get_memclocks() 1922 clocks->data[i].clocks_in_khz = in vega12_get_dcefclocks() 1950 clocks->data[i].clocks_in_khz = in vega12_get_socclocks() 2283 i, clocks.data[i].clocks_in_khz / 1000, in vega12_print_clock_levels() 2284 (clocks.data[i].clocks_in_khz / 1000 == now / 100) ? "*" : ""); in vega12_print_clock_levels() 2299 i, clocks.data[i].clocks_in_khz / 1000, in vega12_print_clock_levels() 2300 (clocks.data[i].clocks_in_khz / 1000 == now / 100) ? "*" : ""); in vega12_print_clock_levels() 2317 i, clocks.data[i].clocks_in_khz / 1000, in vega12_print_clock_levels() 2318 (clocks.data[i].clocks_in_khz / 1000 == now) ? "*" : ""); in vega12_print_clock_levels() [all …]
|
D | vega20_hwmgr.c | 2818 clocks->data[i].clocks_in_khz = in vega20_get_sclks() 2846 clocks->data[i].clocks_in_khz = in vega20_get_memclocks() 2871 clocks->data[i].clocks_in_khz = in vega20_get_dcefclocks() 2893 clocks->data[i].clocks_in_khz = in vega20_get_socclocks() 3386 i, clocks.data[i].clocks_in_khz / 1000, in vega20_print_clock_levels() 3387 (clocks.data[i].clocks_in_khz == now * 10) ? "*" : ""); in vega20_print_clock_levels() 3404 i, clocks.data[i].clocks_in_khz / 1000, in vega20_print_clock_levels() 3405 (clocks.data[i].clocks_in_khz == now * 10) ? "*" : ""); in vega20_print_clock_levels() 3422 i, clocks.data[i].clocks_in_khz / 1000, in vega20_print_clock_levels() 3423 (clocks.data[i].clocks_in_khz == now * 10) ? "*" : ""); in vega20_print_clock_levels() [all …]
|
D | smu10_hwmgr.c | 1206 clocks->data[clocks->num_levels].clocks_in_khz = in smu10_get_clock_by_type_with_latency() 1260 clocks->data[clocks->num_levels].clocks_in_khz = pclk_vol_table->entries[i].clk * 10; in smu10_get_clock_by_type_with_voltage()
|
D | vega10_hwmgr.c | 4379 clocks->data[clocks->num_levels].clocks_in_khz = in vega10_get_sclks() 4401 clocks->data[j].clocks_in_khz = in vega10_get_memclocks() 4423 clocks->data[i].clocks_in_khz = dep_table->entries[i].clk * 10; in vega10_get_dcefclocks() 4439 clocks->data[i].clocks_in_khz = dep_table->entries[i].clk * 10; in vega10_get_socclocks() 4499 clocks->data[i].clocks_in_khz = dep_table->entries[i].clk * 10; in vega10_get_clock_by_type_with_voltage()
|
D | smu7_hwmgr.c | 5259 clocks->data[clocks->num_levels].clocks_in_khz = in smu7_get_sclks_with_latency() 5282 clocks->data[clocks->num_levels].clocks_in_khz = in smu7_get_mclks_with_latency()
|
/linux-6.6.21/drivers/gpu/drm/amd/pm/swsmu/smu11/ |
D | arcturus_ppt.c | 583 clocks->data[i].clocks_in_khz = in arcturus_get_clk_table() 801 clocks.data[i].clocks_in_khz / 1000, in arcturus_print_clk_levels() 804 clocks.data[i].clocks_in_khz / 1000, in arcturus_print_clk_levels() 824 i, clocks.data[i].clocks_in_khz / 1000, in arcturus_print_clk_levels() 827 clocks.data[i].clocks_in_khz / 1000, in arcturus_print_clk_levels() 847 i, clocks.data[i].clocks_in_khz / 1000, in arcturus_print_clk_levels() 850 clocks.data[i].clocks_in_khz / 1000, in arcturus_print_clk_levels() 873 clocks.data[i].clocks_in_khz / 1000, in arcturus_print_clk_levels() 896 clocks.data[i].clocks_in_khz / 1000, in arcturus_print_clk_levels() 919 clocks.data[i].clocks_in_khz / 1000, in arcturus_print_clk_levels()
|
D | navi10_ppt.c | 1815 clocks->data[i].clocks_in_khz = freq * 1000; in navi10_get_clock_by_type_with_latency() 2252 static int navi10_get_uclk_dpm_states(struct smu_context *smu, uint32_t *clocks_in_khz, uint32_t *n… in navi10_get_uclk_dpm_states() argument 2260 if (!clocks_in_khz || !num_states || !table_context->driver_pptable) in navi10_get_uclk_dpm_states() 2273 *clocks_in_khz = (*dpm_levels) * 1000; in navi10_get_uclk_dpm_states() 2274 clocks_in_khz++; in navi10_get_uclk_dpm_states()
|
D | sienna_cichlid_ppt.c | 1996 static int sienna_cichlid_get_uclk_dpm_states(struct smu_context *smu, uint32_t *clocks_in_khz, uin… in sienna_cichlid_get_uclk_dpm_states() argument 2005 if (!clocks_in_khz || !num_states || !table_context->driver_pptable) in sienna_cichlid_get_uclk_dpm_states() 2019 *clocks_in_khz = (*dpm_levels) * 1000; in sienna_cichlid_get_uclk_dpm_states() 2020 clocks_in_khz++; in sienna_cichlid_get_uclk_dpm_states()
|
/linux-6.6.21/drivers/gpu/drm/amd/pm/swsmu/inc/ |
D | amdgpu_smu.h | 789 int (*get_uclk_dpm_states)(struct smu_context *smu, uint32_t *clocks_in_khz, uint32_t *num_states);
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dcn10/ |
D | dcn10_resource.c | 1300 if (clks->data[i].clocks_in_khz == 0) in verify_clock_values()
|