Commit b3c139d5 authored by Chengming Gui's avatar Chengming Gui Committed by Alex Deucher

drm/amd/powerplay: add mclk_latency_table struct and smu_clocks struct for SMU11

add mclk_latency_table struct and smu_clocks structi
to support sys interface for SMU11.
Signed-off-by: default avatarChengming Gui <Jack.Gui@amd.com>
Reviewed-by: default avatarHuang Rui <ray.huang@amd.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 379a4454
...@@ -318,6 +318,7 @@ struct smu_dpm_context { ...@@ -318,6 +318,7 @@ struct smu_dpm_context {
void *golden_dpm_context; void *golden_dpm_context;
struct smu_power_state *dpm_request_power_state; struct smu_power_state *dpm_request_power_state;
struct smu_power_state *dpm_current_power_state; struct smu_power_state *dpm_current_power_state;
struct mclock_latency_table *mclk_latency_table;
}; };
struct smu_power_context { struct smu_power_context {
...@@ -335,6 +336,25 @@ struct smu_feature ...@@ -335,6 +336,25 @@ struct smu_feature
DECLARE_BITMAP(enabled, SMU_FEATURE_MAX); DECLARE_BITMAP(enabled, SMU_FEATURE_MAX);
}; };
struct smu_clocks {
uint32_t engine_clock;
uint32_t memory_clock;
uint32_t bus_bandwidth;
uint32_t engine_clock_in_sr;
uint32_t dcef_clock;
uint32_t dcef_clock_in_sr;
};
#define MAX_REGULAR_DPM_NUM 16
struct mclk_latency_entries {
uint32_t frequency;
uint32_t latency;
};
struct mclock_latency_table {
uint32_t count;
struct mclk_latency_entries entries[MAX_REGULAR_DPM_NUM];
};
#define WORKLOAD_POLICY_MAX 7 #define WORKLOAD_POLICY_MAX 7
struct smu_context struct smu_context
{ {
......
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