• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/amd-catalyst/0007-remove-gpl-symbols.patch
Romain PerierRomain Perier committed 689ae6e404c23 Aug 2016
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
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
​
5
Signed-off-by: Romain Perier <romain.perier@free-electrons.com>
6
---
7
--- a/common/lib/modules/fglrx/build_mod/firegl_public.c    2015-09-18 23:57:02.000000000 -0400
8
+++ b/common/lib/modules/fglrx/build_mod/firegl_public.c    2015-09-18 23:57:11.000000000 -0400
9
@@ -136,7 +136,6 @@
10
 #include <asm/mman.h>
11
 #include <asm/uaccess.h>
12
 #include <asm/processor.h>
13
-#include <asm/tlbflush.h> // for flush_tlb_page
14
 #include <asm/cpufeature.h>
15
 #ifdef CONFIG_MTRR
16
 #include <asm/mtrr.h>
17
@@ -251,6 +250,26 @@
18
 #define WRITE_CR4(x)    write_cr4(x)
19
 #endif
20
 
21
+#define __flush_tlb_one(addr) asm volatile("invlpg (%0)" ::"r" (addr) : "memory")
22
+#define __flush_tlb() native_write_cr3(native_read_cr3())
23
+
24
+static inline void __flush_tlb_all(void)
25
+{
26
+        if (cpu_has_pge)
27
+        {
28
+                unsigned long flags, cr4;
29
+                raw_local_irq_save(flags);
30
+                cr4 = native_read_cr4();
31
+                native_write_cr4(cr4 & ~X86_CR4_PGE);
32
+                native_write_cr4(cr4);
33
+                raw_local_irq_restore(flags);
34
+        }
35
+        else
36
+        {
37
+                __flush_tlb();
38
+        }
39
+}
40
+
41
 // ============================================================
42
 /* globals */
43
 
44
--- a/common/lib/modules/fglrx/build_mod/kcl_acpi.c 2015-09-19 00:43:35.000000000 -0400
45
+++ b/common/lib/modules/fglrx/build_mod/kcl_acpi.c 2015-09-19 00:43:48.000000000 -0400
46
@@ -868,7 +868,7 @@ void ATI_API_CALL KCL_ACPI_No_Hotplug(vo
47
 #elif LINUX_VERSION_CODE >= KERNEL_VERSION(3,17,0)
48
     if(pdev)
49
     {
50
-#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))
51
+#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))
52
        pci_ignore_hotplug(pdev);
53
 #else
54
        pdev->ignore_hotplug = 1;
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.