drm/amdgpu: Add common helper to reset ras error
authorHawking Zhang <Hawking.Zhang@amd.com>
Fri, 3 Feb 2023 08:10:37 +0000 (16:10 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:52:54 +0000 (09:52 -0400)
commite53a3250f76b8a0dd5b533bd0ce0dc821055e77d
treee4f9b4706eec038f9837d3ace9815795dcc2098a
parent322a7e005db78b8a46ead91b7e3df3514cb658f0
drm/amdgpu: Add common helper to reset ras error

Add common helper to reset ras error status. It
applies to IP blocks that follow the new ras error
logging register design, and need to write 0 to
reset the error status. For IP blocks that don't
support the new design, please still implement ip
specific helper.

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@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.h