All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/8] drm/amd/swSMU: add callback to set AC/DC power source
@ 2020-03-20 18:27 Alex Deucher
  2020-03-20 18:27 ` [PATCH 2/8] drm/amdgpu/smu11: add a helper to set the " Alex Deucher
                   ` (6 more replies)
  0 siblings, 7 replies; 11+ messages in thread
From: Alex Deucher @ 2020-03-20 18:27 UTC (permalink / raw)
  To: amd-gfx; +Cc: Alex Deucher, mcoffin13, Evan Quan

From: Evan Quan <evan.quan@amd.com>

This is needed to tell the SMU firmware what state is in
in certain cases.  DC mode does not allow overclocking
for example.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 1 +
 drivers/gpu/drm/amd/powerplay/smu_internal.h   | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h b/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
index 657a6f17e91f..323e7e61493b 100644
--- a/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
+++ b/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
@@ -570,6 +570,7 @@ struct pptable_funcs {
 	int (*override_pcie_parameters)(struct smu_context *smu);
 	uint32_t (*get_pptable_power_limit)(struct smu_context *smu);
 	int (*disable_umc_cdr_12gbps_workaround)(struct smu_context *smu);
+	int (*set_power_source)(struct smu_context *smu, enum smu_power_src_type power_src);
 };
 
 int smu_load_microcode(struct smu_context *smu);
diff --git a/drivers/gpu/drm/amd/powerplay/smu_internal.h b/drivers/gpu/drm/amd/powerplay/smu_internal.h
index 6900877de845..40c35bcc5a0a 100644
--- a/drivers/gpu/drm/amd/powerplay/smu_internal.h
+++ b/drivers/gpu/drm/amd/powerplay/smu_internal.h
@@ -211,4 +211,7 @@ static inline int smu_send_smc_msg(struct smu_context *smu, enum smu_message_typ
 #define smu_disable_umc_cdr_12gbps_workaround(smu) \
 	((smu)->ppt_funcs->disable_umc_cdr_12gbps_workaround ? (smu)->ppt_funcs->disable_umc_cdr_12gbps_workaround((smu)) : 0)
 
+#define smu_set_power_source(smu, power_src) \
+	((smu)->ppt_funcs->set_power_source ? (smu)->ppt_funcs->set_power_source((smu), (power_src)) : 0)
+
 #endif
-- 
2.25.1

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-03-24  2:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-20 18:27 [PATCH 1/8] drm/amd/swSMU: add callback to set AC/DC power source Alex Deucher
2020-03-20 18:27 ` [PATCH 2/8] drm/amdgpu/smu11: add a helper to set the " Alex Deucher
2020-03-20 18:27 ` [PATCH 3/8] drm/amdgpu/swSMU: use the smu11 power source helper for navi1x Alex Deucher
2020-03-20 18:27 ` [PATCH 4/8] drm/amdgpu/swSMU: correct the bootup power source for Navi1X Alex Deucher
2020-03-20 18:27 ` [PATCH 5/8] drm/amdgpu/swSMU: set AC/DC mode based on the current system state Alex Deucher
2020-03-20 18:27 ` [PATCH 6/8] drm/amdgpu/swSMU: handle DC controlled by GPIO for navi1x Alex Deucher
2020-03-20 18:27 ` [PATCH 7/8] drm/amdgpu/swSMU: handle manual AC/DC notifications Alex Deucher
2020-03-20 18:27 ` [PATCH 8/8] drm/amdgpu/smu11: add support for SMU AC/DC interrupts Alex Deucher
2020-03-23  3:54   ` Quan, Evan
2020-03-23 14:46     ` Alex Deucher
2020-03-24  2:53       ` Quan, Evan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.