OSDN Git Service

drm/amd/pm: Add custom/current freq to pstates
authorLijo Lazar <lijo.lazar@amd.com>
Thu, 13 May 2021 06:42:17 +0000 (14:42 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 May 2021 02:38:13 +0000 (22:38 -0400)
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 <lijo.lazar@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h

index 8bb224f..523f9d2 100644 (file)
@@ -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 {