drm/amdgpu: Do a basic health check before reset
authorLijo Lazar <lijo.lazar@amd.com>
Wed, 13 Mar 2024 09:37:10 +0000 (15:07 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Mar 2024 17:37:38 +0000 (13:37 -0400)
commitdfe9c3cde22957f65476210aec48e3586983d927
tree41042506eb665a6032e9b8d5819d3146d9ac97eb
parentf1b8479dc997a0e625f3d94920cd778f55e299b5
drm/amdgpu: Do a basic health check before reset

Check if the device is present in the bus before trying to recover. It
could be that device itself is lost from the bus in some hang
situations.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Asad Kamal <asad.kamal@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c