[PATCH 2/2] drm/amdgpu: add noretry=1 for gc 10.3.6

Yifan Zhang yifan1.zhang at amd.com
Tue Mar 1 13:05:05 UTC 2022


From: Aaron Liu <aaron.liu at amd.com>

By default, set noretry=1 for kfd exception test.

Signed-off-by: Aaron Liu <aaron.liu at amd.com>
Signed-off-by: Yifan Zhang <yifan1.zhang at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
index ab75e189bc0b..4bbd8501c6c1 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
@@ -595,6 +595,13 @@ void amdgpu_gmc_noretry_set(struct amdgpu_device *adev)
 			gmc->noretry = amdgpu_noretry;
 		break;
 	}
+
+	if (adev->ip_versions[GC_HWIP][0] == IP_VERSION(10, 3, 6)) {
+		if (amdgpu_noretry == -1)
+			gmc->noretry = 1;
+		else
+			gmc->noretry = amdgpu_noretry;
+	}
 }
 
 void amdgpu_gmc_set_vm_fault_masks(struct amdgpu_device *adev, int hub_type,
-- 
2.25.1



More information about the amd-gfx mailing list