Date: Thu, 24 Jul 97 10:08:30 +0200 From: Mikko Tyolajarvi <mikko@spirit.dynas.se> To: freebsd-questions@freebsd.org Subject: Machine hangs while printing to lpt0 Message-ID: <m0wrIwo-000JehC@spirit>
next in thread | raw e-mail | index | archive | help
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<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8> real memory = 67108864 (65536K bytes) avail memory = 63733760 (62240K bytes) Probing for devices on PCI bus 0: chip0 <Intel 82437VX PCI cache memory controller> rev 2 on pci0:0 chip1 <Intel 82371SB PCI-ISA bridge> rev 1 on pci0:7:0 chip2 <Intel 82371SB IDE interface> rev 0 on pci0:7:1 ncr0 <ncr 53c810a scsi> 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 <VGA-compatible display device> 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): <ST51080A> 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): <Conner Peripherals 420MB - CFS420A> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m0wrIwo-000JehC>