diff options
| author | Lijo Lazar <[email protected]> | 2025-06-13 11:00:30 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-06-18 16:19:21 +0000 |
| commit | 04141c05f36afe6d053a964fd2c609d4744d19e5 (patch) | |
| tree | 05d1d09bc4357505a6996eaadbc02b2a0eb6c3a9 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
| parent | drm/amd/pm: Report pldm version and board voltage (diff) | |
| download | kernel-04141c05f36afe6d053a964fd2c609d4744d19e5.tar.gz kernel-04141c05f36afe6d053a964fd2c609d4744d19e5.zip | |
drm/amdgpu: Extend bus status check to more cases
In case of unexpected errors, check if device is alive on the bus.
Signed-off-by: Lijo Lazar <[email protected]>
Reviewed-by: Asad Kamal <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index dbe36fdb0a3c..c2d10be53d3e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -6071,14 +6071,9 @@ static int amdgpu_device_health_check(struct list_head *device_list_handle) { struct amdgpu_device *tmp_adev; int ret = 0; - u32 status; list_for_each_entry(tmp_adev, device_list_handle, reset_list) { - pci_read_config_dword(tmp_adev->pdev, PCI_COMMAND, &status); - if (PCI_POSSIBLE_ERROR(status)) { - dev_err(tmp_adev->dev, "device lost from bus!"); - ret = -ENODEV; - } + ret |= amdgpu_device_bus_status_check(tmp_adev); } return ret; |
