drm/amdgpu: remove switch from amdgpu_gmc_noretry_set
authorGraham Sider <Graham.Sider@amd.com>
Thu, 7 Apr 2022 15:12:01 +0000 (11:12 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Sep 2022 13:43:41 +0000 (09:43 -0400)
commite67135571e4073e1ee252f839d7a1ccf10f89410
treed3204bebd672b8771f0dceb9139a1b968399e500
parent3ff4ccc3e938159c47c4dc3ed8e2b964c3604b50
drm/amdgpu: remove switch from amdgpu_gmc_noretry_set

Simplify the logic in amdgpu_gmc_noretry_set by getting rid of the
switch. Also set noretry=1 as default for GFX 10.3.0 and greater since
retry faults are not supported.

Signed-off-by: Graham Sider <Graham.Sider@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c