aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/1736-drm-amdgpu-gmc-use-amdgpu_ras_feature_enable_on_boot.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/1736-drm-amdgpu-gmc-use-amdgpu_ras_feature_enable_on_boot.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.19.8/1736-drm-amdgpu-gmc-use-amdgpu_ras_feature_enable_on_boot.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/1736-drm-amdgpu-gmc-use-amdgpu_ras_feature_enable_on_boot.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/1736-drm-amdgpu-gmc-use-amdgpu_ras_feature_enable_on_boot.patch
new file mode 100644
index 00000000..a6808ef1
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/1736-drm-amdgpu-gmc-use-amdgpu_ras_feature_enable_on_boot.patch
@@ -0,0 +1,39 @@
+From b3307f38357a532207c63f1dc3b16f516cb2af94 Mon Sep 17 00:00:00 2001
+From: xinhui pan <xinhui.pan@amd.com>
+Date: Mon, 8 Apr 2019 14:56:46 +0800
+Subject: [PATCH 1736/2940] drm/amdgpu: gmc use
+ amdgpu_ras_feature_enable_on_boot
+
+handle ras enable on boot.
+
+Signed-off-by: xinhui pan <xinhui.pan@amd.com>
+Reviewed-by: Evan Quan <evan.quan@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
+index efde1c9866f8..841b47b54dde 100644
+--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
++++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
+@@ -731,7 +731,7 @@ static int gmc_v9_0_ecc_late_init(void *handle)
+ int r;
+
+ if (!amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__UMC)) {
+- amdgpu_ras_feature_enable(adev, &ras_block, 0);
++ amdgpu_ras_feature_enable_on_boot(adev, &ras_block, 0);
+ return 0;
+ }
+ /* handle resume path. */
+@@ -744,7 +744,7 @@ static int gmc_v9_0_ecc_late_init(void *handle)
+
+ **ras_if = ras_block;
+
+- r = amdgpu_ras_feature_enable(adev, *ras_if, 1);
++ r = amdgpu_ras_feature_enable_on_boot(adev, *ras_if, 1);
+ if (r)
+ goto feature;
+
+--
+2.17.1
+