From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Lcjow-0005fk-QB for garchives@archives.gentoo.org; Thu, 26 Feb 2009 17:14:51 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 449DCE01F0; Thu, 26 Feb 2009 17:14:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 05CACE01F0 for ; Thu, 26 Feb 2009 17:14:49 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 97D2864293 for ; Thu, 26 Feb 2009 17:14:48 +0000 (UTC) Received: from je_fro by stork.gentoo.org with local (Exim 4.69) (envelope-from ) id 1Lcjou-0005be-ES for gentoo-commits@lists.gentoo.org; Thu, 26 Feb 2009 17:14:48 +0000 From: "Jeffrey Gardner (je_fro)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, je_fro@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in x11-drivers/ati-drivers/files/8.582: ati-powermode-opt-path-2.patch ati-drivers-xen-8.552.patch X-VCS-Repository: gentoo-x86 X-VCS-Files: ati-powermode-opt-path-2.patch ati-drivers-xen-8.552.patch X-VCS-Directories: x11-drivers/ati-drivers/files/8.582 X-VCS-Committer: je_fro X-VCS-Committer-Name: Jeffrey Gardner Content-Type: text/plain; charset=utf8 Message-Id: Sender: Jeffrey Gardner Date: Thu, 26 Feb 2009 17:14:48 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 7b2522cc-8f16-44dd-b0a5-adfc03fbcda7 X-Archives-Hash: 4e79ca3e519182e68e6a8ca03d668d3d je_fro 09/02/26 17:14:48 Added: ati-powermode-opt-path-2.patch ati-drivers-xen-8.552.patch Log: Latest for testing - let the bloodletting begin :) (Portage version: 2.1.6.7/cvs/Linux x86_64) Revision Changes Path 1.1 x11-drivers/ati-drivers/files/8.582/ati-powermode-op= t-path-2.patch file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/ati-dr= ivers/files/8.582/ati-powermode-opt-path-2.patch?rev=3D1.1&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/ati-dr= ivers/files/8.582/ati-powermode-opt-path-2.patch?rev=3D1.1&content-type=3D= text/plain Index: ati-powermode-opt-path-2.patch =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D diff -ur common.orig/usr/share/doc/fglrx/examples/etc/acpi/ati-powermode.= sh common/usr/share/doc/fglrx/examples/etc/acpi/ati-powermode.sh --- common.orig/usr/share/doc/fglrx/examples/etc/acpi/ati-powermode.sh 20= 06-07-28 04:22:36.000000000 +0100 +++ common/usr/share/doc/fglrx/examples/etc/acpi/ati-powermode.sh 2006-08= -04 12:19:42.000000000 +0100 @@ -4,6 +4,8 @@ # Control script for ACPI lid state and AC adapter state # =20 +aticonfig=3D'/opt/bin/aticonfig' + getXuser() { user=3D`finger| grep -m1 ":$displaynum " | awk '{print $1}'` if [ x"$user" =3D x"" ]; then @@ -47,7 +49,7 @@ done =20 #If PPLIB is enabled -su $user -c '/usr/bin/aticonfig --pplib-cmd=3D"get version"' | grep PPLI= B +su $user -c '$aticonfig --pplib-cmd=3D"get version"' | grep PPLIB if [ $? =3D 0 ]; then echo "Has PPLIB" has_pplib=3D1 @@ -61,15 +63,15 @@ if [ ${lid_closed} -eq 1 -o ${on_dc} -eq 1 ]; then echo "Low power" if [ ${has_pplib} -eq 1 ]; then - su $user -c '/usr/bin/aticonfig --pplib-cmd=3D"notify psrc dc"' + su $user -c '$aticonfig --pplib-cmd=3D"notify psrc dc"' else - su $user -c "/usr/bin/aticonfig --set-powerstate=3D1 --effective= =3Dnow" + su $user -c "$aticonfig --set-powerstate=3D1" fi else echo "high power" if [ ${has_pplib} -eq 1 ]; then - su $user -c '/usr/bin/aticonfig --pplib-cmd=3D"notify psrc ac"' + su $user -c '$aticonfig --pplib-cmd=3D"notify psrc ac"' else - su $user -c "/usr/bin/aticonfig --set-powerstate=3D3 --effective= =3Dnow" + su $user -c "$aticonfig --set-powerstate=3D$($aticonfig --lsp | grep 'd= efault state' | cut -c 3)" fi fi 1.1 x11-drivers/ati-drivers/files/8.582/ati-drivers-xen-= 8.552.patch file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/ati-dr= ivers/files/8.582/ati-drivers-xen-8.552.patch?rev=3D1.1&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/ati-dr= ivers/files/8.582/ati-drivers-xen-8.552.patch?rev=3D1.1&content-type=3Dte= xt/plain Index: ati-drivers-xen-8.552.patch =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- common/lib/modules/fglrx/build_mod/firegl_public.c 2008-12-09 15:17:2= 7.000000000 +0000 +++ common/lib/modules/fglrx/build_mod/firegl_public.c 2008-12-09 15:12:3= 4.000000000 +0000 @@ -31,6 +31,9 @@ #include =20 #if !defined(CONFIG_X86_PC)=20 +#if !defined(CONFIG_X86_PC_XEN) +#if !defined(CONFIG_X86_XEN) +#if !defined(CONFIG_X86_64_XEN) #if !defined(CONFIG_X86_64) #if !defined(CONFIG_X86_VOYAGER) #if !defined(CONFIG_X86_NUMAQ) @@ -47,6 +50,9 @@ #endif #endif #endif +#endif +#endif +#endif =20 /* The dirty-page-tracking patch included in NLD 9 SMP kernels defines * a static inline function that uses a GPL-only symbol in a header --- common/lib/modules/fglrx/build_mod/firegl_public.h 2008-12-09 15:17:2= 7.000000000 +0000 +++ common/lib/modules/fglrx/build_mod/firegl_public.h 2008-12-09 15:15:4= 5.000000000 +0000 @@ -30,9 +30,13 @@ #endif =20 #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,9) - +#ifdef CONFIG_XEN +#define REMAP_PAGE_RANGE_FN io_remap_pfn_range +#define REMAP_PAGE_RANGE_STR "io_remap_pfn_range" +#else #define REMAP_PAGE_RANGE_FN remap_pfn_range #define REMAP_PAGE_RANGE_STR "remap_pfn_range" +#endif #define REMAP_PAGE_RANGE_OFF(offset) ((offset) >> PAGE_SHIFT) =20 #else /* LINUX_VERSION_CODE <=3D KERNEL_VERSION(2,6,9) */ @@ -43,13 +47,21 @@ =20 #endif /* LINUX_VERSION_CODE > KERNEL_VERSION(2,6,9) */ =20 +#ifdef CONFIG_XEN +#define REMAP_PAGE_RANGE(vma,offset) \ + REMAP_PAGE_RANGE_FN((vma), \ + (vma)->vm_start, \ + REMAP_PAGE_RANGE_OFF(offset), \ + (vma)->vm_end - (vma)->vm_start, \ + (vma)->vm_page_prot) +#else #define REMAP_PAGE_RANGE(vma,offset) \ REMAP_PAGE_RANGE_FN(FGL_VMA_API_PASS \ (vma)->vm_start, \ REMAP_PAGE_RANGE_OFF(offset), \ (vma)->vm_end - (vma)->vm_start, \ (vma)->vm_page_prot) - +#endif =20 /* Page table macros */ =20