From nobody@FreeBSD.org  Mon Aug 30 17:43:13 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E733E16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 30 Aug 2004 17:43:12 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id CA81A43D1D
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 30 Aug 2004 17:43:12 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i7UHhCLM042094
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 30 Aug 2004 17:43:12 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i7UHhCr1042034;
	Mon, 30 Aug 2004 17:43:12 GMT
	(envelope-from nobody)
Message-Id: <200408301743.i7UHhCr1042034@www.freebsd.org>
Date: Mon, 30 Aug 2004 17:43:12 GMT
From: "Don L. Belcher" <don@siad.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: pci bus number 3 missing on laptop
X-Send-Pr-Version: www-2.3

>Number:         71158
>Category:       i386
>Synopsis:       [pccbb] pci bus number 3 devices are missing on laptop [5.3-BETA5]
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    remko
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 30 17:50:03 GMT 2004
>Closed-Date:    Fri Jun 15 10:48:34 GMT 2007
>Last-Modified:  Fri Jun 15 10:48:34 GMT 2007
>Originator:     Don L. Belcher
>Release:        
>Organization:
SIAD, Inc
>Environment:
FreeBSD satellite.siad.net 5.3-Current FreeBSD 5.3-Current #5: Sun Aug 1 9:40:08 PDT 2004
don@satellite.siad.net:/utils/don/FreeBSD/obj/user/home/don/FreeBSD-Current/src/sys/GENERIC i386
>Description:
Laptop Gateway Solo 9500
OS pulled in for date=2004.04.24.00.00.00 stops working
OS pulled in for date=2004.04.23.00.00.00 stops works

Missing fxp

When looking for changes on this date I could not find anything.
Apparently I don't know what to look for.

The rest of the dmesgs were the same(if you want the complete dmesg
let me know.


relevant part of dmesg from non working version:

pcib3: <ACPI PCI-PCI bridge> at device 6.0 on pci2
pcib3:   secondary bus     3
pcib3:   subordinate bus   3
pcib3:   I/O decode        0x3000-0x3fff
pcib3:   memory decode     0xf0600000-0xf07fffff
pcib3:   prefetched decode 0xfff00000-0xfffff
ACPI PCI link initial configuration:
\\_SB_.PCI0.LPC0.LNKB irq  10: [ 10] low,level,sharable 3.4.0
\\_SB_.PCI0.LPC0.LNKB irq  10: [ 10] low,level,sharable 3.8.0
ACPI PCI link before setting link priority:
ACPI PCI link before fixup for boot-disabled links:
ACPI PCI link after fixup for boot-disabled links:
ACPI PCI link arbitrated configuration:
\\_SB_.PCI0.LPC0.LNKB irq  10: [ 10] low,level,sharable 3.4.0
\\_SB_.PCI0.LPC0.LNKB irq  10: [ 10] low,level,sharable 3.8.0
pci3: <ACPI PCI bus> on pcib3
pci3: physical bus=3
pcm0: <ESS Technology Allegro-1> port 0x4000-0x40ff irq 5 at device 8.0 on pci2
pcm0: failed to enable memory mapping!


relevant part of dmesg from working version in April:

pcib3: <ACPI PCI-PCI bridge> at device 6.0 on pci2
pcib3:   secondary bus     3
pcib3:   subordinate bus   3
pcib3:   I/O decode        0x3000-0x3fff
pcib3:   memory decode     0xf0600000-0xf07fffff
pcib3:   prefetched decode 0xfff00000-0xfffff
---- initial configuration ------------------------
\\_SB_.PCI0.LPC0.LNKB irq  10: [ 10] low,level,sharable 3.4.0
\\_SB_.PCI0.LPC0.LNKB irq  10: [ 10] low,level,sharable 3.8.0
---- before setting priority for links ------------
---- before fixup boot-disabled links -------------
---- after fixup boot-disabled links --------------
---- arbitrated configuration ---------------------
\\_SB_.PCI0.LPC0.LNKB irq  10: [ 10] low,level,sharable 3.4.0
\\_SB_.PCI0.LPC0.LNKB irq  10: [ 10] low,level,sharable 3.8.0
pci3: <ACPI PCI bus> on pcib3
pci3: physical bus=3
     map[10]: type 1, range 32, base f0600000, size 12, enabled
     map[14]: type 4, range 32, base 00003400, size  6, enabled
     map[18]: type 1, range 32, base f0700000, size 20, enabled
pcib3: matched entry for 3.4.INTA (src \\_SB_.PCI0.LPC0.LNKB)
pcib3: slot 4 INTA is routed to irq 10
found-> vendor=0x8086, dev=0x1229, revid=0x08
     bus=3, slot=4, func=0
     class=02-00-00, hdrtype=0x00, mfdev=0
     cmdreg=0x0013, statreg=0x0290, cachelnsz=8 (dwords)
     lattimer=0x42 (1980 ns), mingnt=0x08 (2000 ns), maxlat=0x38 (14000 ns)
     intpin=a, irq=10
     powerspec 2  supports D0 D1 D2 D3  current D0
     map[10]: type 1, range 32, base f0601000, size  8, enabled
     map[14]: type 4, range 32, base 00003800, size  3, enabled
     map[18]: type 4, range 32, base 00003000, size  8, enabled
pcib3: matched entry for 3.8.INTA (src \\_SB_.PCI0.LPC0.LNKB)
pcib3: slot 8 INTA is routed to irq 10
found-> vendor=0x11c1, dev=0x0448, revid=0x01
     bus=3, slot=8, func=0
     class=07-80-00, hdrtype=0x00, mfdev=0
     cmdreg=0x0003, statreg=0x0290, cachelnsz=0 (dwords)
     lattimer=0x00 (0 ns), mingnt=0xfc (63000 ns), maxlat=0x0e (3500 ns)
     intpin=a, irq=10
     powerspec 2  supports D0 D2 D3  current D0
fxp0: <Intel 82559 Pro/100 Ethernet> port 0x3400-0x343f mem 0xf0700000-0xf07fffff,0xf0600000-0xf0600fff irq 10 at device 4.0 on
pci3
pcib3: device fxp0 requested decoded memory range 0xf0600000-0xf0600fff
pcib2: device fxp0 requested decoded memory range 0xf0600000-0xf0600fff
fxp0: using memory space register mapping
fxp0: PCI IDs: 8086 1229 1668 1100 0008
fxp0: Dynamic Standby mode is disabled
miibus0: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: bpf attached

>How-To-Repeat:
build kernel and boot
>Fix:
      
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Fri Sep 24 05:30:34 GMT 2004 
State-Changed-Why:  
Does this problem persist with BETA5? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=71158 
State-Changed-From-To: feedback->open 
State-Changed-By: linimon 
State-Changed-When: Mon Sep 27 15:37:23 GMT 2004 
State-Changed-Why:  
Submitter states that problem persists on BETA5. 

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

From: "Don L. Belcher" <don@siad.net>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: i386/71158: pci bus number 3 devices are missing on laptop [5.3-BETA5]
Date: Sun, 17 Oct 2004 13:09:31 -0700

 By removing this change from 5.3-stable built on Oct. 17 2004 fixes the 
 problem.
 
 
       Diff for /src/sys/dev/pccbb/pccbb.c between version 1.108 and 1.109
 
 Line 683  cbb_print_config(device_t dev)
 
 	
 Line 683  cbb_print_config(device_t dev)
 
  static int 	 static int
  cbb_attach(device_t brdev) 	 cbb_attach(device_t brdev)
  { 	 {
   	         static int curr_bus_number = 1; /* XXX EVILE BAD (see below) */
          struct cbb_softc *sc = (struct cbb_softc 
 *)device_get_softc(brdev); 	         struct cbb_softc *sc = (struct 
 cbb_softc *)device_get_softc(brdev);
          int rid; 	         int rid, bus, pribus;
   	         device_t parent;
   	 
   	         parent = device_get_parent(brdev);
          mtx_init(&sc->mtx, device_get_nameunit(brdev), "cbb", 
 MTX_DEF); 	         mtx_init(&sc->mtx, device_get_nameunit(brdev), 
 "cbb", MTX_DEF);
          cv_init(&sc->cv, "cbb cv"); 	         cv_init(&sc->cv, "cbb cv");
          sc->chipset = cbb_chipset(pci_get_devid(brdev), NULL); 	        
  sc->chipset = cbb_chipset(pci_get_devid(brdev), NULL);
 Line 758  cbb_attach(device_t brdev)
 
 	
 Line 761  cbb_attach(device_t brdev)
 
          sc->exca.flags |= EXCA_HAS_MEMREG_WIN; 	         sc->exca.flags 
 |= EXCA_HAS_MEMREG_WIN;
          sc->exca.chipset = EXCA_CARDBUS; 	         sc->exca.chipset = 
 EXCA_CARDBUS;
          cbb_chipinit(sc); 	         cbb_chipinit(sc);
   	 
   	         /*
   	          * This is a gross hack.  We should be scanning the entire pci
   	          * tree, assigning bus numbers in a way such that we (1) can
   	          * reserve 1 extra bus just in case and (2) all sub busses
   	          * are in an appropriate range.
   	          */
   	         bus = pci_read_config(brdev, PCIR_SECBUS_2, 1);
   	         pribus = pcib_get_bus(parent);
   	         DEVPRINTF((brdev, "Secondary bus is %d\n", bus));
   	         if (bus == 0) {
   	                 if (curr_bus_number < pribus)
   	                         curr_bus_number = pribus + 1;
   	                 if (pci_read_config(brdev, PCIR_PRIBUS_2, 1) != 
 pribus) {
   	                         DEVPRINTF((brdev, "Setting primary bus to 
 %d\n", pribus));
   	                         pci_write_config(brdev, PCIR_PRIBUS_2, 
 pribus, 1);
   	                 }
   	                 bus = curr_bus_number;
   	                 DEVPRINTF((brdev, "Secondary bus set to %d subbus 
 %d\n", bus,
   	                     bus + 1));
   	                 sc->secbus = bus;
   	                 sc->subbus = bus + 1;
   	                 pci_write_config(brdev, PCIR_SECBUS_2, bus, 1);
   	                 pci_write_config(brdev, PCIR_SUBBUS_2, bus + 1, 1);
   	                 curr_bus_number += 2;
   	         }
   	 
          /* attach children */ 	         /* attach children */
          sc->cbdev = device_add_child(brdev, "cardbus", -1); 	        
  sc->cbdev = device_add_child(brdev, "cardbus", -1);
 
 
 
State-Changed-From-To: open->feedback 
State-Changed-By: remko 
State-Changed-When: Mon Sep 11 13:34:59 UTC 2006 
State-Changed-Why:  
Hello, 

Can you tell me whether the problem still persists in more 
recent freebsd versions like 6.1? 


Responsible-Changed-From-To: freebsd-i386->remko 
Responsible-Changed-By: remko 
Responsible-Changed-When: Mon Sep 11 13:34:59 UTC 2006 
Responsible-Changed-Why:  
grab the pr 

http://www.freebsd.org/cgi/query-pr.cgi?pr=71158 
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Fri Jun 15 10:47:44 UTC 2007 
State-Changed-Why:  
Feedback timeout (> 6 months). 

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