drm/amd: avoid suspend on dGPUs w/ s2idle support when runtime PM enabled
authorjsg <jsg@openbsd.org>
Wed, 9 Feb 2022 04:31:46 +0000 (04:31 +0000)
committerjsg <jsg@openbsd.org>
Wed, 9 Feb 2022 04:31:46 +0000 (04:31 +0000)
From Mario Limonciello
8a15ac1786c92dce6ecbeb4e4c237f5f80c2c703 in linux 5.15.y/5.15.22
e55a3aea418269266d84f426b3bd70794d3389c8 in mainline linux

sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c

index d157087..8511b65 100644 (file)
@@ -1508,8 +1508,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);
 
        return 0;
 }