aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2076-drm-amd-powerplay-describe-the-PCIE-link-speed-in-ri.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2076-drm-amd-powerplay-describe-the-PCIE-link-speed-in-ri.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2076-drm-amd-powerplay-describe-the-PCIE-link-speed-in-ri.patch69
1 files changed, 69 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2076-drm-amd-powerplay-describe-the-PCIE-link-speed-in-ri.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2076-drm-amd-powerplay-describe-the-PCIE-link-speed-in-ri.patch
new file mode 100644
index 00000000..69e03e81
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2076-drm-amd-powerplay-describe-the-PCIE-link-speed-in-ri.patch
@@ -0,0 +1,69 @@
+From bcdfdcfb3409ba1c9874eff3578f103d4c0bd1ab Mon Sep 17 00:00:00 2001
+From: Evan Quan <evan.quan@amd.com>
+Date: Thu, 26 Oct 2017 17:29:34 +0800
+Subject: [PATCH 2076/4131] 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 8d26497..25c23f6 100644
+--- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
+@@ -4342,9 +4342,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 021227b..511812e 100644
+--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
+@@ -4650,9 +4650,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
+