All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Deucher, Alexander" <Alexander.Deucher-5C7GfCeVMHo@public.gmane.org>
To: "amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org"
	<amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>
Cc: "Quan, Evan" <Evan.Quan-5C7GfCeVMHo@public.gmane.org>
Subject: RE: [PATCH] drm/amd/powerplay: describe the PCIE link speed in right GT/s
Date: Thu, 26 Oct 2017 13:12:41 +0000	[thread overview]
Message-ID: <BN6PR12MB1652832780EC105E6CD094D6F7450@BN6PR12MB1652.namprd12.prod.outlook.com> (raw)
In-Reply-To: <1509010540-5297-1-git-send-email-evan.quan-5C7GfCeVMHo@public.gmane.org>

> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces@lists.freedesktop.org] On Behalf
> Of Evan Quan
> Sent: Thursday, October 26, 2017 5:36 AM
> To: amd-gfx@lists.freedesktop.org
> Cc: Quan, Evan
> Subject: [PATCH] drm/amd/powerplay: describe the PCIE link speed in right
> GT/s
> 
> Change-Id: Icfd2c50ce168d8ccf3cc329eb906a56bab0a8c1d
> Signed-off-by: Evan Quan <evan.quan@amd.com>

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

> ---
>  drivers/gpu/drm/amd/amdgpu/ci_dpm.c                | 6 +++---
>  drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c   | 6 +++---
>  drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 6 +++---
>  3 files changed, 9 insertions(+), 9 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/ci_dpm.c
> b/drivers/gpu/drm/amd/amdgpu/ci_dpm.c
> index 68b505c..5a60c16 100644
> --- a/drivers/gpu/drm/amd/amdgpu/ci_dpm.c
> +++ b/drivers/gpu/drm/amd/amdgpu/ci_dpm.c
> @@ -6625,9 +6625,9 @@ static int ci_dpm_print_clock_levels(void *handle,
> 
>  		for (i = 0; i < pcie_table->count; i++)
>  			size += sprintf(buf + size, "%d: %s %s\n", i,
> -					(pcie_table->dpm_levels[i].value ==
> 0) ? "2.5GB, x1" :
> -					(pcie_table->dpm_levels[i].value ==
> 1) ? "5.0GB, x16" :
> -					(pcie_table->dpm_levels[i].value ==
> 2) ? "8.0GB, x16" : "",
> +					(pcie_table->dpm_levels[i].value ==
> 0) ? "2.5GT/s, x1" :
> +					(pcie_table->dpm_levels[i].value ==
> 1) ? "5.0GT/s, x16" :
> +					(pcie_table->dpm_levels[i].value ==
> 2) ? "8.0GT/s, x16" : "",
>  					(i == now) ? "*" : "");
>  		break;
>  	default:
> diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
> b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
> index 4466469..ed17af4 100644
> --- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
> +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
> @@ -4339,9 +4339,9 @@ static int smu7_print_clock_levels(struct pp_hwmgr
> *hwmgr,
> 
>  		for (i = 0; i < pcie_table->count; i++)
>  			size += sprintf(buf + size, "%d: %s %s\n", i,
> -					(pcie_table->dpm_levels[i].value ==
> 0) ? "2.5GB, x8" :
> -					(pcie_table->dpm_levels[i].value ==
> 1) ? "5.0GB, x16" :
> -					(pcie_table->dpm_levels[i].value ==
> 2) ? "8.0GB, x16" : "",
> +					(pcie_table->dpm_levels[i].value ==
> 0) ? "2.5GT/s, x8" :
> +					(pcie_table->dpm_levels[i].value ==
> 1) ? "5.0GT/s, x16" :
> +					(pcie_table->dpm_levels[i].value ==
> 2) ? "8.0GT/s, x16" : "",
>  					(i == now) ? "*" : "");
>  		break;
>  	default:
> diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
> b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
> index 203ef10..d947e17 100644
> --- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
> +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
> @@ -4647,9 +4647,9 @@ static int vega10_print_clock_levels(struct
> pp_hwmgr *hwmgr,
> 
>  		for (i = 0; i < pcie_table->count; i++)
>  			size += sprintf(buf + size, "%d: %s %s\n", i,
> -					(pcie_table->pcie_gen[i] == 0) ?
> "2.5GB, x1" :
> -					(pcie_table->pcie_gen[i] == 1) ?
> "5.0GB, x16" :
> -					(pcie_table->pcie_gen[i] == 2) ?
> "8.0GB, x16" : "",
> +					(pcie_table->pcie_gen[i] == 0) ?
> "2.5GT/s, x1" :
> +					(pcie_table->pcie_gen[i] == 1) ?
> "5.0GT/s, x16" :
> +					(pcie_table->pcie_gen[i] == 2) ?
> "8.0GT/s, x16" : "",
>  					(i == now) ? "*" : "");
>  		break;
>  	default:
> --
> 2.7.4
> 
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

      parent reply	other threads:[~2017-10-26 13:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-26  9:35 [PATCH] drm/amd/powerplay: describe the PCIE link speed in right GT/s Evan Quan
     [not found] ` <1509010540-5297-1-git-send-email-evan.quan-5C7GfCeVMHo@public.gmane.org>
2017-10-26 13:12   ` Deucher, Alexander [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=BN6PR12MB1652832780EC105E6CD094D6F7450@BN6PR12MB1652.namprd12.prod.outlook.com \
    --to=alexander.deucher-5c7gfcevmho@public.gmane.org \
    --cc=Evan.Quan-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.