]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: correct the calculation of RAS bad page
authorTao Zhou <tao.zhou1@amd.com>
Fri, 29 Nov 2024 08:52:41 +0000 (16:52 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Dec 2024 15:26:51 +0000 (10:26 -0500)
commitae756cd8536923841b45340f7ee369272c9bf105
treedf6acb166a8bfce51415a0ea847ce52590a77238
parent1f06e7f344c4ac66184ee6bb49d83b8c413306ca
drm/amdgpu: correct the calculation of RAS bad page

After the introduction of NPS RAS, one bad page record on eeprom may be
related to 1 or 16 bad pages, so the bad page record and bad page are
two different concepts, define a new variable to store bad page number.

Signed-off-by: Tao Zhou <tao.zhou1@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_ras_eeprom.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.h
drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c