public inbox for amd-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH 1/3] Revert "drm/amd/powerply: fix power reading on Fiji"
@ 2018-04-11  6:31 Rex Zhu
       [not found] ` <1523428307-7969-1-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 15+ messages in thread
From: Rex Zhu @ 2018-04-11  6:31 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Rex Zhu

we don't have limit of [50ms, 4sec] sampling period.
smu calculate average gpu power in real time.
we can read average gpu power through smu message or
read special register.

This reverts commit 462d8dcc9fec0d89f1ff6a1f93f1d4f670878c71.

Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
---
 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
index 21c021b..388184e 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
@@ -3364,8 +3364,7 @@ static int smu7_get_gpu_power(struct pp_hwmgr *hwmgr,
 			"Failed to start pm status log!",
 			return -1);
 
-	/* Sampling period from 50ms to 4sec */
-	msleep_interruptible(200);
+	msleep_interruptible(20);
 
 	PP_ASSERT_WITH_CODE(!smum_send_msg_to_smc(hwmgr,
 			PPSMC_MSG_PmStatusLogSample),
-- 
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] 15+ messages in thread
* [PATCH 1/3] Revert "drm/amd/powerply: fix power reading on Fiji"
@ 2018-04-04  8:25 Rex Zhu
       [not found] ` <1522830304-15505-1-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 15+ messages in thread
From: Rex Zhu @ 2018-04-04  8:25 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Rex Zhu

we don't have limit of [50ms, 4sec] sampling period.
only confused the average power and max power.
so don't need to increase delay time.

This reverts commit 462d8dcc9fec0d89f1ff6a1f93f1d4f670878c71.

Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
---
 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
index aaa9f5b..40f2f87 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
@@ -3368,8 +3368,7 @@ static int smu7_get_gpu_power(struct pp_hwmgr *hwmgr,
 			"Failed to start pm status log!",
 			return -1);
 
-	/* Sampling period from 50ms to 4sec */
-	msleep_interruptible(200);
+	msleep_interruptible(20);
 
 	PP_ASSERT_WITH_CODE(!smum_send_msg_to_smc(hwmgr,
 			PPSMC_MSG_PmStatusLogSample),
-- 
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] 15+ messages in thread

end of thread, other threads:[~2018-04-11 17:40 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-11  6:31 [PATCH 1/3] Revert "drm/amd/powerply: fix power reading on Fiji" Rex Zhu
     [not found] ` <1523428307-7969-1-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org>
2018-04-11  6:31   ` [PATCH 2/3] drm/amd/pp: Refine get_gpu_power for VI Rex Zhu
     [not found]     ` <1523428307-7969-2-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org>
2018-04-11 17:21       ` Alex Deucher
     [not found]         ` <CADnq5_Mysj0jkxyA+v1BcBDFrdqKNdaH0o4f8wEWcCNa8isoMA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-04-11 17:38           ` Eric Huang
2018-04-11  6:31   ` [PATCH 3/3] drm/amd/pp: Remove struct pp_gpu_power Rex Zhu
     [not found]     ` <1523428307-7969-3-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org>
2018-04-11 17:23       ` Alex Deucher
     [not found]         ` <CADnq5_O_17bzfKfvd+6aaeQB=NS5Nz=Ot+0DMyKbZKVAK9p8Xg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-04-11 17:25           ` Tom St Denis
     [not found]             ` <8bf7fad4-ba8f-793e-4cfa-25eb2084be3d-5C7GfCeVMHo@public.gmane.org>
2018-04-11 17:40               ` Eric Huang
2018-04-11 17:19   ` [PATCH 1/3] Revert "drm/amd/powerply: fix power reading on Fiji" Alex Deucher
     [not found]     ` <CADnq5_PjDQ1LkTM-=h6k6WJt1Auukq1tAnM77Vz579wxVyP4oQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-04-11 17:33       ` Eric Huang
  -- strict thread matches above, loose matches on Subject: below --
2018-04-04  8:25 Rex Zhu
     [not found] ` <1522830304-15505-1-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org>
2018-04-04  8:25   ` [PATCH 2/3] drm/amd/pp: Refine get_gpu_power for VI Rex Zhu
     [not found]     ` <1522830304-15505-2-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org>
2018-04-04 15:36       ` Eric Huang
     [not found]         ` <a3566d2f-4b35-00b4-1df1-ab50076f704c-5C7GfCeVMHo@public.gmane.org>
2018-04-04 15:50           ` Zhu, Rex
     [not found]             ` <CY4PR12MB1687C34CD0753343A795544CFBA40-rpdhrqHFk06Y0SjTqZDccQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-04-04 16:00               ` Eric Huang
     [not found]                 ` <dfcb5127-c6ad-2a09-793e-42ca3cdcff1d-5C7GfCeVMHo@public.gmane.org>
2018-04-04 16:05                   ` Zhu, Rex

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox