]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix no bad_pages issue after umc ue injection
authorDennis Li <Dennis.Li@amd.com>
Tue, 5 Jan 2021 00:37:21 +0000 (08:37 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 Jan 2021 16:35:33 +0000 (11:35 -0500)
commit0966c88af4deb40b0f4f6d5d0c26a2848511aec2
tree5079e99fe1bd3f3fa9fbec767df7203af752eb9d
parent96b4a3ab5b042c22b50fb2f879bc689f14756646
drm/amdgpu: fix no bad_pages issue after umc ue injection

old code wrongly used the bad page status as the function return value,
which cause amdgpu_ras_badpages_read always return failed.

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