From owner-freebsd-stable Thu Mar 22 17:20:57 2001 Delivered-To: freebsd-stable@freebsd.org Received: from limit.org (limit.org [216.102.231.2]) by hub.freebsd.org (Postfix) with ESMTP id 82D9137B719 for ; Thu, 22 Mar 2001 17:20:47 -0800 (PST) (envelope-from michael@limit.org) Received: (from michael@localhost) by limit.org (8.11.3/8.11.3) id f2N1KcP15342 for freebsd-stable@freebsd.org; Thu, 22 Mar 2001 17:20:38 -0800 (PST) (envelope-from michael) Date: Thu, 22 Mar 2001 17:20:26 -0800 From: Michael Matsumura To: freebsd-stable@freebsd.org Subject: Slow USB parallel printer adapter Message-ID: <20010322172026.A15245@jupiter.limit.org> Mail-Followup-To: freebsd-stable@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I just bought a Belkin F5U002 USB Parallel Printer adapter, and compiled/installed 4.3-BETA. The problem is that when I attempt to print, the printer does not get the data until a random interval. When it does receive some of the information, it doesn't get all of it, and pauses while it is in the middle of printing, as if something is blocking the data from flowing. echo "test" > /dev/ulpt0 works, after 10 seconds or so. I have a really old Tyan S1686D motherboard with two built-in USB ports... [root:~]# uname -a FreeBSD jupiter.limit.org 4.3-BETA FreeBSD 4.3-BETA #2: Tue Mar 20 20:42:19 PST 2001 root@jupiter.limit.org:/usr/obj/usr/src/sys/JUPITER i386 My kernel config file includes the following entries for the USB device: device uhci # UHCI PCI->USB interface device ohci # OHCI PCI->USB interface device usb # USB Bus (required) device ugen # Generic device uhid # "Human Interface Devices" device ukbd # Keyboard device ulpt # Printer device ums # Mouse My dmesg -a: Copyright (c) 1992-2001 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 4.3-BETA #2: Tue Mar 20 20:42:19 PST 2001 root@jupiter.limit.org:/usr/obj/usr/src/sys/JUPITER Timecounter "i8254" frequency 1193182 Hz CPU: Pentium II/Pentium II Xeon/Celeron (299.15-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x634 Stepping = 4 Features=0x80fbff real memory = 268435456 (262144K bytes) avail memory = 257597440 (251560K bytes) Programming 24 pins in IOAPIC #0 IOAPIC #0 intpin 2 -> irq 0 FreeBSD/SMP: Multiprocessor motherboard cpu0 (BSP): apic id: 1, version: 0x00040011, at 0xfee00000 cpu1 (AP): apic id: 0, version: 0x00040011, at 0xfee00000 io0 (APIC): apic id: 2, version: 0x00170011, at 0xfec00000 Preloaded elf kernel "kernel" at 0xc0389000. ccd0-3: Concatenated disk drivers Pentium Pro MTRR support enabled md0: Malloc disk npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard IOAPIC #0 intpin 19 -> irq 2 IOAPIC #0 intpin 18 -> irq 17 IOAPIC #0 intpin 17 -> irq 18 pci0: on pcib0 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xffa0-0xffaf at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0xef80-0xef9f irq 2 at device 7.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered ulpt0: Belkin Components (2nd) F5U002 Parallel printer adapter, rev 1.00/1.04, addr 2, iclass 7/1 dc0: <82c169 PNIC 10/100BaseTX> port 0xec00-0xecff mem 0xffafbf00-0xffafbfff irq 16 at device 10.0 on pci0 dc0: Ethernet address: 00:a0:cc:28:ae:a4 miibus0: on dc0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto dc1: <82c169 PNIC 10/100BaseTX> port 0xe800-0xe8ff mem 0xffafbe00-0xffafbeff irq 2 at device 11.0 on pci0 dc1: Ethernet address: 00:c0:f0:2d:5a:d2 miibus1: on dc1 ukphy1: on miibus1 ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pci0: at 12.0 irq 17 pcm0: port 0xef00-0xef3f irq 18 at device 13.0 on pci0 fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: flags 0x100 irq 12 on atkbdc0 psm0: model IntelliMouse, device ID 3 vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A ppc0: parallel port not found. unknown: can't assign resources unknown: can't assign resources unknown: can't assign resources unknown: can't assign resources unknown: can't assign resources APIC_IO: Testing 8254 interrupt delivery APIC_IO: routing 8254 via IOAPIC #0 intpin 2 DUMMYNET initialized (010124) IP packet filtering initialized, divert enabled, rule-based forwarding enabled, default to deny, logging limited to 100 packets/entry by default BRIDGE 010131, have 9 interfaces -- index 1 type 6 phy 0 addrl 6 addr 00.a0.cc.28.ae.a4 -- index 2 type 6 phy 0 addrl 6 addr 00.c0.f0.2d.5a.d2 IP Filter: v3.4.16 initialized. Default = pass all, Logging = enabled SMP: AP CPU #1 Launched! ad0: 6179MB [12556/16/63] at ata0-master WDMA2 ad1: 19541MB [39703/16/63] at ata0-slave WDMA2 Mounting root from ufs:/dev/ad0s1a Note: I did notice that it is sharing an IRQ with dc1, but that shouldn't matter, since they're pci devices...right?... Anyways, any help would be appreciated -- Michael Matsumura michael@limit.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message