aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/4659-drm-amdgpu-add-new-DF-callback-for-ECC-setup.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/4659-drm-amdgpu-add-new-DF-callback-for-ECC-setup.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/4659-drm-amdgpu-add-new-DF-callback-for-ECC-setup.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/4659-drm-amdgpu-add-new-DF-callback-for-ECC-setup.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/4659-drm-amdgpu-add-new-DF-callback-for-ECC-setup.patch
new file mode 100644
index 00000000..d2afb8b2
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/4659-drm-amdgpu-add-new-DF-callback-for-ECC-setup.patch
@@ -0,0 +1,31 @@
+From 92f6afe8862b0c6e0bf55647d24e96b365913675 Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Thu, 10 May 2018 14:59:31 -0500
+Subject: [PATCH 4659/5725] drm/amdgpu: add new DF callback for ECC setup
+
+The ForceParWrRMW setting needs to be enabled for ECC, but disabled
+when ECC is not enabled.
+
+Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
+Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+index dbc5570..dbd7a8c 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+@@ -1462,6 +1462,8 @@ struct amdgpu_df_funcs {
+ bool enable);
+ void (*get_clockgating_state)(struct amdgpu_device *adev,
+ u32 *flags);
++ void (*enable_ecc_force_par_wr_rmw)(struct amdgpu_device *adev,
++ bool enable);
+ };
+ /* Define the HW IP blocks will be used in driver , add more if necessary */
+ enum amd_hw_ip_block_type {
+--
+2.7.4
+