/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce120/ |
D | dce120_resource.c | 942 eng_clks.data[i].clocks_in_khz = clk; in bw_calcs_data_update_from_pplib() 949 eng_clks.data[eng_clks.num_levels-1].clocks_in_khz, 1000); in bw_calcs_data_update_from_pplib() 951 eng_clks.data[eng_clks.num_levels/8].clocks_in_khz, 1000); in bw_calcs_data_update_from_pplib() 953 eng_clks.data[eng_clks.num_levels*2/8].clocks_in_khz, 1000); in bw_calcs_data_update_from_pplib() 955 eng_clks.data[eng_clks.num_levels*3/8].clocks_in_khz, 1000); in bw_calcs_data_update_from_pplib() 957 eng_clks.data[eng_clks.num_levels*4/8].clocks_in_khz, 1000); in bw_calcs_data_update_from_pplib() 959 eng_clks.data[eng_clks.num_levels*5/8].clocks_in_khz, 1000); in bw_calcs_data_update_from_pplib() 961 eng_clks.data[eng_clks.num_levels*6/8].clocks_in_khz, 1000); in bw_calcs_data_update_from_pplib() 963 eng_clks.data[0].clocks_in_khz, 1000); in bw_calcs_data_update_from_pplib() 976 mem_clks.data[i].clocks_in_khz = clk; in bw_calcs_data_update_from_pplib() [all …]
|
/kernel/linux/linux-5.10/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
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm_pp_smu.c | 132 memmove(clks->clocks_in_khz, disp_clks_in_khz, in get_default_clock_levels() 137 memmove(clks->clocks_in_khz, sclks_in_khz, in get_default_clock_levels() 142 memmove(clks->clocks_in_khz, mclks_in_khz, in get_default_clock_levels() 272 dc_clks->clocks_in_khz[i] = pp_clks->clock[i]; in pp_to_dc_clock_levels() 297 DRM_DEBUG("DM_PPLIB:\t %d in kHz\n", pp_clks->data[i].clocks_in_khz); in pp_to_dc_clock_levels_with_latency() 298 clk_level_info->data[i].clocks_in_khz = pp_clks->data[i].clocks_in_khz; in pp_to_dc_clock_levels_with_latency() 324 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() 326 clk_level_info->data[i].clocks_in_khz = pp_clks->data[i].clocks_in_khz; in pp_to_dc_clock_levels_with_voltage() 393 if (dc_clks->clocks_in_khz[i] > validation_clks.engine_max_clock) { in dm_pp_get_clock_levels_by_type() 405 if (dc_clks->clocks_in_khz[i] > validation_clks.memory_max_clock) { in dm_pp_get_clock_levels_by_type() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/calcs/ |
D | dcn_calcs.c | 1337 int clocks_in_khz) in dcn_find_normalized_clock_vdd_Level() argument 1341 if (clocks_in_khz == 0)/*todo some clock not in the considerations*/ in dcn_find_normalized_clock_vdd_Level() 1346 if (clocks_in_khz > dc->dcn_soc->max_dispclk_vmax0p9*1000) { in dcn_find_normalized_clock_vdd_Level() 1349 } else if (clocks_in_khz > dc->dcn_soc->max_dispclk_vnom0p8*1000) { in dcn_find_normalized_clock_vdd_Level() 1351 } else if (clocks_in_khz > dc->dcn_soc->max_dispclk_vmid0p72*1000) { in dcn_find_normalized_clock_vdd_Level() 1353 } else if (clocks_in_khz > dc->dcn_soc->max_dispclk_vmin0p65*1000) { in dcn_find_normalized_clock_vdd_Level() 1359 if (clocks_in_khz > dc->dcn_soc->phyclkv_max0p9*1000) { in dcn_find_normalized_clock_vdd_Level() 1362 } else if (clocks_in_khz > dc->dcn_soc->phyclkv_nom0p8*1000) { in dcn_find_normalized_clock_vdd_Level() 1364 } else if (clocks_in_khz > dc->dcn_soc->phyclkv_mid0p72*1000) { in dcn_find_normalized_clock_vdd_Level() 1366 } else if (clocks_in_khz > dc->dcn_soc->phyclkv_min0p65*1000) { in dcn_find_normalized_clock_vdd_Level() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce110/ |
D | dce110_resource.c | 1298 clks.clocks_in_khz[clks.num_levels-1], 1000); in bw_calcs_data_update_from_pplib() 1300 clks.clocks_in_khz[clks.num_levels/8], 1000); in bw_calcs_data_update_from_pplib() 1302 clks.clocks_in_khz[clks.num_levels*2/8], 1000); in bw_calcs_data_update_from_pplib() 1304 clks.clocks_in_khz[clks.num_levels*3/8], 1000); in bw_calcs_data_update_from_pplib() 1306 clks.clocks_in_khz[clks.num_levels*4/8], 1000); in bw_calcs_data_update_from_pplib() 1308 clks.clocks_in_khz[clks.num_levels*5/8], 1000); in bw_calcs_data_update_from_pplib() 1310 clks.clocks_in_khz[clks.num_levels*6/8], 1000); in bw_calcs_data_update_from_pplib() 1312 clks.clocks_in_khz[0], 1000); in bw_calcs_data_update_from_pplib() 1321 clks.clocks_in_khz[clks.num_levels-1], 1000); in bw_calcs_data_update_from_pplib() 1323 clks.clocks_in_khz[clks.num_levels>>1], 1000); in bw_calcs_data_update_from_pplib() [all …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/include/ |
D | dm_pp_interface.h | 170 uint32_t clocks_in_khz; member 180 uint32_t clocks_in_khz; member
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce/ |
D | dce_clk_mgr.c | 582 if (dc->sclk_lvls.clocks_in_khz[i] >= required_sclk) in determine_sclk_from_bounding_box() 583 return dc->sclk_lvls.clocks_in_khz[i]; in determine_sclk_from_bounding_box() 591 return dc->sclk_lvls.clocks_in_khz[dc->sclk_lvls.num_levels - 1]; in determine_sclk_from_bounding_box() 771 clock_voltage_req.clocks_in_khz = patched_disp_clk; in dce12_update_clocks() 779 clock_voltage_req.clocks_in_khz = max_pix_clk; in dce12_update_clocks()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
D | vega12_hwmgr.c | 1841 clocks->data[i].clocks_in_khz = in vega12_get_sclks() 1873 clocks->data[i].clocks_in_khz = dpm_table->dpm_levels[i].value * 1000; in vega12_get_memclocks() 1902 clocks->data[i].clocks_in_khz = in vega12_get_dcefclocks() 1930 clocks->data[i].clocks_in_khz = in vega12_get_socclocks() 2261 i, clocks.data[i].clocks_in_khz / 1000, in vega12_print_clock_levels() 2262 (clocks.data[i].clocks_in_khz / 1000 == now / 100) ? "*" : ""); in vega12_print_clock_levels() 2277 i, clocks.data[i].clocks_in_khz / 1000, in vega12_print_clock_levels() 2278 (clocks.data[i].clocks_in_khz / 1000 == now / 100) ? "*" : ""); in vega12_print_clock_levels() 2295 i, clocks.data[i].clocks_in_khz / 1000, in vega12_print_clock_levels() 2296 (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() 3384 i, clocks.data[i].clocks_in_khz / 1000, in vega20_print_clock_levels() 3385 (clocks.data[i].clocks_in_khz == now * 10) ? "*" : ""); in vega20_print_clock_levels() 3402 i, clocks.data[i].clocks_in_khz / 1000, in vega20_print_clock_levels() 3403 (clocks.data[i].clocks_in_khz == now * 10) ? "*" : ""); in vega20_print_clock_levels() 3420 i, clocks.data[i].clocks_in_khz / 1000, in vega20_print_clock_levels() 3421 (clocks.data[i].clocks_in_khz == now * 10) ? "*" : ""); in vega20_print_clock_levels() [all …]
|
D | smu10_hwmgr.c | 1110 clocks->data[clocks->num_levels].clocks_in_khz = in smu10_get_clock_by_type_with_latency() 1164 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 | 4357 clocks->data[clocks->num_levels].clocks_in_khz = in vega10_get_sclks() 4379 clocks->data[j].clocks_in_khz = in vega10_get_memclocks() 4401 clocks->data[i].clocks_in_khz = dep_table->entries[i].clk * 10; in vega10_get_dcefclocks() 4417 clocks->data[i].clocks_in_khz = dep_table->entries[i].clk * 10; in vega10_get_socclocks() 4477 clocks->data[i].clocks_in_khz = dep_table->entries[i].clk * 10; in vega10_get_clock_by_type_with_voltage()
|
D | smu7_hwmgr.c | 4855 clocks->data[clocks->num_levels].clocks_in_khz = in smu7_get_sclks_with_latency() 4876 clocks->data[clocks->num_levels].clocks_in_khz = in smu7_get_mclks_with_latency()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/swsmu/smu11/ |
D | arcturus_ppt.c | 543 clocks->data[i].clocks_in_khz = in arcturus_get_clk_table() 762 clocks.data[i].clocks_in_khz / 1000, in arcturus_print_clk_levels() 765 clocks.data[i].clocks_in_khz / 1000, in arcturus_print_clk_levels() 785 i, clocks.data[i].clocks_in_khz / 1000, in arcturus_print_clk_levels() 788 clocks.data[i].clocks_in_khz / 1000, in arcturus_print_clk_levels() 808 i, clocks.data[i].clocks_in_khz / 1000, in arcturus_print_clk_levels() 811 clocks.data[i].clocks_in_khz / 1000, in arcturus_print_clk_levels() 834 clocks.data[i].clocks_in_khz / 1000, in arcturus_print_clk_levels()
|
D | navi10_ppt.c | 1274 clocks->data[i].clocks_in_khz = freq * 1000; in navi10_get_clock_by_type_with_latency() 1761 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 1769 if (!clocks_in_khz || !num_states || !table_context->driver_pptable) in navi10_get_uclk_dpm_states() 1782 *clocks_in_khz = (*dpm_levels) * 1000; in navi10_get_uclk_dpm_states() 1783 clocks_in_khz++; in navi10_get_uclk_dpm_states()
|
D | sienna_cichlid_ppt.c | 1591 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 1599 if (!clocks_in_khz || !num_states || !table_context->driver_pptable) in sienna_cichlid_get_uclk_dpm_states() 1612 *clocks_in_khz = (*dpm_levels) * 1000; in sienna_cichlid_get_uclk_dpm_states() 1613 clocks_in_khz++; in sienna_cichlid_get_uclk_dpm_states()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/inc/ |
D | amdgpu_smu.h | 507 int (*get_uclk_dpm_states)(struct smu_context *smu, uint32_t *clocks_in_khz, uint32_t *num_states);
|