[AMD Public Use]

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]>
---
 drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h 
b/drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h
index 8bb224f6c762..76d670bd6440 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 {
-- 
2.17.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to