All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] drm/amd/pp: Add new smu callback function
@ 2018-01-24  9:37 Rex Zhu
       [not found] ` <1516786649-14914-1-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 21+ messages in thread
From: Rex Zhu @ 2018-01-24  9:37 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Rex Zhu

it is used for update dpm settings

Change-Id: Idc0362c219d84564693ca90adf9299e56cfeb6a4
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
---
 drivers/gpu/drm/amd/powerplay/inc/hwmgr.h     | 1 +
 drivers/gpu/drm/amd/powerplay/inc/smumgr.h    | 1 +
 drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c | 8 ++++++++
 3 files changed, 10 insertions(+)

diff --git a/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h b/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h
index 604a7cb..3e8959e 100644
--- a/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h
+++ b/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h
@@ -238,6 +238,7 @@ struct pp_smumgr_func {
 	int (*populate_requested_graphic_levels)(struct pp_hwmgr *hwmgr,
 			struct amd_pp_profile *request);
 	bool (*is_hw_avfs_present)(struct pp_hwmgr  *hwmgr);
+	int (*update_dpm_settings)(struct pp_hwmgr *hwmgr, void *profile_setting);
 };
 
 struct pp_hwmgr_func {
diff --git a/drivers/gpu/drm/amd/powerplay/inc/smumgr.h b/drivers/gpu/drm/amd/powerplay/inc/smumgr.h
index b1b27b2..e05a57e 100644
--- a/drivers/gpu/drm/amd/powerplay/inc/smumgr.h
+++ b/drivers/gpu/drm/amd/powerplay/inc/smumgr.h
@@ -134,5 +134,6 @@ extern int smum_populate_requested_graphic_levels(struct pp_hwmgr *hwmgr,
 
 extern bool smum_is_hw_avfs_present(struct pp_hwmgr *hwmgr);
 
+extern int smum_update_dpm_settings(struct pp_hwmgr *hwmgr, void *profile_setting);
 
 #endif
diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c b/drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c
index 8673884..1ce4959 100644
--- a/drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c
+++ b/drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c
@@ -253,3 +253,11 @@ bool smum_is_hw_avfs_present(struct pp_hwmgr *hwmgr)
 
 	return false;
 }
+
+int smum_update_dpm_settings(struct pp_hwmgr *hwmgr, void *profile_setting)
+{
+	if (hwmgr->smumgr_funcs->update_dpm_settings)
+		return hwmgr->smumgr_funcs->update_dpm_settings(hwmgr, profile_setting);
+
+	return -EINVAL;
+}
-- 
1.9.1

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

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

end of thread, other threads:[~2018-01-26 16:39 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-24  9:37 [PATCH 1/4] drm/amd/pp: Add new smu callback function Rex Zhu
     [not found] ` <1516786649-14914-1-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org>
2018-01-24  9:37   ` [PATCH 2/4] drm/amd/pp: Implement update_dpm_settings on Polaris Rex Zhu
     [not found]     ` <1516786649-14914-2-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org>
2018-01-24 16:10       ` Eric Huang
2018-01-24  9:37   ` [PATCH 3/4] drm/amd/pp: Implement get_power_profile_mode on smu7 Rex Zhu
2018-01-24  9:37   ` [PATCH 4/4] drm/amd/pp: Implement set_power_profile_mode " Rex Zhu
     [not found]     ` <1516786649-14914-4-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org>
2018-01-24 16:04       ` Eric Huang
     [not found]         ` <e21a2657-7a80-5b59-6c1c-a578d3bf79a9-5C7GfCeVMHo@public.gmane.org>
2018-01-24 20:13           ` Zhu, Rex
     [not found]             ` <CY4PR12MB1687B4CBFF3BC4DD121752A4FBE20-rpdhrqHFk06Y0SjTqZDccQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-01-24 20:47               ` Eric Huang
     [not found]                 ` <2a05588c-f998-8fca-dad3-3a01677b51ec-5C7GfCeVMHo@public.gmane.org>
2018-01-24 20:56                   ` Zhu, Rex
2018-01-24 21:41               ` Felix Kuehling
     [not found]                 ` <e86e1a66-37d4-f3cc-8eae-689c81356526-5C7GfCeVMHo@public.gmane.org>
2018-01-24 23:05                   ` Zhu, Rex
     [not found]                     ` <CY4PR12MB1687A95AD6A9C584060686F8FBE20-rpdhrqHFk06Y0SjTqZDccQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-01-24 23:12                       ` Felix Kuehling
     [not found]                         ` <e63767e6-9900-d377-9e61-6ac75179e95d-5C7GfCeVMHo@public.gmane.org>
2018-01-24 23:42                           ` Alex Deucher
     [not found]                             ` <CADnq5_MLxkBAm5RR5ae684hQNg2HFfbYr+qzpz28WCPjX7_=tw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-01-25 12:14                               ` Zhu, Rex
2018-01-25  2:28                           ` Zhu, Rex
     [not found]                             ` <CY4PR12MB168748FA26D74B6E01890EBAFBE10-rpdhrqHFk06Y0SjTqZDccQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-01-25  4:15                               ` Felix Kuehling
     [not found]                                 ` <73ba3cee-960f-9f42-00fc-0039398be244-5C7GfCeVMHo@public.gmane.org>
2018-01-25 11:48                                   ` Zhu, Rex
     [not found]                                     ` <CY4PR12MB16870B8F113975E3FB41C930FBE10-rpdhrqHFk06Y0SjTqZDccQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-01-25 16:31                                       ` Felix Kuehling
2018-01-25 16:18   ` [PATCH 1/4] drm/amd/pp: Add new smu callback function Eric Huang
     [not found]     ` <cba449fc-1e35-382f-919d-e429d325a553-5C7GfCeVMHo@public.gmane.org>
2018-01-25 23:15       ` Zhu, Rex
     [not found]         ` <CY4PR12MB168701E9A698764CDCC6D278FBE10-rpdhrqHFk06Y0SjTqZDccQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-01-26 16:39           ` Eric Huang

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.