0007-remove-gpl-symbols.patch 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. Author: Manuel Rüger <mrueg@gentoo.org>
  2. Date: Sat, 2 Jan 2016 17:24:30 +0100
  3. URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/x11-drivers/ati-drivers/files?id=179aa11ed2f1bd79cf1b190263c3a7a07279fc50
  4. Signed-off-by: Romain Perier <romain.perier@free-electrons.com>
  5. ---
  6. --- a/common/lib/modules/fglrx/build_mod/firegl_public.c 2015-09-18 23:57:02.000000000 -0400
  7. +++ b/common/lib/modules/fglrx/build_mod/firegl_public.c 2015-09-18 23:57:11.000000000 -0400
  8. @@ -136,7 +136,6 @@
  9. #include <asm/mman.h>
  10. #include <asm/uaccess.h>
  11. #include <asm/processor.h>
  12. -#include <asm/tlbflush.h> // for flush_tlb_page
  13. #include <asm/cpufeature.h>
  14. #ifdef CONFIG_MTRR
  15. #include <asm/mtrr.h>
  16. @@ -251,6 +250,26 @@
  17. #define WRITE_CR4(x) write_cr4(x)
  18. #endif
  19. +#define __flush_tlb_one(addr) asm volatile("invlpg (%0)" ::"r" (addr) : "memory")
  20. +#define __flush_tlb() native_write_cr3(native_read_cr3())
  21. +
  22. +static inline void __flush_tlb_all(void)
  23. +{
  24. + if (cpu_has_pge)
  25. + {
  26. + unsigned long flags, cr4;
  27. + raw_local_irq_save(flags);
  28. + cr4 = native_read_cr4();
  29. + native_write_cr4(cr4 & ~X86_CR4_PGE);
  30. + native_write_cr4(cr4);
  31. + raw_local_irq_restore(flags);
  32. + }
  33. + else
  34. + {
  35. + __flush_tlb();
  36. + }
  37. +}
  38. +
  39. // ============================================================
  40. /* globals */
  41. --- a/common/lib/modules/fglrx/build_mod/kcl_acpi.c 2015-09-19 00:43:35.000000000 -0400
  42. +++ b/common/lib/modules/fglrx/build_mod/kcl_acpi.c 2015-09-19 00:43:48.000000000 -0400
  43. @@ -868,7 +868,7 @@ void ATI_API_CALL KCL_ACPI_No_Hotplug(vo
  44. #elif LINUX_VERSION_CODE >= KERNEL_VERSION(3,17,0)
  45. if(pdev)
  46. {
  47. -#if (UTS_UBUNTU_RELEASE_ABI < 0 && LINUX_VERSION_CODE < KERNEL_VERSION(4,1,3)) || (UTS_UBUNTU_RELEASE_ABI >= 0 && UTS_UBUNTU_RELEASE_ABI < 26 && LINUX_VERSION_CODE <= KERNEL_VERSION(3,19,8))
  48. +#if 0 && (UTS_UBUNTU_RELEASE_ABI < 0 && LINUX_VERSION_CODE < KERNEL_VERSION(4,1,3)) || (UTS_UBUNTU_RELEASE_ABI >= 0 && UTS_UBUNTU_RELEASE_ABI < 26 && LINUX_VERSION_CODE <= KERNEL_VERSION(3,19,8))
  49. pci_ignore_hotplug(pdev);
  50. #else
  51. pdev->ignore_hotplug = 1;