diff options
author | Lijo Lazar <lijo.lazar@amd.com> | 2024-11-15 11:35:50 +0530 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-11-20 10:03:05 -0500 |
commit | e283f4fb0862647f4bb02e78d728bc8fb9eef18d (patch) | |
tree | e132a6bbda82d954a1952e3d88c8c06da6ba4bca /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | a86e0c0e94373aebc39c2efedaefc408f6a49fe3 (diff) | |
download | linux-e283f4fb0862647f4bb02e78d728bc8fb9eef18d.tar.gz linux-e283f4fb0862647f4bb02e78d728bc8fb9eef18d.tar.bz2 linux-e283f4fb0862647f4bb02e78d728bc8fb9eef18d.zip |
drm/amdgpu: Use reset recovery state checks
Some in_reset checks are infact checking whether the state is
reinitialization after reset. Replace with reset_in_recovery calls to
identify that it's really checking for recovery stage after reset.
Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Acked-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 5ef95161e632..714d2e586eac 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -3258,7 +3258,7 @@ static int amdgpu_device_ip_late_init(struct amdgpu_device *adev) return r; } - if (!amdgpu_in_reset(adev)) + if (!amdgpu_reset_in_recovery(adev)) amdgpu_ras_set_error_query_ready(adev, true); amdgpu_device_set_cg_state(adev, AMD_CG_STATE_GATE); |