From 65ef41d3b2d4203bf4673e715ffe5a735dd709ac Mon Sep 17 00:00:00 2001 From: jsg Date: Wed, 9 Feb 2022 04:31:46 +0000 Subject: [PATCH] drm/amd: avoid suspend on dGPUs w/ s2idle support when runtime PM enabled 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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c index d1570875c8d..8511b6528dc 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c @@ -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; } -- 2.20.1