]> git.dujemihanovic.xyz Git - linux.git/commit
drm/amdgpu: add bad_page_threshold check in ras_eeprom_check_err
authorTao Zhou <tao.zhou1@amd.com>
Tue, 21 Feb 2023 08:03:49 +0000 (16:03 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 23 Feb 2023 22:35:59 +0000 (17:35 -0500)
commit22106ed0be0d6c5b4aa07e18b63c1245bdb719c9
tree4939114b6436a5b3c217c1029cbfd5248a0d45c8
parentf3cbe70e215a87dcfdf028582a2fa94b24a08efe
drm/amdgpu: add bad_page_threshold check in ras_eeprom_check_err

bad_page_threshold controls page retirement behavior and it should be
also checked.

v2: simplify the condition of bad page handling path.

Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Stanley.Yang <Stanley.Yang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c