|
@@ -4064,10 +4064,11 @@ static void vega10_get_sclks(struct pp_hwmgr *hwmgr,
|
|
|
table_info->vdd_dep_on_sclk;
|
|
|
uint32_t i;
|
|
|
|
|
|
+ clocks->num_levels = 0;
|
|
|
for (i = 0; i < dep_table->count; i++) {
|
|
|
if (dep_table->entries[i].clk) {
|
|
|
clocks->data[clocks->num_levels].clocks_in_khz =
|
|
|
- dep_table->entries[i].clk;
|
|
|
+ dep_table->entries[i].clk * 10;
|
|
|
clocks->num_levels++;
|
|
|
}
|
|
|
}
|
|
@@ -4094,26 +4095,23 @@ static void vega10_get_memclocks(struct pp_hwmgr *hwmgr,
|
|
|
struct phm_ppt_v1_clock_voltage_dependency_table *dep_table =
|
|
|
table_info->vdd_dep_on_mclk;
|
|
|
struct vega10_hwmgr *data = hwmgr->backend;
|
|
|
+ uint32_t j = 0;
|
|
|
uint32_t i;
|
|
|
|
|
|
- clocks->num_levels = 0;
|
|
|
- data->mclk_latency_table.count = 0;
|
|
|
-
|
|
|
for (i = 0; i < dep_table->count; i++) {
|
|
|
if (dep_table->entries[i].clk) {
|
|
|
- clocks->data[clocks->num_levels].clocks_in_khz =
|
|
|
- data->mclk_latency_table.entries
|
|
|
- [data->mclk_latency_table.count].frequency =
|
|
|
- dep_table->entries[i].clk;
|
|
|
- clocks->data[clocks->num_levels].latency_in_us =
|
|
|
- data->mclk_latency_table.entries
|
|
|
- [data->mclk_latency_table.count].latency =
|
|
|
- vega10_get_mem_latency(hwmgr,
|
|
|
- dep_table->entries[i].clk);
|
|
|
- clocks->num_levels++;
|
|
|
- data->mclk_latency_table.count++;
|
|
|
+ clocks->data[j].clocks_in_khz =
|
|
|
+ dep_table->entries[i].clk * 10;
|
|
|
+ data->mclk_latency_table.entries[j].frequency =
|
|
|
+ dep_table->entries[i].clk;
|
|
|
+ clocks->data[j].latency_in_us =
|
|
|
+ data->mclk_latency_table.entries[j].latency =
|
|
|
+ vega10_get_mem_latency(hwmgr,
|
|
|
+ dep_table->entries[i].clk);
|
|
|
+ j++;
|
|
|
}
|
|
|
}
|
|
|
+ clocks->num_levels = data->mclk_latency_table.count = j;
|
|
|
}
|
|
|
|
|
|
static void vega10_get_dcefclocks(struct pp_hwmgr *hwmgr,
|
|
@@ -4126,7 +4124,7 @@ static void vega10_get_dcefclocks(struct pp_hwmgr *hwmgr,
|
|
|
uint32_t i;
|
|
|
|
|
|
for (i = 0; i < dep_table->count; i++) {
|
|
|
- clocks->data[i].clocks_in_khz = dep_table->entries[i].clk;
|
|
|
+ clocks->data[i].clocks_in_khz = dep_table->entries[i].clk * 10;
|
|
|
clocks->data[i].latency_in_us = 0;
|
|
|
clocks->num_levels++;
|
|
|
}
|
|
@@ -4142,7 +4140,7 @@ static void vega10_get_socclocks(struct pp_hwmgr *hwmgr,
|
|
|
uint32_t i;
|
|
|
|
|
|
for (i = 0; i < dep_table->count; i++) {
|
|
|
- clocks->data[i].clocks_in_khz = dep_table->entries[i].clk;
|
|
|
+ clocks->data[i].clocks_in_khz = dep_table->entries[i].clk * 10;
|
|
|
clocks->data[i].latency_in_us = 0;
|
|
|
clocks->num_levels++;
|
|
|
}
|
|
@@ -4202,7 +4200,7 @@ static int vega10_get_clock_by_type_with_voltage(struct pp_hwmgr *hwmgr,
|
|
|
}
|
|
|
|
|
|
for (i = 0; i < dep_table->count; i++) {
|
|
|
- clocks->data[i].clocks_in_khz = dep_table->entries[i].clk;
|
|
|
+ clocks->data[i].clocks_in_khz = dep_table->entries[i].clk * 10;
|
|
|
clocks->data[i].voltage_in_mv = (uint32_t)(table_info->vddc_lookup_table->
|
|
|
entries[dep_table->entries[i].vddInd].us_vdd);
|
|
|
clocks->num_levels++;
|