]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7d52956f562052d5db46c72640a3489cd57ef16f
treed3204bebd672b8771f0dceb9139a1b968399e500
parent8d5185d7e079c83ec2ff414d57f11739dc12c97b
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