drm/amdgpu: bypass RAS error reset in some conditions
authorTao Zhou <tao.zhou1@amd.com>
Thu, 12 Oct 2023 06:33:37 +0000 (14:33 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 26 Oct 2023 22:41:22 +0000 (18:41 -0400)
commit73582be11ac8f6d6765e185bf48f22efb9d28c3b
treee506f510dba54e20e0b055df9a79f4ca1651914a
parentf3a3bbf1566c7b6b0f9ac36e8e597c73dc0afdf8
drm/amdgpu: bypass RAS error reset in some conditions

PMFW is responsible for RAS error reset in some conditions, driver can
skip the operation.

v2: add check for ras->in_recovery, it's set earlier than
amdgpu_in_reset.

v3: fix error in gpu reset check.

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