mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 03:10:12 +00:00
drm/amd/powerplay: describe the PCIE link speed in right GT/s
Signed-off-by: Evan Quan <evan.quan@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
b636176efd
commit
7413d2faef
3 changed files with 9 additions and 9 deletions
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -4654,9 +4654,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:
|
||||
|
|
Loading…
Reference in a new issue