Commit 0c83d32c authored by Kevin Wang's avatar Kevin Wang Committed by Alex Deucher

drm/amd/powerplay: simplified od_settings for each asic

the od_settings is asic related data, so move it to asic file.
Signed-off-by: default avatarKevin Wang <kevin1.wang@amd.com>
Reviewed-by: default avatarHuang Rui <ray.huang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 8f30a16d
...@@ -1058,21 +1058,9 @@ static int smu_hw_fini(void *handle) ...@@ -1058,21 +1058,9 @@ static int smu_hw_fini(void *handle)
kfree(table_context->max_sustainable_clocks); kfree(table_context->max_sustainable_clocks);
table_context->max_sustainable_clocks = NULL; table_context->max_sustainable_clocks = NULL;
kfree(table_context->od_feature_capabilities);
table_context->od_feature_capabilities = NULL;
kfree(table_context->od_settings_max);
table_context->od_settings_max = NULL;
kfree(table_context->od_settings_min);
table_context->od_settings_min = NULL;
kfree(table_context->overdrive_table); kfree(table_context->overdrive_table);
table_context->overdrive_table = NULL; table_context->overdrive_table = NULL;
kfree(table_context->od8_settings);
table_context->od8_settings = NULL;
kfree(smu->irq_source); kfree(smu->irq_source);
smu->irq_source = NULL; smu->irq_source = NULL;
......
...@@ -431,13 +431,7 @@ struct smu_table_context ...@@ -431,13 +431,7 @@ struct smu_table_context
uint8_t thermal_controller_type; uint8_t thermal_controller_type;
uint16_t TDPODLimit; uint16_t TDPODLimit;
uint8_t *od_feature_capabilities;
uint32_t *od_settings_max;
uint32_t *od_settings_min;
void *overdrive_table; void *overdrive_table;
void *od8_settings;
bool od_gfxclk_update;
bool od_memclk_update;
}; };
struct smu_dpm_context { struct smu_dpm_context {
...@@ -510,6 +504,7 @@ struct smu_context ...@@ -510,6 +504,7 @@ struct smu_context
struct smu_power_context smu_power; struct smu_power_context smu_power;
struct smu_feature smu_feature; struct smu_feature smu_feature;
struct amd_pp_display_configuration *display_config; struct amd_pp_display_configuration *display_config;
void *od_settings;
uint32_t pstate_sclk; uint32_t pstate_sclk;
uint32_t pstate_mclk; uint32_t pstate_mclk;
......
This diff is collapsed.
...@@ -166,6 +166,12 @@ struct vega20_od8_single_setting { ...@@ -166,6 +166,12 @@ struct vega20_od8_single_setting {
struct vega20_od8_settings { struct vega20_od8_settings {
struct vega20_od8_single_setting od8_settings_array[OD8_SETTING_COUNT]; struct vega20_od8_single_setting od8_settings_array[OD8_SETTING_COUNT];
uint8_t *od_feature_capabilities;
uint32_t *od_settings_max;
uint32_t *od_settings_min;
void *od8_settings;
bool od_gfxclk_update;
bool od_memclk_update;
}; };
extern void vega20_set_ppt_funcs(struct smu_context *smu); extern void vega20_set_ppt_funcs(struct smu_context *smu);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment