Skip to content

Commit b45aeb2

Browse files
pavanamdalexdeucher
authored andcommitted
drm/amdgpu: Handling of amdgpu_device_resume return value for graceful teardown
The runtime resume PM op disregards the return value from amdgpu_device_resume(), masking errors for failed resumes at the PM layer. Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Pavan Kumar Ramayanam <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 4b12ee6 commit b45aeb2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1573,6 +1573,9 @@ static int amdgpu_pmops_runtime_resume(struct device *dev)
15731573
amdgpu_device_baco_exit(drm_dev);
15741574
}
15751575
ret = amdgpu_device_resume(drm_dev, false);
1576+
if (ret)
1577+
return ret;
1578+
15761579
if (amdgpu_device_supports_px(drm_dev))
15771580
drm_dev->switch_power_state = DRM_SWITCH_POWER_ON;
15781581
adev->in_runpm = false;

0 commit comments

Comments
 (0)