bool is_fw_fb;
resource_size_t base, size;
+ if (amdgpu_aspm == -1 && !pcie_aspm_enabled(pdev))
+ amdgpu_aspm = 0;
+
if (amdgpu_virtual_display ||
amdgpu_device_asic_has_dc_support(flags & AMD_ASIC_MASK))
supports_atomic = true;
printf("\n");
- /* from amdgpu_pci_probe() */
+ /* from amdgpu_pci_probe(), aspm test done later */
if (!amdgpu_virtual_display &&
amdgpu_device_asic_has_dc_support(adev->family))
adev->pdev = dev->pdev;
adev->is_fw_fb = adev->primary;
+ /* from amdgpu_pci_probe() */
+ if (amdgpu_aspm == -1 && !pcie_aspm_enabled(adev->pdev))
+ amdgpu_aspm = 0;
+
if (!supports_atomic)
dev->driver_features &= ~DRIVER_ATOMIC;