Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Apr 2001 14:24:15 -0500 (CDT)
From:      "M. L. Dodson" <bdodson@scms.utmb.EDU>
To:        freebsd-stable@FreeBSD.ORG
Subject:   ulpt-attached PS printer keeps going offline
Message-ID:  <200104041924.f34JOFm00465@histidine.utmb.edu>

next in thread | raw e-mail | index | archive | help

My usb printer keeps going offline.  This appears to have started
a couple of weeks ago, but I can't pin the time down more
precisely than that.  The symptom is that a message similar to
this:

Apr  4 13:28:43 histidine /kernel: ulpt0: offline

comes up after anything other than a tiny print job.  A power
cycle of the printer fixes things.  The printer is a Hewlett
Packard LaserJet 2100M with 8MB of memory and PostScript.  It is
interfaced with: Hewlett Packard HP JetDirect J4135A, rev
1.10/1.00

It prints OK with a parallel cable.

Any pointers to debugging this will be appreciated.  (I should
also point out the Red Herring alert at the bottom of this
message.)

Bud Dodson

The hardware: A Dell Precision 410 wksta, dual PII 450s, running
RC from a cvsup which finished about Mar 30 09:40 CST.

dmesg (a ulpt-interfaced printer configuration which displays the
symptoms):

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-RC #0: Fri Mar 30 10:59:09 CST 2001
    bdodson@valine.utmb.edu:/usr/obj/usr/src/sys/HISTIDINE
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium II/Pentium II Xeon/Celeron (448.62-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x652  Stepping = 2
  Features=0x183fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
real memory  = 268427264 (262136K bytes)
config> q
avail memory = 257658880 (251620K bytes)
Changing APIC ID for IO APIC #0 from 0 to 2 on chip
Programming 24 pins in IOAPIC #0
IOAPIC #0 intpin 2 -> irq 0
FreeBSD/SMP: Multiprocessor motherboard
 cpu0 (BSP): apic id:  0, version: 0x00040011, at 0xfee00000
 cpu1 (AP):  apic id:  1, version: 0x00040011, at 0xfee00000
 io0 (APIC): apic id:  2, version: 0x00170011, at 0xfec00000
Preloaded elf kernel "kernel" at 0xc0398000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc039809c.
Preloaded elf module "agp.ko" at 0xc03980ec.
Pentium Pro MTRR support enabled
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard
IOAPIC #0 intpin 19 -> irq 2
pci0: <PCI bus> on pcib0
agp0: <Intel 82443BX (440 BX) host to PCI bridge> mem 0xec000000-0xefffffff at device 0.0 on pci0
pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
IOAPIC #0 intpin 16 -> irq 13
pci1: <PCI bus> on pcib1
pci1: <NVidia Riva TNT2 graphics accelerator> at 0.0 irq 13
isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0xffa0-0xffaf at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xdce0-0xdcff irq 2 at device 7.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> 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: Hewlett Packard HP JetDirect J4135A, rev 1.10/1.00, addr 2, iclass 7/1
Timecounter "PIIX"  frequency 3579545 Hz
chip0: <Intel 82371AB Power management controller> port 0x850-0x85f at device 7.3 on pci0
xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0xdc00-0xdc7f mem 0xfe000000-0xfe00007f irq 2 at device 17.0 on pci0
xl0: Ethernet address: 00:c0:4f:6b:c3:2d
miibus0: <MII bus> on xl0
xlphy0: <3Com internal media interface> on miibus0
xlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pcib2: <DEC 21152 PCI-PCI bridge> at device 19.0 on pci0
IOAPIC #0 intpin 18 -> irq 16
pci2: <PCI bus> on pcib2
ahc0: <Adaptec aic7890/91 Ultra2 SCSI adapter> port 0xec00-0xecff mem 0xfafff000-0xfaffffff irq 16 at device 10.0 on pci2
aic7890/91: Wide Channel A, SCSI Id=7, 32/255 SCBs
ahc1: <Adaptec aic7880 Ultra SCSI adapter> port 0xe800-0xe8ff mem 0xfaffe000-0xfaffefff irq 16 at device 14.0 on pci2
aic7880: Wide Channel A, SCSI Id=7, 16/255 SCBs
fdc0: <NEC 72065B or clone> 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: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
vga0: <Generic ISA VGA> at port 0x3b0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> 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> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
pcm0: <CS423x> at port 0x534-0x537,0x388-0x38b,0x220-0x22f irq 5 drq 1,0 on isa0
unknown: <PNP0501> can't assign resources
unknown: <PNP0501> can't assign resources
unknown: <PNP0401> can't assign resources
unknown: <PNP0700> can't assign resources
unknown: <PNP0f13> can't assign resources
unknown: <PNP0303> can't assign resources
APIC_IO: Testing 8254 interrupt delivery
APIC_IO: routing 8254 via IOAPIC #0 intpin 2
SMP: AP CPU #1 Launched!
ad0: 6149MB <Maxtor 90640D4> [12495/16/63] at ata0-master UDMA33
ad1: 6149MB <Maxtor 90640D4> [12495/16/63] at ata0-slave UDMA33
acd0: CDROM <NEC CD-ROM DRIVE:28C> at ata1-master using UDMA33
afd0: 96MB <IOMEGA ZIP 100 ATAPI> [96/64/32] at ata1-slave using PIO0
Waiting 5 seconds for SCSI devices to settle
sa0 at ahc1 bus 0 target 4 lun 0
sa0: <ARCHIVE VIPER 150  21531 -004> Removable Sequential Access SCSI-CCS device 
sa0: 3.300MB/s transfers
da1 at ahc0 bus 0 target 1 lun 0
da1: <QUANTUM ATLAS IV 9 WLS 0B0B> Fixed Direct Access SCSI-3 device 
da1: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabled
da1: 8761MB (17942584 512 byte sectors: 255H 63S/T 1116C)
Mounting root from ufs:/dev/ad0s2a
cd0 at ahc1 bus 0 target 5 lun 0
cd0: <PLEXTOR CD-R   PX-W8220T 1.01> Removable CD-ROM SCSI-2 device 
cd0: 10.000MB/s transfers (10.000MHz, offset 8)
cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed
da0 at ahc0 bus 0 target 0 lun 0
da0: <IBM DNES-309170W SA30> Fixed Direct Access SCSI-3 device 
da0: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabled
da0: 8748MB (17916240 512 byte sectors: 255H 63S/T 1115C)

+++++++++ Red Herring alert!
I'm including this only because I did it to try to debug the
problem; it does not seem to be related to the problem at hand.

A search of the mailing list archives reveals a somewhat similar
set of symptoms involving a ulpt-interfaced printer.  This was
(tentatively) ascribed to the usb controller and the ethernet
card (a fxp) sharing a pci interrupt.  I turned off the
motherboard 3COM 3C905B and plugged in a pci 3C905C (which
reshuffled the irq assignments).  This did not cure the problem:
the printer went offline after the first local print job.

-- 
M. L. Dodson                                bdodson@scms.utmb.edu
409-772-2178                                FAX: 409-772-1790

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104041924.f34JOFm00465>