From owner-freebsd-questions Thu Jul 24 01:08:50 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id BAA16598 for questions-outgoing; Thu, 24 Jul 1997 01:08:50 -0700 (PDT) Received: from karon.dynas.se (karon.dynas.se [192.71.43.4]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id BAA16593 for ; Thu, 24 Jul 1997 01:08:40 -0700 (PDT) Received: (qmail 26328 invoked from network); 24 Jul 1997 08:08:31 -0000 Received: from spirit.dynas.se (HELO host.domain) (172.16.1.10) by karon.dynas.se with SMTP; 24 Jul 1997 08:08:30 -0000 Received: by spirit (Smail3.1.28.1 #32) id m0wrIwo-000JehC; Thu, 24 Jul 97 10:08:30 +0200 Message-Id: Date: Thu, 24 Jul 97 10:08:30 +0200 From: Mikko Tyolajarvi To: freebsd-questions@freebsd.org Subject: Machine hangs while printing to lpt0 MIME-Version: 1.0 Content-Type: Text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from Quoted-Printable to 8bit by hub.freebsd.org id BAA16594 Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi! Since installing 2.2.2, my home machine freezes (all I/O stops) whenever it is sending data to the printer over the parallel port. This did not happen with 2.2.1, or any previous release. There have been no changes to the hardware. It looks like something is blocking too many interrupts while waiting for the printer. As soon as the data drains, everything is OK again. Pulling out the paper tray while printing a large document is a sure way to hang the machine indefinitely. Any hints on where to look for clues on what is going on sould be greatly appreciated, especially anything simpler than "systematically replace every piece of hardware" or "install 3.0-CURRENT and see what happens". At work we only have network printers, and I don't feel like strapping the LJ4MP to my bike to drag it there for testing with other PCs. - Compiling lpt.c withe debugging actually makes it "work," i.e. it doesn't hang while printing any more. - This happens both in interrupt-driven and polled mode. - It hangs with "cat file > /dev/lpt0" as well as using "lpr" - There are no diffs in lpt.c between 2.2.2 and 2.2.1 - Bangin the keyboard and frantically moving the (serial) mouse while running X once produced a zillion "sio overflows" (134 per log message, to be precise :-). I have not been able to repeat this, though. - There are no other log indications of anything being wrong. - dmesg output below (from GENERIC kernel) /Mikko Mikko Työläjärvi_____________________________________________mikko@dynas.se DynaSoft FreeBSD 2.2.2-RELEASE #0: Sat Jun 21 16:50:23 CEST 1997 mikko@atlas.dynas.se:/usr/src/sys/compile/ATLAS CPU: Pentium (133.64-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x52c Stepping=12 Features=0x1bf real memory = 67108864 (65536K bytes) avail memory = 63733760 (62240K bytes) Probing for devices on PCI bus 0: chip0 rev 2 on pci0:0 chip1 rev 1 on pci0:7:0 chip2 rev 0 on pci0:7:1 ncr0 rev 17 int a irq 10 on pci0:18 ncr0 waiting for scsi devices to settle (ncr0:0:0): "HP C3323-300 4084" type 0 fixed SCSI 2 sd0(ncr0:0:0): Direct-Access sd0(ncr0:0:0): 10.0 MB/s (100 ns, offset 8) 1003MB (2056008 512 byte sectors) (ncr0:3:0): "NEC CD-ROM DRIVE:222 3.0i" type 5 removable SCSI 2 cd0(ncr0:3:0): CD-ROM cd0(ncr0:3:0): asynchronous. can't get the size vga0 rev 6 int a irq 11 on pci0:19 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 at 0x2f8-0x2ff irq 3 on isa sio1: type 16550A sio2: disabled, not probed. sio3: disabled, not probed. lpt0 at 0x378-0x37f irq 7 on isa lpt0: Interrupt-driven port lp0: TCP/IP capable interface lpt1 not found at 0xffffffff mse0 not found at 0x23c psm0: 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 wdc0 at 0x1f0-0x1f7 irq 14 on isa wdc0: unit 0 (wd0): wd0: 1033MB (2116800 sectors), 2100 cyls, 16 heads, 63 S/T, 512 B/S wdc1 at 0x170-0x177 irq 15 on isa wdc1: unit 0 (wd2): wd2: 406MB (832608 sectors), 826 cyls, 16 heads, 63 S/T, 512 B/S wt0 not found at 0x300 npx0 flags 0x1 on motherboard npx0: INT 16 interface