Date: Sat, 21 Sep 1996 09:14:46 +0900 (JST) From: Naoki Hamada <nao@sbl.cl.nec.co.jp> To: Guido.vanRooij@nl.cis.philips.com Cc: guido@gvr.win.tue.nl, dfr@render.com, freebsd-hackers@FreeBSD.org Subject: Re: new if_vx driver on freefall Message-ID: <199609210014.JAA24315@sirius.sbl.cl.nec.co.jp> In-Reply-To: Guido van Rooij's message of "Fri, 20 Sep 1996 17:03:51 %2B0200 (MET DST)" <199609201503.RAA25073@spooky.lss.cp.philips.com> References: <199609201503.RAA25073@spooky.lss.cp.philips.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <nao@sbl.cl.nec.co.jp>)'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<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8> real memory = 33554432 (32768K bytes) avail memory = 30760960 (30040K bytes) Probing for devices on PCI bus 0: chip0 <Intel 82437 PCI cache memory controller> rev 2 on pci0:0 chip1 <Intel 82371 PCI-ISA bridge> rev 2 on pci0:7:0 chip2 <Intel 82371 Bus-master IDE controller> rev 2 on pci0:7:1 ahc0 <Adaptec 2940 SCSI host adapter> 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 <VGA-compatible display device> 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): <WDC AC32500H>, 32-bit, multi-block-16 wd0: 2441MB (4999680 sectors), 4960 cyls, 16 heads, 63 S/T, 512 B/S wdc0: unit 1 (atapi): <TOSHIBA CD-ROM XM-5602B/1156>, 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 ============================================================
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609210014.JAA24315>