NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/42906: patches to add support for Intel G41 motherboard and video



>Number:         42906
>Category:       kern
>Synopsis:       patches to add support for Intel G41 motherboard and video
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 01 19:30:00 +0000 2010
>Originator:     Henry Bent
>Release:        5.99.24
>Organization:
>Environment:
NetBSD aelfric 5.99.24 NetBSD 5.99.24 (AELFRIC_QUAD) #6: Mon Mar  1 13:11:39 
EST 2010  root@aelfric:/usr/obj/src-current/sys/arch/i386/compile/AELFRIC_QUAD 
i386
>Description:
-current does not identify the Intel G41 chipset and as such doesn't provide 
proper AGP support for onboard video, nor proper support in i915drm.

>How-To-Repeat:
Boot -current on an Intel G41 chipset motherboard.  Note that xf86-video-intel 
does not work, as it needs AGP support.
>Fix:
Here are some patches to add the proper IDs, based on patches to netbsd-5 by 
Brad DuPlessis <bradd%cat.co.za@localhost>.

--- sys/arch/x86/pci/pchb.c.orig        2010-03-01 14:21:12.000000000 -0500
+++ sys/arch/x86/pci/pchb.c     2010-03-01 14:22:30.000000000 -0500
@@ -386,6 +386,7 @@
                case PCI_PRODUCT_INTEL_82IGD_E_HB:
                case PCI_PRODUCT_INTEL_82Q45_HB:
                case PCI_PRODUCT_INTEL_82G45_HB:
+               case PCI_PRODUCT_INTEL_82G41_HB:
                        /*
                         * The host bridge is either in GFX mode (internal
                         * graphics) or in AGP mode. In GFX mode, we pretend

--- sys/dev/pci/agp.c.orig      2010-03-01 14:24:24.000000000 -0500
+++ sys/dev/pci/agp.c   2010-03-01 14:25:55.000000000 -0500
@@ -192,6 +192,8 @@
          NULL,                 agp_i810_attach },
        { PCI_VENDOR_INTEL,     PCI_PRODUCT_INTEL_82G45_HB,
          NULL,                 agp_i810_attach },
+       { PCI_VENDOR_INTEL,     PCI_PRODUCT_INTEL_82G41_HB,
+         NULL,                 agp_i810_attach },
 #endif

 #if NAGP_INTEL > 0

--- sys/dev/pci/agp_i810.c.orig 2010-03-01 14:24:24.000000000 -0500
+++ sys/dev/pci/agp_i810.c      2010-03-01 14:26:48.000000000 -0500
@@ -191,6 +191,7 @@
        case PCI_PRODUCT_INTEL_82IGD_E_IGD:
        case PCI_PRODUCT_INTEL_82Q45_IGD:
        case PCI_PRODUCT_INTEL_82G45_IGD:
+       case PCI_PRODUCT_INTEL_82G41_IGD:
                return (1);
        }

@@ -299,6 +300,7 @@
        case PCI_PRODUCT_INTEL_82IGD_E_IGD:
        case PCI_PRODUCT_INTEL_82Q45_IGD:
        case PCI_PRODUCT_INTEL_82G45_IGD:
+       case PCI_PRODUCT_INTEL_82G41_IGD:
                isc->chiptype = CHIP_G4X;
                break;
        }

--- sys/dev/pci/pcidevs.orig    2010-03-01 14:24:24.000000000 -0500
+++ sys/dev/pci/pcidevs 2010-03-01 14:28:17.000000000 -0500
@@ -2708,6 +2708,8 @@
 product INTEL 82Q45_IGD                0x2e12  82Q45 Integrated Graphics Device
 product INTEL 82G45_HB         0x2e20  82G45 Host Bridge
 product INTEL 82G45_IGD                0x2e22  82G45 Integrated Graphics Device
+product INTEL 82G41_HB         0x2e30  82G41 Host Bridge
+product INTEL 82G41_IGD                0x2e32  82G41 Integrated Graphics Device
 product INTEL 31244            0x3200  31244 Serial ATA Controller
 product INTEL 82855PM_DDR      0x3340  82855PM MCH Host Controller
 product INTEL 82855PM_AGP      0x3341  82855PM Host-AGP Bridge



Home | Main Index | Thread Index | Old Index