From nobody@FreeBSD.org  Mon Nov  7 00:52:32 2005
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 D117A16A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  7 Nov 2005 00:52:32 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6D68543D45
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  7 Nov 2005 00:52:32 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id jA70qWwE097767
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 7 Nov 2005 00:52:32 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id jA70qW8S097766;
	Mon, 7 Nov 2005 00:52:32 GMT
	(envelope-from nobody)
Message-Id: <200511070052.jA70qW8S097766@www.freebsd.org>
Date: Mon, 7 Nov 2005 00:52:32 GMT
From: Bryan Blackburn <withay@pobox.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Revision 1.31 to if_fe_pccard.c breaks NE200T functionality
X-Send-Pr-Version: www-2.3

>Number:         88576
>Category:       kern
>Synopsis:       [fe] revision 1.31 to if_fe_pccard.c breaks NE200T functionality
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    imp
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 07 01:00:24 GMT 2005
>Closed-Date:    Sun May 13 04:31:49 GMT 2007
>Last-Modified:  Sun May 13 04:31:49 GMT 2007
>Originator:     Bryan Blackburn
>Release:        7.0-CURRENT (2005-11-05)
>Organization:
>Environment:
FreeBSD midnight 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sat Nov  5 21:47:24 MST 2005     root@midnight:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
Booted 7.0-CURRENT as of 2005-11-05 (GENERIC but with WITNESS and INVARIANT
disabled), and the kernel reported my network card as

"pccard0: <unknown card> (manufacturer=0x0004, product=0x0004, function_type=6) at function 0"

The card has been working fine for some time otherwise, so after some
looking I found the 1.31 revision of /src/sys/dev/fe/if_fe_pccard.c,
backed out that change, and the new kernel sees the card properly (fe1
for the card is created fine, devd configures it without issue).
>How-To-Repeat:
Boot system with the 1.31 revision of /src/sys/dev/fe/if_fe_pccard.c
compiled into the kernel with the NE200T plugged into PC card slot.
>Fix:
Back out 1.31 revision of /src/sys/dev/fe/if_fe_pccard.c, rebuild kernel,
all is good.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->imp 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Nov 7 04:47:17 GMT 2005 
Responsible-Changed-Why:  
imp did the commit in question, perhaps he can provide a clue here? 

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

From: Bryan Blackburn <withay@pobox.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/88576: [fe] revision 1.31 to if_fe_pccard.c breaks NE200T functionality
Date: Tue, 8 Nov 2005 21:40:54 -0700

 Forgot some important bits for this issue: machine is a Toshiba  
 1625CDT.  Below are the dmesg outputs from both the from-cvs non- 
 working kernel, and the one with the if_fe_pccard.c update removed:
 
 Non-working:
 Copyright (c) 1992-2005 The FreeBSD Project.
 Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
 	The Regents of the University of California. All rights reserved.
 FreeBSD 7.0-CURRENT #0: Sat Nov  5 21:47:24 MST 2005
      root@midnight:/usr/obj/usr/src/sys/GENERIC
 Timecounter "i8254" frequency 1193182 Hz quality 0
 CPU: AMD-K6(tm) 3D processor (474.89-MHz 586-class CPU)
    Origin = "AuthenticAMD"  Id = 0x58c  Stepping = 12
    Features=0x8021bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,PGE,MMX>
    AMD Features=0x80000800<SYSCALL,3DNow>
 real memory  = 201261056 (191 MB)
 avail memory = 187240448 (178 MB)
 K6-family MTRR support enabled (2 registers)
 npx0: [FAST]
 npx0: <math processor> on motherboard
 npx0: INT 16 interface
 acpi0: <PTLTD   RSDT> on motherboard
 acpi0: Power Button (fixed)
 pci_link0: <ACPI PCI Link LNK1> irq 11 on acpi0
 pci_link1: <ACPI PCI Link LNK2> irq 11 on acpi0
 pci_link2: <ACPI PCI Link LNK3> irq 5 on acpi0
 pci_link3: <ACPI PCI Link LNK4> irq 10 on acpi0
 pci_link4: <ACPI PCI Link LNK5> irq 9 on acpi0
 acpi_ec0: <Embedded Controller: GPE 0x6> port 0x62,0x66 on acpi0
 Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
 cpu0: <ACPI CPU> on acpi0
 acpi_throttle0: <ACPI CPU Throttling> on cpu0
 acpi_lid0: <Control Method Lid Switch> on acpi0
 battery0: <ACPI Control Method Battery> on acpi0
 acpi_acad0: <AC Adapter> on acpi0
 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
 pci0: <ACPI PCI bus> on pcib0
 agp0: <Ali M1541 host to AGP bridge> mem 0xe0000000-0xe3ffffff at  
 device 0.0 on pci0
 pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
 pci1: <ACPI PCI bus> on pcib1
 pci1: <display, VGA> at device 0.0 (no driver attached)
 cbb0: <TI1225 PCI-CardBus Bridge> mem 0x80000000-0x80000fff irq 11 at  
 device 4.0 on pci0
 cardbus0: <CardBus bus> on cbb0
 pccard0: <16-bit PCCard bus> on cbb0
 cbb1: <TI1225 PCI-CardBus Bridge> mem 0x80001000-0x80001fff irq 11 at  
 device 4.1 on pci0
 cardbus1: <CardBus bus> on cbb1
 pccard1: <16-bit PCCard bus> on cbb1
 isab0: <PCI-ISA bridge> at device 7.0 on pci0
 isa0: <ISA bus> on isab0
 pci0: <multimedia, audio> at device 8.0 (no driver attached)
 atapci0: <AcerLabs M5229 UDMA33 controller> port  
 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfcf0-0xfcff at device 15.0 on pci0
 ata0: <ATA channel 0> on atapci0
 ata1: <ATA channel 1> on atapci0
 pci0: <simple comms> at device 16.0 (no driver attached)
 pci0: <bridge> at device 17.0 (no driver attached)
 ohci0: <AcerLabs M5237 (Aladdin-V) USB controller> mem  
 0xfedde000-0xfeddefff irq 9 at device 19.0 on pci0
 ohci0: [GIANT-LOCKED]
 usb0: OHCI version 1.0, legacy support
 usb0: <AcerLabs M5237 (Aladdin-V) USB controller> on ohci0
 usb0: USB revision 1.0
 uhub0: AcerLabs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub0: 2 ports with 2 removable, self powered
 acpi_tz0: <Thermal Zone> on acpi0
 atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
 atkbd0: <AT Keyboard> irq 1 on atkbdc0
 kbd0 at atkbd0
 atkbd0: [GIANT-LOCKED]
 psm0: <PS/2 Mouse> irq 12 on atkbdc0
 psm0: [GIANT-LOCKED]
 psm0: model Generic PS/2 mouse, device ID 0
 ppc0: <ECP parallel printer port> port 0x378-0x37f,0x778-0x77f irq 7  
 drq 1 on acpi0
 ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode
 ppc0: FIFO with 16/16/8 bytes threshold
 ppbus0: <Parallel port bus> on ppc0
 plip0: <PLIP network interface> on ppbus0
 lpt0: <Printer> on ppbus0
 lpt0: Interrupt-driven port
 ppi0: <Parallel I/O> on ppbus0
 sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10  
 on acpi0
 sio0: type 16550A
 fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on  
 acpi0
 fdc0: [FAST]
 fd0: <1440-KB 3.5" drive> on fdc0 drive 0
 pmtimer0 on isa0
 orm0: <ISA Option ROM> at iomem 0xc0000-0xcb7ff pnpid ORM0000 on isa0
 sc0: <System console> at flags 0x100 on isa0
 sc0: VGA <16 virtual consoles, flags=0x300>
 sio1: configured irq 3 not in bitmap of probed irqs 0
 sio1: port may not be enabled
 vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on  
 isa0
 Timecounter "TSC" frequency 474887586 Hz quality 800
 Timecounters tick every 1.000 msec
 pccard0: <unknown card> (manufacturer=0x0004, product=0x0004,  
 function_type=6) at function 0
 pccard0:    CIS info: EAGLE Technology, NE200 ETHERNET LAN MBH10302   
 04,   07
 ad0: 6194MB <FUJITSU MHH2064AT B819> at ata0-master UDMA33
 acd0: CDROM <SR242S/z04G> at ata1-master PIO4
 Trying to mount root from ufs:/dev/ad0s3a
 
 
 Working:
 Copyright (c) 1992-2005 The FreeBSD Project.
 Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
 	The Regents of the University of California. All rights reserved.
 FreeBSD 7.0-CURRENT #1: Sun Nov  6 15:19:57 MST 2005
      root@midnight:/usr/obj/usr/src/sys/GENERIC
 Timecounter "i8254" frequency 1193182 Hz quality 0
 CPU: AMD-K6(tm) 3D processor (474.89-MHz 586-class CPU)
    Origin = "AuthenticAMD"  Id = 0x58c  Stepping = 12
    Features=0x8021bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,PGE,MMX>
    AMD Features=0x80000800<SYSCALL,3DNow>
 real memory  = 201261056 (191 MB)
 avail memory = 187240448 (178 MB)
 K6-family MTRR support enabled (2 registers)
 npx0: [FAST]
 npx0: <math processor> on motherboard
 npx0: INT 16 interface
 acpi0: <PTLTD   RSDT> on motherboard
 acpi0: Power Button (fixed)
 pci_link0: <ACPI PCI Link LNK1> irq 11 on acpi0
 pci_link1: <ACPI PCI Link LNK2> irq 11 on acpi0
 pci_link2: <ACPI PCI Link LNK3> irq 5 on acpi0
 pci_link3: <ACPI PCI Link LNK4> irq 10 on acpi0
 pci_link4: <ACPI PCI Link LNK5> irq 9 on acpi0
 acpi_ec0: <Embedded Controller: GPE 0x6> port 0x62,0x66 on acpi0
 Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
 cpu0: <ACPI CPU> on acpi0
 acpi_throttle0: <ACPI CPU Throttling> on cpu0
 acpi_lid0: <Control Method Lid Switch> on acpi0
 battery0: <ACPI Control Method Battery> on acpi0
 acpi_acad0: <AC Adapter> on acpi0
 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
 pci0: <ACPI PCI bus> on pcib0
 agp0: <Ali M1541 host to AGP bridge> mem 0xe0000000-0xe3ffffff at  
 device 0.0 on pci0
 pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
 pci1: <ACPI PCI bus> on pcib1
 pci1: <display, VGA> at device 0.0 (no driver attached)
 cbb0: <TI1225 PCI-CardBus Bridge> irq 11 at device 4.0 on pci0
 cardbus0: <CardBus bus> on cbb0
 pccard0: <16-bit PCCard bus> on cbb0
 cbb1: <TI1225 PCI-CardBus Bridge> irq 11 at device 4.1 on pci0
 cardbus1: <CardBus bus> on cbb1
 pccard1: <16-bit PCCard bus> on cbb1
 isab0: <PCI-ISA bridge> at device 7.0 on pci0
 isa0: <ISA bus> on isab0
 pci0: <multimedia, audio> at device 8.0 (no driver attached)
 atapci0: <AcerLabs M5229 UDMA33 controller> port  
 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfcf0-0xfcff at device 15.0 on pci0
 ata0: <ATA channel 0> on atapci0
 ata1: <ATA channel 1> on atapci0
 pci0: <simple comms> at device 16.0 (no driver attached)
 pci0: <bridge> at device 17.0 (no driver attached)
 ohci0: <AcerLabs M5237 (Aladdin-V) USB controller> mem  
 0xfedde000-0xfeddefff irq 9 at device 19.0 on pci0
 ohci0: [GIANT-LOCKED]
 usb0: OHCI version 1.0, legacy support
 usb0: <AcerLabs M5237 (Aladdin-V) USB controller> on ohci0
 usb0: USB revision 1.0
 uhub0: AcerLabs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub0: 2 ports with 2 removable, self powered
 acpi_tz0: <Thermal Zone> on acpi0
 atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
 atkbd0: <AT Keyboard> irq 1 on atkbdc0
 kbd0 at atkbd0
 atkbd0: [GIANT-LOCKED]
 psm0: <PS/2 Mouse> irq 12 on atkbdc0
 psm0: [GIANT-LOCKED]
 psm0: model Generic PS/2 mouse, device ID 0
 ppc0: <ECP parallel printer port> port 0x378-0x37f,0x778-0x77f irq 7  
 drq 1 on acpi0
 ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode
 ppc0: FIFO with 16/16/8 bytes threshold
 ppbus0: <Parallel port bus> on ppc0
 plip0: <PLIP network interface> on ppbus0
 lpt0: <Printer> on ppbus0
 lpt0: Interrupt-driven port
 ppi0: <Parallel I/O> on ppbus0
 sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10  
 on acpi0
 sio0: type 16550A
 fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on  
 acpi0
 fdc0: [FAST]
 fd0: <1440-KB 3.5" drive> on fdc0 drive 0
 pmtimer0 on isa0
 orm0: <ISA Option ROM> at iomem 0xc0000-0xcb7ff pnpid ORM0000 on isa0
 sc0: <System console> at flags 0x100 on isa0
 sc0: VGA <16 virtual consoles, flags=0x300>
 sio1: configured irq 3 not in bitmap of probed irqs 0x1
 sio1: port may not be enabled
 vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on  
 isa0
 Timecounter "TSC" frequency 474887572 Hz quality 800
 Timecounters tick every 1.000 msec
 fe1: <EAGLE Technology NE200 ETHERNET LAN MBH10302  04> at port  
 0x100-0x11f iomem 0x88000000-0x88007fff irq 11 function 0 config 1 on  
 pccard0
 port 2, mask 58, bits 0 read 0
 port 4, mask 8, bits 0 read 6
 port 6, mask ff, bits b6 read ffffffb6
 fe1: [GIANT-LOCKED]
 fe1: Ethernet address: 00:00:1b:29:10:e7
 fe1: if_start running deferred for Giant
 fe1: type MBH10302 (PCMCIA)
 ad0: 6194MB <FUJITSU MHH2064AT B819> at ata0-master UDMA33
 acd0: CDROM <SR242S/z04G> at ata1-master PIO4
 Trying to mount root from ufs:/dev/ad0s3a
 

From: Gavin Atkinson <gavin.atkinson@ury.york.ac.uk>
To: bug-followup@FreeBSD.org, withay@pobox.com
Cc:  
Subject: Re: kern/88576: [fe] revision 1.31 to if_fe_pccard.c breaks NE200T
	functionality
Date: Wed, 09 May 2007 14:23:20 +0100

 Hi,
 
 It looks like this was fixed in revision 1.32, in a patch submitted by
 yourself. Are you able to confirm that the card does now work and that
 this PR can be closed?
 
 Thanks,
 
 Gavin

From: Bryan Blackburn <withay@pobox.com>
To: Gavin Atkinson <gavin.atkinson@ury.york.ac.uk>
Cc: bug-followup@FreeBSD.org
Subject: Re: kern/88576: [fe] revision 1.31 to if_fe_pccard.c breaks NE200T functionality
Date: Thu, 10 May 2007 00:52:32 -0600

 On May 9, 2007, at 7:23 AM, Gavin Atkinson wrote:
 
 > Hi,
 >
 > It looks like this was fixed in revision 1.32, in a patch submitted by
 > yourself. Are you able to confirm that the card does now work and that
 > this PR can be closed?
 >
 
 Yes, the fix that imp@ checked in at that time did fix the issue  
 quite nicely.  I think closing this PR simply fell through the cracks...
 
 Thanks,
 
 Bryan
 
 
 > Thanks,
 >
 > Gavin
 
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Sun May 13 04:31:28 UTC 2007 
State-Changed-Why:  
Confirmed fixed by submitter. 

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