]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: fix the calculation of RAS bad page number
authorTao Zhou <tao.zhou1@amd.com>
Wed, 19 Nov 2025 07:21:43 +0000 (15:21 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Dec 2025 18:56:33 +0000 (13:56 -0500)
commitf752e79d38857011f1293fcb6c810409c3b669ee
tree96f4b2f3c4585472272ecf255ef761a629099b86
parent209529414ef0bcb46bf59f8368224e25167fc50d
drm/amdgpu: fix the calculation of RAS bad page number

__amdgpu_ras_restore_bad_pages is responsible for the maintenance of bad
page number, drop the unnecessary bad page number update in the error
handling path of add_bad_pages.

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