提交 0bc8f3d2 编写于 作者: K Kenneth Feng 提交者: Alex Deucher

drm/amd/powerplay: initialzie the dpm intial enabled state

To expose the right dpm levels to the sysfs
Signed-off-by: NKenneth Feng <kenneth.feng@amd.com>
Reviewed-by: NEvan Quan <evan.quan@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 564be2fc
...@@ -545,6 +545,7 @@ static int vega12_setup_default_dpm_tables(struct pp_hwmgr *hwmgr) ...@@ -545,6 +545,7 @@ static int vega12_setup_default_dpm_tables(struct pp_hwmgr *hwmgr)
return -EINVAL); return -EINVAL);
dpm_table->dpm_levels[i].value = clock; dpm_table->dpm_levels[i].value = clock;
dpm_table->dpm_levels[i].enabled = true;
} }
vega12_init_dpm_state(&(dpm_table->dpm_state)); vega12_init_dpm_state(&(dpm_table->dpm_state));
...@@ -564,6 +565,7 @@ static int vega12_setup_default_dpm_tables(struct pp_hwmgr *hwmgr) ...@@ -564,6 +565,7 @@ static int vega12_setup_default_dpm_tables(struct pp_hwmgr *hwmgr)
return -EINVAL); return -EINVAL);
dpm_table->dpm_levels[i].value = clock; dpm_table->dpm_levels[i].value = clock;
dpm_table->dpm_levels[i].enabled = true;
} }
vega12_init_dpm_state(&(dpm_table->dpm_state)); vega12_init_dpm_state(&(dpm_table->dpm_state));
...@@ -584,6 +586,7 @@ static int vega12_setup_default_dpm_tables(struct pp_hwmgr *hwmgr) ...@@ -584,6 +586,7 @@ static int vega12_setup_default_dpm_tables(struct pp_hwmgr *hwmgr)
return -EINVAL); return -EINVAL);
dpm_table->dpm_levels[i].value = clock; dpm_table->dpm_levels[i].value = clock;
dpm_table->dpm_levels[i].enabled = true;
} }
vega12_init_dpm_state(&(dpm_table->dpm_state)); vega12_init_dpm_state(&(dpm_table->dpm_state));
...@@ -604,6 +607,7 @@ static int vega12_setup_default_dpm_tables(struct pp_hwmgr *hwmgr) ...@@ -604,6 +607,7 @@ static int vega12_setup_default_dpm_tables(struct pp_hwmgr *hwmgr)
return -EINVAL); return -EINVAL);
dpm_table->dpm_levels[i].value = clock; dpm_table->dpm_levels[i].value = clock;
dpm_table->dpm_levels[i].enabled = true;
} }
vega12_init_dpm_state(&(dpm_table->dpm_state)); vega12_init_dpm_state(&(dpm_table->dpm_state));
...@@ -624,6 +628,7 @@ static int vega12_setup_default_dpm_tables(struct pp_hwmgr *hwmgr) ...@@ -624,6 +628,7 @@ static int vega12_setup_default_dpm_tables(struct pp_hwmgr *hwmgr)
return -EINVAL); return -EINVAL);
dpm_table->dpm_levels[i].value = clock; dpm_table->dpm_levels[i].value = clock;
dpm_table->dpm_levels[i].enabled = true;
} }
vega12_init_dpm_state(&(dpm_table->dpm_state)); vega12_init_dpm_state(&(dpm_table->dpm_state));
...@@ -644,6 +649,7 @@ static int vega12_setup_default_dpm_tables(struct pp_hwmgr *hwmgr) ...@@ -644,6 +649,7 @@ static int vega12_setup_default_dpm_tables(struct pp_hwmgr *hwmgr)
return -EINVAL); return -EINVAL);
dpm_table->dpm_levels[i].value = clock; dpm_table->dpm_levels[i].value = clock;
dpm_table->dpm_levels[i].enabled = true;
} }
vega12_init_dpm_state(&(dpm_table->dpm_state)); vega12_init_dpm_state(&(dpm_table->dpm_state));
...@@ -665,6 +671,7 @@ static int vega12_setup_default_dpm_tables(struct pp_hwmgr *hwmgr) ...@@ -665,6 +671,7 @@ static int vega12_setup_default_dpm_tables(struct pp_hwmgr *hwmgr)
return -EINVAL); return -EINVAL);
dpm_table->dpm_levels[i].value = clock; dpm_table->dpm_levels[i].value = clock;
dpm_table->dpm_levels[i].enabled = true;
} }
vega12_init_dpm_state(&(dpm_table->dpm_state)); vega12_init_dpm_state(&(dpm_table->dpm_state));
...@@ -685,6 +692,7 @@ static int vega12_setup_default_dpm_tables(struct pp_hwmgr *hwmgr) ...@@ -685,6 +692,7 @@ static int vega12_setup_default_dpm_tables(struct pp_hwmgr *hwmgr)
return -EINVAL); return -EINVAL);
dpm_table->dpm_levels[i].value = clock; dpm_table->dpm_levels[i].value = clock;
dpm_table->dpm_levels[i].enabled = true;
} }
vega12_init_dpm_state(&(dpm_table->dpm_state)); vega12_init_dpm_state(&(dpm_table->dpm_state));
...@@ -705,6 +713,7 @@ static int vega12_setup_default_dpm_tables(struct pp_hwmgr *hwmgr) ...@@ -705,6 +713,7 @@ static int vega12_setup_default_dpm_tables(struct pp_hwmgr *hwmgr)
return -EINVAL); return -EINVAL);
dpm_table->dpm_levels[i].value = clock; dpm_table->dpm_levels[i].value = clock;
dpm_table->dpm_levels[i].enabled = true;
} }
vega12_init_dpm_state(&(dpm_table->dpm_state)); vega12_init_dpm_state(&(dpm_table->dpm_state));
...@@ -725,6 +734,7 @@ static int vega12_setup_default_dpm_tables(struct pp_hwmgr *hwmgr) ...@@ -725,6 +734,7 @@ static int vega12_setup_default_dpm_tables(struct pp_hwmgr *hwmgr)
return -EINVAL); return -EINVAL);
dpm_table->dpm_levels[i].value = clock; dpm_table->dpm_levels[i].value = clock;
dpm_table->dpm_levels[i].enabled = true;
} }
vega12_init_dpm_state(&(dpm_table->dpm_state)); vega12_init_dpm_state(&(dpm_table->dpm_state));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册