From nobody@FreeBSD.org  Thu Jun 24 09:25:14 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id EBEF4106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 24 Jun 2010 09:25:13 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id DACC28FC1D
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 24 Jun 2010 09:25:13 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o5O9PDhK079754
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 24 Jun 2010 09:25:13 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o5O9PDXe079753;
	Thu, 24 Jun 2010 09:25:13 GMT
	(envelope-from nobody)
Message-Id: <201006240925.o5O9PDXe079753@www.freebsd.org>
Date: Thu, 24 Jun 2010 09:25:13 GMT
From: Guoliang Wang <wglclever@126.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Freebsd 7.2 or 8.0 does not recognize, 4.11 can identify the hardware device
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         148108
>Category:       kern
>Synopsis:       [bge] FreeBSD 7.2 or 8.0 does not recognize, 4.11 can identify the hardware device
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    jhb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 24 09:30:03 UTC 2010
>Closed-Date:    Thu Dec 02 16:08:50 UTC 2010
>Last-Modified:  Thu Dec 02 16:08:50 UTC 2010
>Originator:     Guoliang Wang
>Release:        7.2 or  8.0
>Organization:
SNgxt
>Environment:
8.0 release
>Description:
Please help, ServWorks chipset BCOM 5704 PCI-X bridge on the card is not
recognized in FreeBSD8.

The network card in XP and LINUX ROS / FREEBSD 4.11 (6.2 does not
recognize) the system can automatically recognize and use

Card in freebsd 4.11 bge driver shown below, and normal in 6.2/7.2/8.0
on to the device is not recognized

INTEL 82540em normally, BCM5704 PCI-X bridge to the GC-SL chipset

pciconf -lv 

hostb0@pci0:0:0:0:	class=0x060000 card=0x00000000 chip=0x00171166 rev=0x32 hdr=0x00
    vendor     = 'ServerWorks (Was: Reliance Computer Corp)'
    device     = 'an'
    class      = bridge
    subclass   = HOST-PCI
hostb1@pci0:0:0:1:	class=0x060000 card=0x00000000 chip=0x00171166 rev=0x00 hdr=0x00
    vendor     = 'ServerWorks (Was: Reliance Computer Corp)'
    device     = 'CMIC-SL'
    class      = bridge
    subclass   = HOST-PCI
em0@pci0:0:2:0:	class=0x020000 card=0x10768086 chip=0x10768086 rev=0x05 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Gigabit Ethernet Controller (82541EI)'
    class      = network
    subclass   = ethernet
vgapci0@pci0:0:4:0:	class=0x030000 card=0x89015333 chip=0x89015333 rev=0x16 hdr=0x00
    vendor     = 'S3 Graphics Co., Ltd'
    device     = 'S3 trio64uv+ for windows xp (pciven_5333dev_8C2E&SUBSYS_00011179&REV_054&74C6)'
    class      = display
    subclass   = VGA
isab0@pci0:0:15:0:	class=0x060100 card=0x02011166 chip=0x02011166 rev=0x93 hdr=0x00
    vendor     = 'ServerWorks (Was: Reliance Computer Corp)'
    device     = 'CSB5 PCI to ISA Bridge'
    class      = bridge
    subclass   = PCI-ISA
atapci0@pci0:0:15:1:	class=0x01018a card=0x02121166 chip=0x02121166 rev=0x93 hdr=0x00
    vendor     = 'ServerWorks (Was: Reliance Computer Corp)'
    device     = 'CSB5 PCI EIDE Controller'
    class      = mass storage
    subclass   = ATA
ohci0@pci0:0:15:2:	class=0x0c0310 card=0x02201166 chip=0x02201166 rev=0x05 hdr=0x00
    vendor     = 'ServerWorks (Was: Reliance Computer Corp)'
    device     = 'OpenHCI Compliant USB Controller (OSB4)'
    class      = serial bus
    subclass   = USB
hostb2@pci0:0:15:3:	class=0x060000 card=0x02301166 chip=0x02251166 rev=0x00 hdr=0x00
    vendor     = 'ServerWorks (Was: Reliance Computer Corp)'
    device     = 'PCI Bridge (CSB5)'
    class      = bridge
    subclass   = HOST-PCI
hostb3@pci0:0:16:0:	class=0x060000 card=0x00000000 chip=0x01101166 rev=0x12 hdr=0x00
    vendor     = 'ServerWorks (Was: Reliance Computer Corp)'
    device     = 'I/O Bridge with Gigabit Ethernet ServerWorks Grand Champion (CIOB-E)'
    class      = bridge
    subclass   = HOST-PCI
hostb4@pci0:0:16:2:	class=0x060000 card=0x00000000 chip=0x01101166 rev=0x12 hdr=0x00
    vendor     = 'ServerWorks (Was: Reliance Computer Corp)'
    device     = 'I/O Bridge with Gigabit Ethernet ServerWorks Grand Champion (CIOB-E)'
    class      = bridge
    subclass   = HOST-PCI

>How-To-Repeat:

>Fix:
I judge may be more than 4.11 BSD bridge device driver is changed, leading to SERVERWOKS PCI-X bridge chip is not working properly 


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Jun 28 04:30:15 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=148108 
Responsible-Changed-From-To: freebsd-net->yongari 
Responsible-Changed-By: andre 
Responsible-Changed-When: Mon Aug 23 14:29:48 UTC 2010 
Responsible-Changed-Why:  
Over to expert. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=148108 
Responsible-Changed-From-To: yongari->jhb 
Responsible-Changed-By: yongari 
Responsible-Changed-When: Tue Sep 28 02:08:14 UTC 2010 
Responsible-Changed-Why:  
It does not look like bge(4) issue. Over to pci(4) expert. 
John, would you give a look? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=148108 

From: John Baldwin <jhb@freebsd.org>
To: bug-followup@freebsd.org,
 wglclever@126.com
Cc:  
Subject: Re: kern/148108: [bge] FreeBSD 7.2 or 8.0 does not recognize, 4.11 can identify the hardware device
Date: Tue, 28 Sep 2010 11:33:02 -0400

 Please supply a verbose dmesg (boot -v) for both 4.11 and 7.x+ so I can see 
 how 4.11 is finding the bridge.  Thanks.
 
 -- 
 John Baldwin

From: John Baldwin <jhb@freebsd.org>
To: bug-followup@freebsd.org,
 wglclever@126.com
Cc:  
Subject: Re: kern/148108: [bge] FreeBSD 7.2 or 8.0 does not recognize, 4.11 can identify the hardware device
Date: Tue, 12 Oct 2010 17:38:31 -0400

 Do you have ACPI disabled (booting safe mode, built an i386 kernel w/o no 
 modules, so no acpi.ko, etc.)?  If so, try enabling ACPI.  Without ACPI 
 FreeBSD may not see all of the PCI buses in the system.
 
 -- 
 John Baldwin
State-Changed-From-To: open->patched 
State-Changed-By: jhb 
State-Changed-When: Thu Nov 25 15:42:54 UTC 2010 
State-Changed-Why:  
Fix committed to HEAD, will MFC to 7 and 8 in a week. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=148108 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/148108: commit references a PR
Date: Thu, 25 Nov 2010 15:42:39 +0000 (UTC)

 Author: jhb
 Date: Thu Nov 25 15:42:33 2010
 New Revision: 215820
 URL: http://svn.freebsd.org/changeset/base/215820
 
 Log:
   Add device IDs for two more ServerWorks Host-PCI bridges so that we can
   read their starting PCI bus number for older systems that do not support
   ACPI (or have a broken _BBN method).
   
   PR:		kern/148108
   MFC after:	1 week
 
 Modified:
   head/sys/dev/pci/pci_pci.c
   head/sys/i386/pci/pci_bus.c
 
 Modified: head/sys/dev/pci/pci_pci.c
 ==============================================================================
 --- head/sys/dev/pci/pci_pci.c	Thu Nov 25 15:41:34 2010	(r215819)
 +++ head/sys/dev/pci/pci_pci.c	Thu Nov 25 15:42:33 2010	(r215820)
 @@ -860,7 +860,9 @@ host_pcib_get_busno(pci_read_config_fn r
  	case 0x00171166:
  	case 0x01011166:
  	case 0x010f1014:
 +	case 0x01101166:
  	case 0x02011166:
 +	case 0x02251166:
  	case 0x03021014:
  		*busnum = read_config(bus, slot, func, 0x44, 1);
  		break;
 
 Modified: head/sys/i386/pci/pci_bus.c
 ==============================================================================
 --- head/sys/i386/pci/pci_bus.c	Thu Nov 25 15:41:34 2010	(r215819)
 +++ head/sys/i386/pci/pci_bus.c	Thu Nov 25 15:42:33 2010	(r215820)
 @@ -204,6 +204,9 @@ legacy_pcib_is_host_bridge(int bus, int 
  			break;
  		}
  		break;
 +	case 0x1A308086:
 +		s = "Intel 82845 Host to PCI bridge";
 +		break;
  
  		/* AMD -- vendor 0x1022 */
  	case 0x30001022:
 @@ -304,6 +307,8 @@ legacy_pcib_is_host_bridge(int bus, int 
  	case 0x00171166:
  		/* FALLTHROUGH */
  	case 0x01011166:
 +	case 0x01101166:
 +	case 0x02251166:
  		s = "ServerWorks host to PCI bridge(unknown chipset)";
  		*busnum = legacy_pcib_read_config(0, bus, slot, func, 0x44, 1);
  		break;
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: jhb 
State-Changed-When: Thu Dec 2 16:08:35 UTC 2010 
State-Changed-Why:  
Merged to 7 and 8. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=148108 
>Unformatted:
