Commit b64d8688 authored by Evan Quan's avatar Evan Quan Committed by Alex Deucher

drm/amd/powerplay: add new UMD pstate data structure

This is used to cache the clock frequencies for all UMD pstates.
So that we do not need to calculate from scratch on every UMD
pstate switch.
Signed-off-by: default avatarEvan Quan <evan.quan@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 90a89c31
......@@ -352,6 +352,20 @@ struct smu_baco_context
bool platform_support;
};
struct pstates_clk_freq {
uint32_t min;
uint32_t standard;
uint32_t peak;
};
struct smu_umd_pstate_table {
struct pstates_clk_freq gfxclk_pstate;
struct pstates_clk_freq socclk_pstate;
struct pstates_clk_freq uclk_pstate;
struct pstates_clk_freq vclk_pstate;
struct pstates_clk_freq dclk_pstate;
};
#define WORKLOAD_POLICY_MAX 7
struct smu_context
{
......@@ -376,6 +390,7 @@ struct smu_context
struct dentry *debugfs_sclk;
#endif
struct smu_umd_pstate_table pstate_table;
uint32_t pstate_sclk;
uint32_t pstate_mclk;
......
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