aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h
diff options
context:
space:
mode:
authorLijo Lazar <[email protected]>2021-05-13 06:42:17 +0000
committerAlex Deucher <[email protected]>2021-05-20 02:38:13 +0000
commiteed13b0e374e752d192b1fc62a7ecdb3938d70a7 (patch)
tree40065bc75ec2b723df84606a88fe79013d4e5c12 /drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h
parentdrm/amdgpu: Conditionally reset RAS counters on boot (diff)
downloadkernel-eed13b0e374e752d192b1fc62a7ecdb3938d70a7.tar.gz
kernel-eed13b0e374e752d192b1fc62a7ecdb3938d70a7.zip
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: Lijo Lazar <[email protected]> Reviewed-by: Kevin Wang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h')
-rw-r--r--drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h b/drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h
index 8bb224f6c762..523f9d2982e9 100644
--- a/drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h
+++ b/drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h
@@ -392,10 +392,18 @@ struct smu_baco_context
bool platform_support;
};
+struct smu_freq_info {
+ uint32_t min;
+ uint32_t max;
+ uint32_t freq_level;
+};
+
struct pstates_clk_freq {
uint32_t min;
uint32_t standard;
uint32_t peak;
+ struct smu_freq_info custom;
+ struct smu_freq_info curr;
};
struct smu_umd_pstate_table {