]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Warn when bad pages approaches 90% threshold
authorKent Russell <kent.russell@amd.com>
Tue, 12 Oct 2021 20:49:24 +0000 (16:49 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Oct 2021 18:26:12 +0000 (14:26 -0400)
commit7ee4f6f95844f1131c3b22833d1b1c28a3245d09
treed23421e6f9e4e069bb9df779afd63288a16e941e
parent930dd29f2d4e706c5239972c6b1acc960f47c6d6
drm/amdgpu: Warn when bad pages approaches 90% threshold

dmesg doesn't warn when the number of bad pages approaches the
threshold for page retirement. WARN when the number of bad pages
is at 90% or greater for easier checks and planning, instead of waiting
until the GPU is full of bad pages.

Cc: Luben Tuikov <luben.tuikov@amd.com>
Cc: Mukul Joshi <Mukul.Joshi@amd.com>
Signed-off-by: Kent Russell <kent.russell@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Luben Tuikov <luben.tuikov@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c