OSDN Git Service

drm/amdgpu: disable page reservation when amdgpu_bad_page_threshold = 0
authorGuchun Chen <guchun.chen@amd.com>
Mon, 27 Jul 2020 06:56:27 +0000 (14:56 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 4 Aug 2020 21:27:20 +0000 (17:27 -0400)
commita219ecbb83859940bd1959180bd555f28f2043a7
treec1c52d291227b7626a73a87bc14e6f2d3df4ae58
parentf848159b570ecdcd157ad5b52eb58e5cb3a075a7
drm/amdgpu: disable page reservation when amdgpu_bad_page_threshold = 0

When amdgpu_bad_page_threshold = 0, bad page reservation stuffs
are skipped in either UMC ECC irq or page retirement calling of
sync flood isr.

Signed-off-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c