From: Lijo Lazar Date: Thu, 13 May 2021 06:42:17 +0000 (+0800) Subject: drm/amd/pm: Add custom/current freq to pstates X-Git-Tag: accepted/tizen/unified/20230118.172025~6864^2~23^2~92 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eed13b0e374e752d192b1fc62a7ecdb3938d70a7;p=platform%2Fkernel%2Flinux-rpi.git 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 Reviewed-by: Kevin Wang Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h b/drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h index 8bb224f..523f9d2 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 {