From owner-freebsd-hackers Fri Sep 20 17:14:59 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id RAA25109 for hackers-outgoing; Fri, 20 Sep 1996 17:14:59 -0700 (PDT) Received: from research.gate.nec.co.jp (research.gate.nec.co.jp [202.32.8.49]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id RAA25077 for ; Fri, 20 Sep 1996 17:14:55 -0700 (PDT) Received: from sbl-gw.sbl.cl.nec.co.jp by research.gate.nec.co.jp (8.7.6+2.6Wbeta7/950912) with ESMTP id JAA06230; Sat, 21 Sep 1996 09:14:48 +0900 (JST) Received: from sirius.sbl.cl.nec.co.jp by sbl-gw.sbl.cl.nec.co.jp (8.7.5+2.6Wbeta6/3.3W6) with ESMTP id JAA08270; Sat, 21 Sep 1996 09:14:46 +0900 (JST) X-Authentication-Warning: sbl-gw.sbl.cl.nec.co.jp: Host nao@sirius [133.207.68.90] claimed to be sirius.sbl.cl.nec.co.jp Received: by sirius.sbl.cl.nec.co.jp (8.7.5+2.6Wbeta6/3.3W6) with UUCP id JAA24315; Sat, 21 Sep 1996 09:14:46 +0900 (JST) Date: Sat, 21 Sep 1996 09:14:46 +0900 (JST) From: Naoki Hamada Message-Id: <199609210014.JAA24315@sirius.sbl.cl.nec.co.jp> References: <199609201503.RAA25073@spooky.lss.cp.philips.com> To: Guido.vanRooij@nl.cis.philips.com CC: guido@gvr.win.tue.nl, dfr@render.com, freebsd-hackers@FreeBSD.org In-reply-to: Guido van Rooij's message of "Fri, 20 Sep 1996 17:03:51 +0200 (MET DST)" <199609201503.RAA25073@spooky.lss.cp.philips.com> Subject: Re: new if_vx driver on freefall Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Guido wrote: >I ordered the specs from 3com and I'm waiting for them. Basically,if your board >runs fine without BROKEN_AVAIL, do *not* define it. Absolutely. >If it stops for your firends, could you verfiy with ifconfig vx0 that >the state is OACTIVE? Sure. And here is another report from Kumagai-san. -nao ============================================================ Dear Guido-san, Due to Nao-san(Naoki Hamada )'s prompt introducing of your fantastic vx driver: ftp://freefall.freebsd.org/incoming/newif_vx.tgz to Japanese FreeBSD community, I am pleased to report its successful operation on my Gateway machine. In summary: * after some modification of if_vx.c, its compilation turns to success. * my vx0 operates successfully. * after #undef'ed BROKEN_AVAIL and "ping -f -s 1000 ....", it successfully operates 1) Environment Machine:Gateway P5-166 Multimedia Intel 166MHz-Pentium, 32MB EDO DRAM 430HX Chipset AHA 2940, 3c589 OS: FreeBSD 2.1.5-RELEASE Please consult the attached 'dmesg' log if you'd like to examine my machine in detail. 2) Step-by-Step Report 2.1 Extract and Compile * extraction: OK (tar xvfz newif_vx.tgz) * put both (if_vx.c and if_vxreg.h) to /sys/pci. * make depend: OK * make: NG...OOPS! ================================================== cc -c -O -W -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit -nostdinc -I. -I../.. -I../../sys -I/usr/include -DLUTE -DI586_CPU -DI486_CPU -DI386_CPU -DATAPI -DSYSVMSG -DSYSVSEM -DSYSVSHM -DUCONSOLE -DBOUNCE_BUFFERS -DSCSI_DELAY=5 -DCOMPAT_43 -DPROCFS -DCD9660 -DMSDOSFS -DNFS -DFFS -DINET -DVX_LOCAL_STATS -DKERNEL -Di386 -DLOAD_ADDRESS=0xF0100000 ../../pci/if_vx.c ../../pci/if_vx.c: In function `vxstart': ../../pci/if_vx.c:432: `s' undeclared (first use this function) ../../pci/if_vx.c:432: (Each undeclared identifier is reported only once ../../pci/if_vx.c:432: for each function it appears in.) *** Error code 1 Stop. ================================================== After some consideration, I decided to change if_vx.c according to the following patch: ============================================================ *** 429,435 **** goto readcheck; } ! if ((s=inw(BASE + VX_W1_FREE_TX)) < len + pad + 4) { outw(BASE + VX_COMMAND, SET_TX_AVAIL_THRESH | (len + pad + 4)); /* not enough room in FIFO */ #ifdef BROKEN_AVAIL --- 429,435 ---- goto readcheck; } ! if ((sh=inw(BASE + VX_W1_FREE_TX)) < len + pad + 4) { outw(BASE + VX_COMMAND, SET_TX_AVAIL_THRESH | (len + pad + 4)); /* not enough room in FIFO */ #ifdef BROKEN_AVAIL ============================================================ This change has caused to compile it successfully. 2.2 Reboot and try ftp * Reboot OK: the kernel recognise vx. vx0 <3Com 3c595 Fast EtherLink III PCI> rev 0 int a irq 9 on pci0:15 utp[*UTP*] address 0:a0:24:bb:a2:21 I specifies 'link2' flag in /etc/sysconfig for vx0. * try ftp: Great! get /kernel /dev/null ... Approx. 800KB/sec put /kernel /dev/null ... Approx. 800KB/sec 2.3 Be #undef'ed BROKEN_AVAIL and try ping. * undef BROKEN_AVAIL * make: OK * reboot: OK * execute: ping -f -s 1000 bell ... OK * terminate with SIGING, and * try ftp: Great! get /kernel /dev/null ... Approx. 800KB/sec put /kernel /dev/null ... Approx. 800KB/sec So my next mission is to get Accelarator-X to construct the X-Empire of Millenium in my Gateway. Many thanks. Norihiro Kumagai (kuma@slab.tnr.sharp.co.jp) ============================================================ (Appendix: my dmesg log) FreeBSD 2.1.5-RELEASE #4: Fri Sep 20 12:40:25 1996 root@lute.slab.tnr.sharp.co.jp:/usr/src/sys/compile/LUTE CPU: 166-MHz Pentium 735\\90 or 815\\100 (Pentium-class CPU) Origin = "GenuineIntel" Id = 0x52c Stepping=12 Features=0x1bf real memory = 33554432 (32768K bytes) avail memory = 30760960 (30040K bytes) Probing for devices on PCI bus 0: chip0 rev 2 on pci0:0 chip1 rev 2 on pci0:7:0 chip2 rev 2 on pci0:7:1 ahc0 rev 0 int a irq 10 on pci0:14 ahc0: aic7870 Single Channel, SCSI Id=7, 16 SCBs ahc0 waiting for scsi devices to settle vx0 <3Com 3c595 Fast EtherLink III PCI> rev 0 int a irq 9 on pci0:15 utp[*UTP*] address 0:a0:24:bb:a2:21 vga0 rev 1 int a irq 11 on pci0:16 Probing for devices on the ISA bus: sc0 at 0x60-0x6f irq 1 on motherboard sc0: VGA color <16 virtual consoles, flags=0x0> sio0 at 0x3f8-0x3ff irq 4 on isa sio0: type 16550A sio1 not found at 0x2f8 lpt0 at 0x378-0x37f irq 7 on isa lpt0: Interrupt-driven port lp0: TCP/IP capable interface psm0: disabled, not probed. fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa fdc0: NEC 72065B fd0: 1.44MB 3.5in wdc0 at 0x1f0-0x1f7 irq 14 flags 0x80ff80ff on isa wdc0: unit 0 (wd0): , 32-bit, multi-block-16 wd0: 2441MB (4999680 sectors), 4960 cyls, 16 heads, 63 S/T, 512 B/S wdc0: unit 1 (atapi): , removable, intr, dma, iordy wcd0: 1377Kb/sec, 256Kb cache, audio play, 255 volume levels, ejectable tray wcd0: no disc inside, unlocked wdc1 not found at 0x170 ep0 not found at 0x300 npx0 on motherboard npx0: INT 16 interface ============================================================