drm/amdgpu: check RAS supported first in ras_reset_error_count
authorTao Zhou <tao.zhou1@amd.com>
Wed, 25 Oct 2023 03:03:24 +0000 (11:03 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 31 Oct 2023 20:40:15 +0000 (16:40 -0400)
commitd1d4c0b7b65b7fab2bc6f97af9e823b1c42ccdb0
tree4d0405f3133474ac46991eca57e963817f7807e9
parent631808095a82e6b6f8410a95f8b12b8d0d38b161
drm/amdgpu: check RAS supported first in ras_reset_error_count

Not all platforms support RAS.

Fixes: 73582be11ac8 ("drm/amdgpu: bypass RAS error reset in some conditions")
Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c