Commit 9308a49d authored by Mario Limonciello's avatar Mario Limonciello Committed by Alex Deucher

drm/amd: avoid suspend on dGPUs w/ s2idle support when runtime PM enabled

dGPUs connected to Intel systems configured for suspend to idle
will not have the power rails cut at suspend and resetting the GPU
may lead to problematic behaviors.

Fixes: e25443d2 ("drm/amdgpu: add a dev_pm_ops prepare callback (v2)")
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/1879Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarMario Limonciello <mario.limonciello@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 22f7cc75
...@@ -2269,8 +2269,7 @@ static int amdgpu_pmops_prepare(struct device *dev) ...@@ -2269,8 +2269,7 @@ static int amdgpu_pmops_prepare(struct device *dev)
* DPM_FLAG_SMART_SUSPEND works properly * DPM_FLAG_SMART_SUSPEND works properly
*/ */
if (amdgpu_device_supports_boco(drm_dev)) if (amdgpu_device_supports_boco(drm_dev))
return pm_runtime_suspended(dev) && return pm_runtime_suspended(dev);
pm_suspend_via_firmware();
/* if we will not support s3 or s2i for the device /* if we will not support s3 or s2i for the device
* then skip suspend * then skip suspend
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment