* [PATCH] drm/amd/powerplay: describe the PCIE link speed in right GT/s
@ 2017-10-26 9:35 Evan Quan
[not found] ` <1509010540-5297-1-git-send-email-evan.quan-5C7GfCeVMHo@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Evan Quan @ 2017-10-26 9:35 UTC (permalink / raw)
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Evan Quan
Change-Id: Icfd2c50ce168d8ccf3cc329eb906a56bab0a8c1d
Signed-off-by: Evan Quan <evan.quan@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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* RE: [PATCH] drm/amd/powerplay: describe the PCIE link speed in right GT/s
[not found] ` <1509010540-5297-1-git-send-email-evan.quan-5C7GfCeVMHo@public.gmane.org>
@ 2017-10-26 13:12 ` Deucher, Alexander
0 siblings, 0 replies; 2+ messages in thread
From: Deucher, Alexander @ 2017-10-26 13:12 UTC (permalink / raw)
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Quan, Evan
> -----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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-10-26 13:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 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.