drm/amd: Disable ASPM for VI w/ all Intel systems
authorjsg <jsg@openbsd.org>
Fri, 3 Nov 2023 03:26:51 +0000 (03:26 +0000)
committerjsg <jsg@openbsd.org>
Fri, 3 Nov 2023 03:26:51 +0000 (03:26 +0000)
From Mario Limonciello
024251bab25daf97a3599c985dd04117b9c60d6b in linux-6.1.y/6.1.61
64ffd2f1d00c6235dabe9704bbb0d9ce3e28147f in mainline linux

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

index 2a3fbba..e0893d9 100644 (file)
@@ -1147,7 +1147,7 @@ static void vi_program_aspm(struct amdgpu_device *adev)
        bool bL1SS = false;
        bool bClkReqSupport = true;
 
-       if (!amdgpu_device_should_use_aspm(adev) || !amdgpu_device_aspm_support_quirk())
+       if (!amdgpu_device_should_use_aspm(adev) || !amdgpu_device_pcie_dynamic_switching_supported())
                return;
 
        if (adev->flags & AMD_IS_APU ||