]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amd: avoid suspend on dGPUs w/ s2idle support when runtime PM enabled
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 26 Jan 2022 03:46:58 +0000 (21:46 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Feb 2022 23:35:00 +0000 (18:35 -0500)
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: 8c8cbf6a8e157 ("drm/amdgpu: add a dev_pm_ops prepare callback (v2)")
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/1879
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c

index 17747252e72213a6fd51cbf1855dd0246cb92d31..63a08999264517f98655bfa18f3fab1f0f3ac74c 100644 (file)
@@ -2252,8 +2252,7 @@ static int amdgpu_pmops_prepare(struct device *dev)
         * DPM_FLAG_SMART_SUSPEND works properly
         */
        if (amdgpu_device_supports_boco(drm_dev))
-               return pm_runtime_suspended(dev) &&
-                       pm_suspend_via_firmware();
+               return pm_runtime_suspended(dev);
 
        /* if we will not support s3 or s2i for the device
         *  then skip suspend