Skip to contentSkip to conversation

drm/amd/pm: Add custom/current freq to pstates

PATCH Superseded Lijo Lazar 1 participant 1 message May 13, 2021

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Lijo Lazar

author
#0 lore raw

PATCH 1/3 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.

---
 drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h | 8 ++++++++
 1 file changed, 8 insertions(+)
drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h +8 -0
index 8bb224f6c762..76d670bd6440 100644
@@ -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 {
Signature · 6 lines
2.17.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx