summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd
diff options
context:
space:
mode:
authorAlex Deucher2018-05-10 22:15:12 +0200
committerAlex Deucher2018-05-24 06:51:22 +0200
commite1d1a7729a62d7b79fb2ab4ac3bc6fc0ebfb6db9 (patch)
tree34f8a729f74846b2f42445eab2ce64204f1bd83f /drivers/gpu/drm/amd
parentdrm/amdgpu: add a df 1.7 implementation of enable_ecc_force_par_wr_rmw (diff)
downloadkernel-qcow2-linux-e1d1a7729a62d7b79fb2ab4ac3bc6fc0ebfb6db9.tar.gz
kernel-qcow2-linux-e1d1a7729a62d7b79fb2ab4ac3bc6fc0ebfb6db9.tar.xz
kernel-qcow2-linux-e1d1a7729a62d7b79fb2ab4ac3bc6fc0ebfb6db9.zip
drm/amdgpu/gmc9: disable partial wr rmw if ECC is not enabled
The vbios mistakenly sets this bit on some boards without ECC. This can lead to reduced performance in some workloads. Disable the bit if the board does not have ECC. 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>
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
index b60ed288d314..3c0a85d4e4ab 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
@@ -675,6 +675,7 @@ static int gmc_v9_0_late_init(void *handle)
DRM_INFO("ECC is active.\n");
} else if (r == 0) {
DRM_INFO("ECC is not present.\n");
+ adev->df_funcs->enable_ecc_force_par_wr_rmw(adev, false);
} else {
DRM_ERROR("gmc_v9_0_ecc_available() failed. r: %d\n", r);
return r;