Commit eed13b0e authored by Lijo Lazar's avatar Lijo Lazar Committed by Alex Deucher

drm/amd/pm: Add custom/current freq to pstates

Add custom member for user requested custom frequency, level mask
or min/max frequencies. Add curr member to keep track of the current
active values.
Signed-off-by: default avatarLijo Lazar <lijo.lazar@amd.com>
Reviewed-by: default avatarKevin Wang <kevin1.wang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 8f6368a9
...@@ -392,10 +392,18 @@ struct smu_baco_context ...@@ -392,10 +392,18 @@ struct smu_baco_context
bool platform_support; bool platform_support;
}; };
struct smu_freq_info {
uint32_t min;
uint32_t max;
uint32_t freq_level;
};
struct pstates_clk_freq { struct pstates_clk_freq {
uint32_t min; uint32_t min;
uint32_t standard; uint32_t standard;
uint32_t peak; uint32_t peak;
struct smu_freq_info custom;
struct smu_freq_info curr;
}; };
struct smu_umd_pstate_table { struct smu_umd_pstate_table {
......
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