Revert "drm/amd/pm: keep the BACO feature enabled for suspend"
authorjsg <jsg@openbsd.org>
Thu, 19 May 2022 04:09:36 +0000 (04:09 +0000)
committerjsg <jsg@openbsd.org>
Thu, 19 May 2022 04:09:36 +0000 (04:09 +0000)
From Alex Deucher
0fad10b263a33492107d62caa460d5e4c717ce29 in linux 5.15.y/5.15.41
a56f445f807b0276fc0660c330bf93a9ea78e8ea in mainline linux

sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c

index 7147679..c05ee77 100644 (file)
@@ -1386,14 +1386,8 @@ static int smu_disable_dpms(struct smu_context *smu)
 {
        struct amdgpu_device *adev = smu->adev;
        int ret = 0;
-       /*
-        * TODO: (adev->in_suspend && !adev->in_s0ix) is added to pair
-        * the workaround which always reset the asic in suspend.
-        * It's likely that workaround will be dropped in the future.
-        * Then the change here should be dropped together.
-        */
        bool use_baco = !smu->is_apu &&
-               (((amdgpu_in_reset(adev) || (adev->in_suspend && !adev->in_s0ix)) &&
+               ((amdgpu_in_reset(adev) &&
                  (amdgpu_asic_reset_method(adev) == AMD_RESET_METHOD_BACO)) ||
                 ((adev->in_runpm || adev->in_s4) && amdgpu_asic_supports_baco(adev)));