[Pkg-fglrx-devel] r1323 - fglrx-driver/trunk/debian/patches

Michael Gilbert mgilbert at moszumanska.debian.org
Tue Dec 31 04:39:17 UTC 2013


Author: mgilbert
Date: 2013-12-31 04:38:51 +0000 (Tue, 31 Dec 2013)
New Revision: 1323

Added:
   fglrx-driver/trunk/debian/patches/02-dkms-arch_compat.patch
   fglrx-driver/trunk/debian/patches/03-authatieventsd.sh.patch
   fglrx-driver/trunk/debian/patches/06-stub-for-agpless-kernel.patch
   fglrx-driver/trunk/debian/patches/07-linux3.9.patch
   fglrx-driver/trunk/debian/patches/08-linux3.12.patch
   fglrx-driver/trunk/debian/patches/09-linux3.13.patch
Removed:
   fglrx-driver/trunk/debian/patches/02-dkms-arch_compat.diff
   fglrx-driver/trunk/debian/patches/03-authatieventsd.sh.diff
   fglrx-driver/trunk/debian/patches/06-stub-for-agpless-kernel.diff
Modified:
   fglrx-driver/trunk/debian/patches/series
Log:
update patches for 13.12

Deleted: fglrx-driver/trunk/debian/patches/02-dkms-arch_compat.diff
===================================================================
--- fglrx-driver/trunk/debian/patches/02-dkms-arch_compat.diff	2013-12-31 04:34:04 UTC (rev 1322)
+++ fglrx-driver/trunk/debian/patches/02-dkms-arch_compat.diff	2013-12-31 04:38:51 UTC (rev 1323)
@@ -1,14 +0,0 @@
-# The fix from AMD does not work properly, if you are building fglrx without make.sh (like with dkms).
-# Fix it again..
-
-diff -Naur fglrx-driver-11-5.orig/common/lib/modules/fglrx/build_mod/2.6.x/Makefile fglrx-driver-11-5/common/lib/modules/fglrx/build_mod/2.6.x/Makefile
---- fglrx-driver-11-5.orig/common/lib/modules/fglrx/build_mod/2.6.x/Makefile	2011-05-03 17:19:14.000000000 +0200
-+++ fglrx-driver-11-5/common/lib/modules/fglrx/build_mod/2.6.x/Makefile	2011-05-11 19:22:41.000000000 +0200
-@@ -68,6 +68,7 @@
-                 -DFGL_GART_RESERVED_SLOT \
-                 -DFGL_LINUX253P1_VMA_API \
-                 -DPAGE_ATTR_FIX=$(PAGE_ATTR_FIX) \
-+                -DCOMPAT_ALLOC_USER_SPACE=$(shell if grep -q compat_alloc_user_space /lib/modules/$(KERNELRELEASE)/build/Module.symvers ; then echo arch_compat_alloc_user_space ; else echo compat_alloc_user_space ; fi) \
- 
- ifeq ($(KERNELRELEASE),)
- # on first call from remote location we get into this path

Copied: fglrx-driver/trunk/debian/patches/02-dkms-arch_compat.patch (from rev 1322, fglrx-driver/trunk/debian/patches/02-dkms-arch_compat.diff)
===================================================================
--- fglrx-driver/trunk/debian/patches/02-dkms-arch_compat.patch	                        (rev 0)
+++ fglrx-driver/trunk/debian/patches/02-dkms-arch_compat.patch	2013-12-31 04:38:51 UTC (rev 1323)
@@ -0,0 +1,14 @@
+# The fix from AMD does not work properly, if you are building fglrx without make.sh (like with dkms).
+# Fix it again..
+
+diff -Naur fglrx-driver-11-5.orig/common/lib/modules/fglrx/build_mod/2.6.x/Makefile fglrx-driver-11-5/common/lib/modules/fglrx/build_mod/2.6.x/Makefile
+--- fglrx-driver-11-5.orig/common/lib/modules/fglrx/build_mod/2.6.x/Makefile	2011-05-03 17:19:14.000000000 +0200
++++ fglrx-driver-11-5/common/lib/modules/fglrx/build_mod/2.6.x/Makefile	2011-05-11 19:22:41.000000000 +0200
+@@ -68,6 +68,7 @@
+                 -DFGL_GART_RESERVED_SLOT \
+                 -DFGL_LINUX253P1_VMA_API \
+                 -DPAGE_ATTR_FIX=$(PAGE_ATTR_FIX) \
++                -DCOMPAT_ALLOC_USER_SPACE=$(shell if grep -q compat_alloc_user_space /lib/modules/$(KERNELRELEASE)/build/Module.symvers ; then echo arch_compat_alloc_user_space ; else echo compat_alloc_user_space ; fi) \
+ 
+ ifeq ($(KERNELRELEASE),)
+ # on first call from remote location we get into this path

Deleted: fglrx-driver/trunk/debian/patches/03-authatieventsd.sh.diff
===================================================================
--- fglrx-driver/trunk/debian/patches/03-authatieventsd.sh.diff	2013-12-31 04:34:04 UTC (rev 1322)
+++ fglrx-driver/trunk/debian/patches/03-authatieventsd.sh.diff	2013-12-31 04:38:51 UTC (rev 1323)
@@ -1,67 +0,0 @@
-# Make the authatieventsd.sh working on Debian.
-
-Index: fglrx-driver/common/etc/ati/authatieventsd.sh
-===================================================================
---- fglrx-driver.orig/common/etc/ati/authatieventsd.sh	2011-07-18 19:32:39.000000000 -0400
-+++ fglrx-driver/common/etc/ati/authatieventsd.sh	2011-07-18 20:25:31.000000000 -0400
-@@ -42,6 +42,16 @@
-         return 0
-     fi
- 
-+    # Check for xauth
-+    XAUTH_AUTH_MASK=/var/run/xauth/A$1*
-+    XAUTH_AUTH_FILE=`ls -t $XAUTH_AUTH_MASK 2>/dev/null | head -n 1`   # Choose the newest file
-+    if [ -n "$XAUTH_AUTH_FILE" ]; then
-+        SERVER_AUTH_FILE=$XAUTH_AUTH_FILE
-+        DISP_SEARCH_STRING="#ffff#"
-+        return 0
-+    fi
-+
-+
-     # Check gdm
- 
-     GDM_AUTH_FILE=/var/lib/gdm/$1.Xauth
-@@ -55,12 +65,14 @@
- 
-     for XPID in `pidof X`; do
-         TRIAL_XAUTH_FILE=`tr '\0' '\n' < /proc/$XPID/environ | grep -e "^XAUTHORITY=" | cut -d= -f2`
-+        if [ -n "$TRIAL_XAUTH_FILE" ]; then
-         TRIAL_XAUTH_KEY=`xauth -f $TRIAL_XAUTH_FILE list | grep "unix$1"`
-         if [ -n "$TRIAL_XAUTH_KEY" ]; then
-             SERVER_AUTH_FILE=$TRIAL_XAUTH_FILE
-             DISP_SEARCH_STRING="unix$1"
-             return 0
-         fi
-+	fi
-     done
- 
-     # Couldn't find the key
-@@ -83,16 +95,22 @@
- case "$1" in
-     grant)
-         GetServerAuthFile $2 || exit -1
--        DISP_AUTH_KEY=`xauth -f $SERVER_AUTH_FILE list | grep $DISP_SEARCH_STRING | awk '{ print $3 }'`
--        if [ -n "$DISP_AUTH_KEY" ]; then
--            xauth -f $3 add $2 . $DISP_AUTH_KEY || exit -1
--        else
--            exit -1
-+	xauth -f $SERVER_AUTH_FILE list | grep $DISP_SEARCH_STRING || exit -1
-+	if [ `pinky -fs | awk '{ if ($3 == "'$2'" || $(NF) == "'$2'" ) { print $1; exit; } }'` ]; then
-+		user=`pinky -fs | awk '{ if ($3 == "'$2'" || $(NF) == "'$2'" ) { print $1; exit; } }'`
-+		su $user -c "echo "$2 . `xauth -f $SERVER_AUTH_FILE list | grep $DISP_SEARCH_STRING | awk '{print $3}'`" | xauth -f $3 merge -" || exit -1
-+	else
-+		echo "$2 . `xauth -f $SERVER_AUTH_FILE list | grep $DISP_SEARCH_STRING | awk '{print $3}'`" | xauth -f $3 merge - || exit -1
-         fi
-         ;;
- 
-     revoke)
--        xauth -f $3 remove $2 || exit -1
-+	if [ `pinky -fs | awk '{ if ($3 == "'$2'" || $(NF) == "'$2'" ) { print $1; exit; } }'` ]; then
-+		user=`pinky -fs | awk '{ if ($3 == "'$2'" || $(NF) == "'$2'" ) { print $1; exit; } }'`
-+		su $user -c "xauth -f $3 remove $2" || exit -1
-+	else
-+		xauth -f $3 remove $2 || exit -1
-+	fi
-         ;;
- 
-     *)

Copied: fglrx-driver/trunk/debian/patches/03-authatieventsd.sh.patch (from rev 1322, fglrx-driver/trunk/debian/patches/03-authatieventsd.sh.diff)
===================================================================
--- fglrx-driver/trunk/debian/patches/03-authatieventsd.sh.patch	                        (rev 0)
+++ fglrx-driver/trunk/debian/patches/03-authatieventsd.sh.patch	2013-12-31 04:38:51 UTC (rev 1323)
@@ -0,0 +1,67 @@
+# Make the authatieventsd.sh working on Debian.
+
+Index: fglrx-driver/common/etc/ati/authatieventsd.sh
+===================================================================
+--- fglrx-driver.orig/common/etc/ati/authatieventsd.sh	2011-07-18 19:32:39.000000000 -0400
++++ fglrx-driver/common/etc/ati/authatieventsd.sh	2011-07-18 20:25:31.000000000 -0400
+@@ -42,6 +42,16 @@
+         return 0
+     fi
+ 
++    # Check for xauth
++    XAUTH_AUTH_MASK=/var/run/xauth/A$1*
++    XAUTH_AUTH_FILE=`ls -t $XAUTH_AUTH_MASK 2>/dev/null | head -n 1`   # Choose the newest file
++    if [ -n "$XAUTH_AUTH_FILE" ]; then
++        SERVER_AUTH_FILE=$XAUTH_AUTH_FILE
++        DISP_SEARCH_STRING="#ffff#"
++        return 0
++    fi
++
++
+     # Check gdm
+ 
+     GDM_AUTH_FILE=/var/lib/gdm/$1.Xauth
+@@ -55,12 +65,14 @@
+ 
+     for XPID in `pidof X`; do
+         TRIAL_XAUTH_FILE=`tr '\0' '\n' < /proc/$XPID/environ | grep -e "^XAUTHORITY=" | cut -d= -f2`
++        if [ -n "$TRIAL_XAUTH_FILE" ]; then
+         TRIAL_XAUTH_KEY=`xauth -f $TRIAL_XAUTH_FILE list | grep "unix$1"`
+         if [ -n "$TRIAL_XAUTH_KEY" ]; then
+             SERVER_AUTH_FILE=$TRIAL_XAUTH_FILE
+             DISP_SEARCH_STRING="unix$1"
+             return 0
+         fi
++	fi
+     done
+ 
+     # Couldn't find the key
+@@ -83,16 +95,22 @@
+ case "$1" in
+     grant)
+         GetServerAuthFile $2 || exit -1
+-        DISP_AUTH_KEY=`xauth -f $SERVER_AUTH_FILE list | grep $DISP_SEARCH_STRING | awk '{ print $3 }'`
+-        if [ -n "$DISP_AUTH_KEY" ]; then
+-            xauth -f $3 add $2 . $DISP_AUTH_KEY || exit -1
+-        else
+-            exit -1
++	xauth -f $SERVER_AUTH_FILE list | grep $DISP_SEARCH_STRING || exit -1
++	if [ `pinky -fs | awk '{ if ($3 == "'$2'" || $(NF) == "'$2'" ) { print $1; exit; } }'` ]; then
++		user=`pinky -fs | awk '{ if ($3 == "'$2'" || $(NF) == "'$2'" ) { print $1; exit; } }'`
++		su $user -c "echo "$2 . `xauth -f $SERVER_AUTH_FILE list | grep $DISP_SEARCH_STRING | awk '{print $3}'`" | xauth -f $3 merge -" || exit -1
++	else
++		echo "$2 . `xauth -f $SERVER_AUTH_FILE list | grep $DISP_SEARCH_STRING | awk '{print $3}'`" | xauth -f $3 merge - || exit -1
+         fi
+         ;;
+ 
+     revoke)
+-        xauth -f $3 remove $2 || exit -1
++	if [ `pinky -fs | awk '{ if ($3 == "'$2'" || $(NF) == "'$2'" ) { print $1; exit; } }'` ]; then
++		user=`pinky -fs | awk '{ if ($3 == "'$2'" || $(NF) == "'$2'" ) { print $1; exit; } }'`
++		su $user -c "xauth -f $3 remove $2" || exit -1
++	else
++		xauth -f $3 remove $2 || exit -1
++	fi
+         ;;
+ 
+     *)

Deleted: fglrx-driver/trunk/debian/patches/06-stub-for-agpless-kernel.diff
===================================================================
--- fglrx-driver/trunk/debian/patches/06-stub-for-agpless-kernel.diff	2013-12-31 04:34:04 UTC (rev 1322)
+++ fglrx-driver/trunk/debian/patches/06-stub-for-agpless-kernel.diff	2013-12-31 04:38:51 UTC (rev 1323)
@@ -1,20 +0,0 @@
-Description: Add a stub for kernels built without CONFIG_AGP
-Author: Vasiliy Yeremeyev <vayerx at gmail.com>
-Origin: other, https://bugs.gentoo.org/show_bug.cgi?id=435322#c11
-Forwarded: no
-Last-Update: 2012-11-04
-
---- fglrx-driver-13.1.orig/common/lib/modules/fglrx/build_mod/kcl_agp.c
-+++ fglrx-driver-13.1/common/lib/modules/fglrx/build_mod/kcl_agp.c
-@@ -479,6 +479,11 @@ int ATI_API_CALL KCL_AGP_Enable(unsigned
-     return -EINVAL;
- }
- 
-+int ATI_API_CALL KCL_AGP_FindCapsRegisters(KCL_PCI_DevHandle dev)
-+{
-+    return -EINVAL;
-+}
-+
- int ATI_API_CALL KCL_AGP_ReadCapsRegisters(KCL_PCI_DevHandle dev, unsigned int *caps)
- {
-     return -EINVAL;

Copied: fglrx-driver/trunk/debian/patches/06-stub-for-agpless-kernel.patch (from rev 1322, fglrx-driver/trunk/debian/patches/06-stub-for-agpless-kernel.diff)
===================================================================
--- fglrx-driver/trunk/debian/patches/06-stub-for-agpless-kernel.patch	                        (rev 0)
+++ fglrx-driver/trunk/debian/patches/06-stub-for-agpless-kernel.patch	2013-12-31 04:38:51 UTC (rev 1323)
@@ -0,0 +1,20 @@
+Description: Add a stub for kernels built without CONFIG_AGP
+Author: Vasiliy Yeremeyev <vayerx at gmail.com>
+Origin: other, https://bugs.gentoo.org/show_bug.cgi?id=435322#c11
+Forwarded: no
+Last-Update: 2012-11-04
+
+--- fglrx-driver-13.1.orig/common/lib/modules/fglrx/build_mod/kcl_agp.c
++++ fglrx-driver-13.1/common/lib/modules/fglrx/build_mod/kcl_agp.c
+@@ -479,6 +479,11 @@ int ATI_API_CALL KCL_AGP_Enable(unsigned
+     return -EINVAL;
+ }
+ 
++int ATI_API_CALL KCL_AGP_FindCapsRegisters(KCL_PCI_DevHandle dev)
++{
++    return -EINVAL;
++}
++
+ int ATI_API_CALL KCL_AGP_ReadCapsRegisters(KCL_PCI_DevHandle dev, unsigned int *caps)
+ {
+     return -EINVAL;

Added: fglrx-driver/trunk/debian/patches/07-linux3.9.patch
===================================================================
--- fglrx-driver/trunk/debian/patches/07-linux3.9.patch	                        (rev 0)
+++ fglrx-driver/trunk/debian/patches/07-linux3.9.patch	2013-12-31 04:38:51 UTC (rev 1323)
@@ -0,0 +1,20 @@
+description: support linux >= 3.9
+origin: arch linux fglrx package
+
+--- a/common/lib/modules/fglrx/build_mod/kcl_acpi.c	2013-12-31 03:39:02.430533231 +0000
++++ b/common/lib/modules/fglrx/build_mod/kcl_acpi.c	2013-12-31 03:39:06.000000000 +0000
+@@ -995,7 +995,11 @@
+ #endif
+     {
+         return KCL_ACPI_ERROR;
+-    }    
++    }
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,1)
++    ((acpi_tbl_table_handler)handler)(hdr);
++#else
+     ((acpi_table_handler)handler)(hdr);
++#endif
+     return KCL_ACPI_OK;
+-}
++}
+\ No newline at end of file

Added: fglrx-driver/trunk/debian/patches/08-linux3.12.patch
===================================================================
--- fglrx-driver/trunk/debian/patches/08-linux3.12.patch	                        (rev 0)
+++ fglrx-driver/trunk/debian/patches/08-linux3.12.patch	2013-12-31 04:38:51 UTC (rev 1323)
@@ -0,0 +1,21 @@
+description: support linux >= 3.12
+origin: http://ati.cchtml.com/show_bug.cgi?id=944
+
+--- fglrx-driver-13.12.orig/common/lib/modules/fglrx/build_mod/firegl_public.c
++++ fglrx-driver-13.12/common/lib/modules/fglrx/build_mod/firegl_public.c
+@@ -1754,11 +1754,15 @@ KCL_TYPE_Pid ATI_API_CALL KCL_GetTgid(vo
+  */
+ KCL_TYPE_Uid ATI_API_CALL KCL_GetEffectiveUid(void)
+ {
++#ifdef CONFIG_UIDGID_STRICT_TYPE_CHECKS
++    return __kuid_val(current_euid());
++#else
+ #ifdef current_euid
+     return current_euid();
+ #else
+     return current->euid;
+ #endif
++#endif
+ }
+ 
+ /** /brief Delay execution for the specified number of microseconds

Added: fglrx-driver/trunk/debian/patches/09-linux3.13.patch
===================================================================
--- fglrx-driver/trunk/debian/patches/09-linux3.13.patch	                        (rev 0)
+++ fglrx-driver/trunk/debian/patches/09-linux3.13.patch	2013-12-31 04:38:51 UTC (rev 1323)
@@ -0,0 +1,16 @@
+description: support linux >= 3.13
+origin: arch linux fglrx package
+
+--- trunk.orig/common/lib/modules/fglrx/build_mod/kcl_acpi.c	2013-12-31 03:06:46.733651137 +0000
++++ trunk/common/lib/modules/fglrx/build_mod/kcl_acpi.c	2013-12-31 03:06:46.729651137 +0000
+@@ -792,7 +792,9 @@
+ unsigned int ATI_API_CALL KCL_ACPI_GetHandles(kcl_match_info_t *pInfo)
+ {
+ #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,12)
+-    #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)
++    #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,0)
++        pInfo->video_handle = pInfo->pcidev->dev.acpi_node.companion;
++    #elif LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)
+         pInfo->video_handle = pInfo->pcidev->dev.acpi_node.handle;
+     #elif LINUX_VERSION_CODE > KERNEL_VERSION(2,6,19)
+         pInfo->video_handle = pInfo->pcidev->dev.archdata.acpi_handle;

Modified: fglrx-driver/trunk/debian/patches/series
===================================================================
--- fglrx-driver/trunk/debian/patches/series	2013-12-31 04:34:04 UTC (rev 1322)
+++ fglrx-driver/trunk/debian/patches/series	2013-12-31 04:38:51 UTC (rev 1323)
@@ -1,3 +1,6 @@
-02-dkms-arch_compat.diff
-03-authatieventsd.sh.diff
-06-stub-for-agpless-kernel.diff
+02-dkms-arch_compat.patch
+03-authatieventsd.sh.patch
+06-stub-for-agpless-kernel.patch
+07-linux3.9.patch
+08-linux3.12.patch
+09-linux3.13.patch




More information about the Pkg-fglrx-devel mailing list