drm/amdgpu: adjust the sequence to check soft reset
authorLikun Gao <Likun.Gao@amd.com>
Wed, 21 Dec 2022 05:46:33 +0000 (13:46 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 3 Jan 2023 21:49:26 +0000 (16:49 -0500)
commit360cd08196cabcf150b7550db427f9a7e3bf7d39
treeffbce6ad61c741946c6a8db260335bc62837ba2c
parent1f9d1ff1c3c1d02a9fdd00ea607219812f505081
drm/amdgpu: adjust the sequence to check soft reset

1.Drop soft reset check when do should recover gpu check.
  (As it will skip gpu reset operation if some ip is hang but
   not support soft reset)
2.Check soft reset status before do soft reset when pre asic reset.
  a. If check soft reset return true, it means: some ip is hang and
     it also support soft reset, will try soft reset first.
  b. If check soft reset return false, it means:
       I.  All the ip are not hang, will skip gpu reset.
       II. Some ip is hang but not support soft reset, will skip soft
           reset and retry with full reset later.

Signed-off-by: Likun Gao <Likun.Gao@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_device.c