[mythtv-users] agpgart with kernel 2.6.24

cal cal at graggrag.com
Fri Mar 28 04:47:42 UTC 2008


Greg Grotsky wrote:
> [ ... ]
>
> So I went back to my kernel source and I cannot deselect the agpgart!  
> It get automatically selected when I add PCI support.  I had this 
> problem long ago and I was able to solve it by putting 'Option "NvAGP" 
> "1"' in my xorg.conf and 'agp=off' in my kernel line in grub, they are 
> both still there but 'agp=off' no longer disables the agpgart from 
> loading.  How can I fix this?  Am I doomed to use 2.6.23.xx 
> indefinitely?  Because it honors the 'agp=off' flag.

Here's a little patch I use in my kernels to solve this problem.


Index: linux-2.6.24.4/arch/x86/Kconfig
===================================================================
--- linux-2.6.24.4.orig/arch/x86/Kconfig        2008-03-25 05:49:18.000000000 +1100
+++ linux-2.6.24.4/arch/x86/Kconfig     2008-03-25 09:09:21.081651320 +1100
@@ -406,7 +406,7 @@
 # Mark as embedded because too many people got it wrong.
 # The code disables itself when not needed.
 config GART_IOMMU
-       bool "GART IOMMU support" if EMBEDDED
+       bool "GART IOMMU support"
        default y
        select SWIOTLB
        select AGP


With that, I get to choose (again!) whether kernel agp gets built. I leave it out,
and NvAGP works happily. Having changed to "manual mode", you do need to use
sensible choices for the other GART IOMMU kernel options (in "Processor type and
features" I believe). On mine, both "GART IOMMU support" and "IBM Calgary IOMMU
support" are off.

Cheers.



More information about the mythtv-users mailing list