[PATCH] drm/amdgpu: disable ECC check for Raven to avoid error message annoyance

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It should be enabled until ECC is supported for Raven.

Change-Id: If847663d503c26d2a08274ca721b4ce1bc637111
Signed-off-by: Junwei Zhang <Jerry.Zhang at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
index c12ee75..a333442 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
@@ -533,6 +533,10 @@ static int gmc_v9_0_ecc_available(struct amdgpu_device *adev)
 
 	DRM_DEBUG("ecc: gmc_v9_0_ecc_available()\n");
 
+	/* Temporally skip ECC for Raven to avoid error message annoyance */
+	if (adev->asic_type == CHIP_RAVEN)
+		return 0;
+
 	lost_sheep = 0;
 	for (i = 0; i < ARRAY_SIZE(ecc_umclocalcap_addrs); ++i) {
 		reg_addr = ecc_umclocalcap_addrs[i];
-- 
1.9.1



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux