All of lore.kernel.org
 help / color / mirror / Atom feed
From: Huang Rui <ray.huang-5C7GfCeVMHo@public.gmane.org>
To: Rex Zhu <Rex.Zhu-5C7GfCeVMHo@public.gmane.org>
Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: Re: [PATCH 4/4] drm/amd/powerplay: add profiling mode in dpm level
Date: Tue, 3 Jan 2017 18:15:21 +0800	[thread overview]
Message-ID: <20170103101520.GA19401@hr-amur2> (raw)
In-Reply-To: <1482482752-31020-4-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org>

On Fri, Dec 23, 2016 at 04:45:52PM +0800, Rex Zhu wrote:

You need add signed-by-off and descriptions here.

> Change-Id: I4a46440882cd94fe5e77e3f351aaccc218a2ece5
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c           | 17 +++++++++++++++++
>  drivers/gpu/drm/amd/amdgpu/ci_dpm.c              |  4 ++--
>  drivers/gpu/drm/amd/include/amd_shared.h         |  1 +
>  drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c   |  3 ++-
>  drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c |  3 ++-
>  5 files changed, 24 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
> index 2bfede8..8438642 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
> @@ -124,6 +124,7 @@ static ssize_t amdgpu_get_dpm_forced_performance_level(struct device *dev,
>  			(level & AMD_DPM_FORCED_LEVEL_LOW) ? "low" :
>  			(level & AMD_DPM_FORCED_LEVEL_HIGH) ? "high" :
>  			(level & AMD_DPM_FORCED_LEVEL_MANUAL) ? "manual" :
> +			(level & AMD_DPM_FORCED_LEVEL_PROFILING) ? "profiling" :
>  			"unknown"));


> @@ -150,11 +154,24 @@ static ssize_t amdgpu_set_dpm_forced_performance_level(struct device *dev,
>  		level = AMD_DPM_FORCED_LEVEL_AUTO;
>  	} else if (strncmp("manual", buf, strlen("manual")) == 0) {
>  		level = AMD_DPM_FORCED_LEVEL_MANUAL;
> +	} else if (strncmp("profile", buf, strlen("profile")) == 0) {
> +		level = AMD_DPM_FORCED_LEVEL_PROFILING;

We would better algin get/set (input/output) word with profiling or
profile. With that fixed, patch is

Reviewed-by: Huang Rui <ray.huang@amd.com>
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

      parent reply	other threads:[~2017-01-03 10:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-23  8:45 [PATCH 1/4] drm/amd/powerplay: delete dpm code for Cz/St Rex Zhu
     [not found] ` <1482482752-31020-1-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org>
2016-12-23  8:45   ` [PATCH 2/4] drm/amd/powerplay: Unify dpm level defines Rex Zhu
2016-12-23  8:45   ` [PATCH 3/4] drm/amd/powerplay: fix bug dpm level set by user was reset to auto Rex Zhu
2016-12-23  8:45   ` [PATCH 4/4] drm/amd/powerplay: add profiling mode in dpm level Rex Zhu
     [not found]     ` <1482482752-31020-4-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org>
2016-12-31  6:25       ` Alex Deucher
     [not found]         ` <CADnq5_P2GiXmoWnUiHipKQj-2VYT0sD72LoOScmmRua+_kQCXA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-01-08 20:18           ` Andy Furniss
     [not found]             ` <58729E90.3090506-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-01-09  7:46               ` Zhu, Rex
     [not found]                 ` <CY4PR12MB1687780C20D2155C8D92F994FB640-rpdhrqHFk06Y0SjTqZDccQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-01-09 10:28                   ` Andy Furniss
     [not found]                     ` <587365E8.7000904-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-01-09 10:40                       ` Zhu, Rex
     [not found]                         ` <CY4PR12MB1687BA955CA0340AB65272F8FB640-rpdhrqHFk06Y0SjTqZDccQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-01-09 10:57                           ` Andy Furniss
2017-01-09 14:24                   ` Deucher, Alexander
2017-01-03 10:15       ` Huang Rui [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170103101520.GA19401@hr-amur2 \
    --to=ray.huang-5c7gfcevmho@public.gmane.org \
    --cc=Rex.Zhu-5C7GfCeVMHo@public.gmane.org \
    --cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.