> -----Original Message----- > From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf > Of Evan Quan > Sent: Thursday, October 26, 2017 5:36 AM > To: amd-gfx at 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 at amd.com> Reviewed-by: Alex Deucher <alexander.deucher at 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 at lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx