fglrx-no_hotplug.patch 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. diff -Nurp fglrx.orig/lib/modules/fglrx/build_mod/firegl_public.c fglrx/lib/modules/fglrx/build_mod/firegl_public.c
  2. --- fglrx.orig/lib/modules/fglrx/build_mod/firegl_public.c 2014-09-09 17:10:17.000000000 +0300
  3. +++ fglrx/lib/modules/fglrx/build_mod/firegl_public.c 2014-09-23 23:18:51.342432159 +0300
  4. @@ -1093,6 +1093,9 @@ static int fglrx_pci_suspend(struct pci_
  5. // directly here to allow suspend/resume without X server start.
  6. firegl_pci_save_state((KCL_PCI_DevHandle)pdev, privdev);
  7. pci_disable_device(pdev);
  8. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 17, 0)
  9. + pci_ignore_hotplug(pdev);
  10. +#endif
  11. PMSG_EVENT(pdev->dev.power.power_state) = state;
  12. }
  13. else
  14. diff -Nurp fglrx.orig/lib/modules/fglrx/build_mod/kcl_acpi.c fglrx/lib/modules/fglrx/build_mod/kcl_acpi.c
  15. --- fglrx.orig/lib/modules/fglrx/build_mod/kcl_acpi.c 2014-09-09 17:10:17.000000000 +0300
  16. +++ fglrx/lib/modules/fglrx/build_mod/kcl_acpi.c 2014-09-23 23:45:27.016475868 +0300
  17. @@ -840,10 +840,12 @@ static acpi_status KCL_ACPI_Slot_No_Hotp
  18. if(tdev != NULL)
  19. {
  20. device = (acpi_device_adr(tdev) >> 16) & 0xffff;
  21. +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0)
  22. if(PCI_SLOT(pdev->devfn) == device)
  23. {
  24. tdev->flags.no_hotplug = true;
  25. }
  26. +#endif
  27. }
  28. #endif
  29. return 0;
  30. diff -Nurp fglrx.orig/lib/modules/fglrx/build_mod/kcl_pci.c fglrx/lib/modules/fglrx/build_mod/kcl_pci.c
  31. --- fglrx.orig/lib/modules/fglrx/build_mod/kcl_pci.c 2014-09-09 17:10:17.000000000 +0300
  32. +++ fglrx/lib/modules/fglrx/build_mod/kcl_pci.c 2014-09-23 23:23:32.085208398 +0300
  33. @@ -306,6 +306,9 @@ void ATI_API_CALL KCL_PCI_DisableDevice(
  34. #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20)
  35. pci_disable_device((struct pci_dev*)dev);
  36. #endif
  37. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 17, 0)
  38. + pci_ignore_hotplug((struct pci_dev*)dev);
  39. +#endif
  40. }
  41. #if defined(__x86_64__)