Skip site navigation (1)Skip section navigation (2)
Date:      Fri,  9 Aug 2002 17:05:34 +0900 (JST)
From:      NIIMI Satoshi <sa2c@sa2c.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/41466: Add support for 82801 MCH UP only SKU to sys/pci/agp_intel.c
Message-ID:  <20020809080534.796D2259@berkeley.sa2c.net>

next in thread | raw e-mail | index | archive | help

>Number:         41466
>Category:       kern
>Synopsis:       Add support for 82801 MCH UP only SKU to sys/pci/agp_intel.c
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 09 01:10:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     NIIMI Satoshi
>Release:        FreeBSD 4.6.1-RELEASE-p10 i386
>Organization:
>Environment:
System: FreeBSD berkeley.sa2c.net 4.6.1-RELEASE-p10 FreeBSD 4.6.1-RELEASE-p10 #4: Tue Aug 6 04:14:18 JST 2002 sa2c@berkeley.sa2c.net:/usr/obj/usr/src/sys/SA2C_NET i386


	
>Description:
According to "Specification Update for Intel 82820 MCH Datasheet"
(http://developer.intel.com/design/chipsets/specupdt/290696.htm),
Intel added some Device IDs for 82820 MCH.
	
>How-To-Repeat:
	
>Fix:
Although I tested this patch only on my RELENG_4_6 box (Intel VC820
with MCH those ID is 25018086), I think the same fix should work with
-stable and -current.

For RELENG_4_6 and RELENG_4
Index: agp_intel.c
===================================================================
RCS file: /home/ncvs/src/sys/pci/agp_intel.c,v
retrieving revision 1.1.2.3
diff -u -r1.1.2.3 agp_intel.c
--- agp_intel.c	13 Feb 2002 01:23:22 -0000	1.1.2.3
+++ agp_intel.c	9 Aug 2002 07:05:43 -0000
@@ -76,6 +76,7 @@
  		return ("Intel 82443GX host to AGP bridge");
 
 	case 0x25008086:
+	case 0x25018086:
  		return ("Intel 82820 host to AGP bridge");
 
 	case 0x35758086:
@@ -160,6 +161,7 @@
 		break;
 
 	case 0x25008086: /* i820 */
+	case 0x25018086: /* i820 */
 		pci_write_config(dev, AGP_INTEL_AGPCTRL, 0x0000, 4);
 		pci_write_config(dev, AGP_INTEL_I820_RDCR,
 				 (pci_read_config(dev, AGP_INTEL_I820_RDCR, 1)
@@ -186,6 +188,7 @@
 		break;
 
 	case 0x25008086: /* i820 */
+	case 0x25018086: /* i820 */
 	case 0x1a308086: /* i845 */
 	case 0x25308086: /* i850 */
 	case 0x25318086: /* i860 */
@@ -222,6 +225,7 @@
 				& ~(1 << 9)), 2);
 
 	case 0x25008086: /* i820 */
+	case 0x25018086: /* i820 */
 		printf("%s: set RDCR to %x\n", __FUNCTION__, (unsigned)
 				(pci_read_config(dev, AGP_INTEL_I820_RDCR, 1)
 				& ~(1 << 1)));

For -current
Index: agp_intel.c
===================================================================
RCS file: /home/ncvs/src/sys/pci/agp_intel.c,v
retrieving revision 1.8
diff -u -r1.8 agp_intel.c
--- agp_intel.c	17 Jul 2002 02:52:01 -0000	1.8
+++ agp_intel.c	9 Aug 2002 07:20:50 -0000
@@ -81,6 +81,7 @@
 		return ("Intel 82815 (i815 GMCH) host to PCI bridge");
 
 	case 0x25008086:
+	case 0x25018086:
 		return ("Intel 82820 host to AGP bridge");
 
 	case 0x35758086:
@@ -180,6 +181,7 @@
 		break;
 
 	case 0x25008086: /* i820 */
+	case 0x25018086: /* i820 */
 		pci_write_config(dev, AGP_INTEL_I820_RDCR,
 				 (pci_read_config(dev, AGP_INTEL_I820_RDCR, 1)
 				  | (1 << 1)), 1);
@@ -203,6 +205,7 @@
 		break;
 
 	case 0x25008086: /* i820 */
+	case 0x25018086: /* i820 */
 	case 0x1a308086: /* i845 */
 	case 0x25308086: /* i850 */
 	case 0x25318086: /* i860 */
@@ -239,6 +242,7 @@
 				& ~(1 << 9)), 2);
 
 	case 0x25008086: /* i820 */
+	case 0x25018086: /* i820 */
 		printf("%s: set RDCR to %x\n", __func__, (unsigned)
 				(pci_read_config(dev, AGP_INTEL_I820_RDCR, 1)
 				& ~(1 << 1)));
	

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020809080534.796D2259>