Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Feb 1996 12:25:57 GMT
From:      Nik Clayton <nik@blueberry.co.uk>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   i386/1048: ep driver not detecting card with specific values
Message-ID:  <199602281225.MAA00400@elbereth.blueberry.co.uk>
Resent-Message-ID: <199602281430.GAA11238@freefall.freebsd.org>

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

>Number:         1048
>Category:       i386
>Synopsis:       ep driver fails to detect card when told specific values
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 28 06:30:01 PST 1996
>Last-Modified:
>Originator:     Nik Clayton
>Organization:
Blueberry Design Ltd.
>Release:        FreeBSD 2.1-STABLE i386
>Environment:

	avail memory = 15044608 (14692K bytes)
	Probing for devices on the ISA bus:
	sc0 at 0x60-0x6f irq 1 on motherboard
	sc0: VGA color <16 virtual consoles, flags=0x0>
	ed0 at 0x380-0x39f irq 15 maddr 0xd8000 msize 16384 on isa
	ed0: address 00:00:c0:dc:5b:ab, type SMC8216/SMC8216C (16 bit) 
	lpt0 at 0x378-0x37f irq 7 on isa
	lpt0: Interrupt-driven port
	lp0: TCP/IP capable interface
	psm0 at 0x60-0x63 irq 12 on motherboard
	sio0 at 0x3f8-0x3ff irq 4 on isa
	sio0: type 16550A
	sio1: disabled, not probed.
	pca0 on motherboard
	pca0: PC speaker audio driver
	fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
	fdc0: NEC 72065B
	fd0: 1.44MB 3.5in
	1 3C5x9 board(s) on ISA found at 0x300
	ep0 at 0x300-0x30f irq 3 on isa
	ep0: aui/bnc/utp[*UTP*] address 00:20:af:5b:9a:03 irq 3
	npx0 on motherboard
	npx0: INT 16 interface
	gus0 at 0x220 irq 11 drq 1 flags 0x3 on isa
	gus0: <Gravis UltraSound MAX (512k)>
	gus0: <GUS MAX (CS4231)>
	Probing for devices on the PCI bus:
	chip0 <Intel 82437 (Triton)> rev 2 on pci0:0
	chip1 <Intel 82371 (Triton)> rev 2 on pci0:7
	vga0 <VGA-compatible display device> rev 0 int a irq 9 on pci0:10
	ncr0 <ncr 53c810 scsi> rev 2 int a irq 10 on pci0:12
	ncr0 waiting for scsi devices to settle
	(ncr0:0:0): "FUJITSU M1606S-512 6234" type 0 fixed SCSI 2
	sd0(ncr0:0:0): Direct-Access 
	sd0(ncr0:0:0): FAST SCSI-2 100ns (10 Mb/sec) offset 8.
	1041MB (2131992 512 byte sectors)
	sd0(ncr0:0:0): with 3457 cyls, 6 heads, and an average 102 sectors/track
	(ncr0:1:0): "NEC CD-ROM DRIVE:502 2.0r" type 5 removable SCSI 2
	cd0(ncr0:1:0): CD-ROM 
	cd0(ncr0:1:0): FAST SCSI-2 125ns (8 Mb/sec) offset 8.
	cd present.[308654 x 2048 byte records]
	(ncr0:2:0): "MICROP 2210-09MQ1001901 HQ30" type 0 fixed SCSI 2
	sd1(ncr0:2:0): Direct-Access 
	sd1(ncr0:2:0): FAST SCSI-2 100ns (10 Mb/sec) offset 8.
	1007MB (2062820 512 byte sectors)
	sd1(ncr0:2:0): with 2372 cyls, 9 heads, and an average 96 sectors/track

>Description:

	My machine has two network cards in. One SMC Elite 16C (using the
	ed driver) and one 3COM 3C509 (using the ep driver).

	The kernel config lines for these two devices are

	  device ed0 at isa? port 0x380 net irq 15 iomem 0xd8000 vector edintr
	  device ep0 at isa? port 0x300 net irq 3 vector epintr
        
	Those are the correct irq and port values for the cards, as set 
	using their respective DOS setup programs. Where applicable,
	plug and play is turned off.

	With this configuration, at boot time ed0 is successfully 
	recognised.

	    ed0 at 0x380-0x39f irq 15 maddr 0xd8000 msize 16384 on isa
	    ed0: address 00:00:c0:dc:5b:ab, type SMC8216/SMC8216C (16 bit) 

	However, ep0 is not,

	    ep0 not found at 0x300

        If I boot with -c, and tell the ep driver to pick up the port
	address from the card, with 

	    port ep0 -1

	then it is successfully found. At 0x300!

	    1 3C5x9 board(s) on ISA found at 0x300
	    ep0 at 0x300-0x30f irq 3 on isa
	    ep0: aui/bnc/utp[*UTP*] address 00:20:af:5b:9a:03 irq 3

        This is somewhat confusing. This problem persists if ep0 is the
	only network card in the machine. I have not been able to confirm
	whether this occurs when the card is on other port addresses, 
	but it does happen on other IRQ settings.

>How-To-Repeat:

	Boot a 3C509 network card at port 300 with that port referenced in 
	the kernel configuration.

>Fix:
	
	Tell the driver to pick up the base address from the card.

	It may also be possible to use '-1' in the kernel config file,
	although I have not tested this.

>Audit-Trail:
>Unformatted:



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