Subject: i386-current (March 16) system reboots when using lpt0
To: None <port-i386@NetBSD.ORG>
From: Jonas Lagerblad <jonas@carlstedt.se>
List: port-i386
Date: 03/17/1996 09:31:17
Sometime the last two weeks (?) something has happened to my NetBSD system
that makes the system reboot each time I try to send something to my
paralell port (lpt0). The change may have been introduced with
the new PCI-bus handling?

I'm using "(cat file.ps; echo ^D) > /dev/lpt0" to print files and this worked
until last week. Now when I try to do this my computer reboots immedeately
without any messages. I can se that soething is sent to the printer, since
it lights up some lamps and after a couple of minutes print some 
postcript error message.

The only thing I've done with my config file is to remove some more
entries and upgraded to the latest GENERICADP file. (se diff below)

Has anyone experienced anything similar?
Any hint how to track down the probelm will be greatly appreciated.

Best regards,
Jonas Lagerblad

I have a quite standard 133MHz Pentium which identifies itself:

CPU: Pentium (GenuineIntel 586-class CPU)
real mem  = 33161216
avail mem = 29110272
using 430 buffers containing 1761280 bytes of memory
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
vendor 0x8086 product 0x122d (class bridge, subclass host, revision 0x02) at pci
0 dev 0 function 0 not configured
vendor 0x8086 product 0x122e (class bridge, subclass ISA, revision 0x02) at pci0
 dev 7 function 0 not configured
vendor 0x5333 product 0x88f0 (class display, subclass VGA, revision 0x00) at pci
0 dev 19 function 0 not configured
ahc0 at pci0 dev 20 function 0ahc0: 294x Single Channel, SCSI Id=7, aic7870, 16 
SCBs
ahc0: Using Edge Triggered Interrupts
ahc0: Downloading Sequencer Program...Done
ahc0: Probing channel A
scsibus0 at ahc0
ahc0: SDTR, target 0 period 100 offset 15
ahc0: target 0 synchronous at 10.0MB/s, offset = 15
sd0 at scsibus0 targ 0 lun 0: <SEAGATE, ST11200N, 9592> SCSI2 0/direct fixed
sd0: 1005MB, 1872 cyl, 15 head, 73 sec, 512 bytes/sec
ahc0: SDTR, target 1 period 100 offset 15
ahc0: target 1 synchronous at 10.0MB/s, offset = 15
sd1 at scsibus0 targ 1 lun 0: <FUJITSU, M2694S-512, 0124> SCSI2 0/direct fixed
sd1: 1033MB, 1819 cyl, 15 head, 77 sec, 512 bytes/sec
pci_map_int: pin A mapped to line 11
isa0 at mainbus0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
lpt0 at isa0 port 0x378-0x37f irq 7
ep0 at isa0 port 0x300-0x30f irq 11: aui/bnc/utp address 00:a0:24:3e:42:41
npx0 at isa0 port 0xf0-0xff: using exception 16
vt0 at isa0 port 0x60-0x6f irq 1: unknown s3, 80 col, color, 8 scr, mf2-kbd, [R3
.32]
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask 840 netmask 840 ttymask 85a

Config file diff :
erdinger> diff -c CRT-JL.old CRT-JL
*** CRT-JL.old  Tue Jan 23 21:03:00 1996
--- CRT-JL      Fri Mar  8 20:47:51 1996
***************
*** 1,4 ****
! #     $NetBSD: GENERICADP,v 1.4 1995/12/24 18:00:29 neil Exp $
  #
  #     GENERICADP -- everything that's currently supported, except non-
  #                     Adaptec SCSI controllers.
--- 1,4 ----
! #     $NetBSD: GENERICADP,v 1.10 1996/03/07 00:48:38 jtk Exp $
  #
  #     GENERICADP -- everything that's currently supported, except non-
  #                     Adaptec SCSI controllers.
***************
*** 11,16 ****
--- 11,21 ----
  options               I586_CPU
  #options              MATH_EMULATE    # floating point emulation
  
+ # Some BIOSes don't get the size of extended memory right.  If you
+ # have a broken BIOS, uncomment the following and set the value
+ # properly for your system.
+ #options      EXTMEM_SIZE=... # size of extended memory
+ 
  #options      DUMMY_NOPS      # speed hack; recommended
  options               XSERVER,UCONSOLE
  options               INSECURE        # insecure; allow /dev/mem writing for X
***************
*** 67,73 ****
  options               UMAPFS          # NULLFS + uid and gid remapping
  options               UNION           # union file system
  
! options       GATEWAY         # packet forwarding
  options               INET            # IP + ICMP + TCP + UDP
  options               NS              # XNS
  options               ISO,TPIP        # OSI
--- 72,78 ----
  options               UMAPFS          # NULLFS + uid and gid remapping
  options               UNION           # union file system
  
! #options      GATEWAY         # packet forwarding
  options               INET            # IP + ICMP + TCP + UDP
  options               NS              # XNS
  options               ISO,TPIP        # OSI
***************
*** 77,84 ****
  config                netbsd  root on sd0 swap on sd0 and sd1
  #options              GENERIC
  
! isa0  at root
! pci0  at root
  
  npx0  at isa? port 0xf0 irq 13        # math coprocessor
  
--- 82,95 ----
  config                netbsd  root on sd0 swap on sd0 and sd1
  #options              GENERIC
  
! mainbus0 at root
! 
! isa0  at mainbus0
! eisa0 at mainbus0
! pci0  at mainbus0 bus ?
! 
! ppb*  at pci? dev ? function ?        # PCI-PCI bridges
! pci*  at ppb? bus ?
  
  npx0  at isa? port 0xf0 irq 13        # math coprocessor
  
***************
*** 88,94 ****
  com0  at isa? port 0x3f8 irq 4        # standard PC serial ports
  com1  at isa? port 0x2f8 irq 3
  #com2 at isa? port 0x3e8 irq 5
! #com3 at isa? port 0x2e8 irq 7
  #ast0 at isa? port 0x1a0 irq 5        # AST 4-port serial cards
  #com* at ast? slave ? flags 1
  #boca0        at isa? port 0x100 irq 5        # BOCA 8-port serial cards
--- 99,105 ----
  com0  at isa? port 0x3f8 irq 4        # standard PC serial ports
  com1  at isa? port 0x2f8 irq 3
  #com2 at isa? port 0x3e8 irq 5
! #com3 at isa? port 0x2e8 irq 9
  #ast0 at isa? port 0x1a0 irq 5        # AST 4-port serial cards
  #com* at ast? slave ? flags 1
  #boca0        at isa? port 0x100 irq 5        # BOCA 8-port serial cards
***************
*** 108,127 ****
  #mms1 at isa? port 0x238 irq 5
  #pms0 at isa? port 0x60 irq 12        # PS/2 auxiliary port mouse
  
! aha0  at isa? port 0x330 irq ? drq ?  # Adaptec 154[02] SCSI controllers
  #aha1 at isa? port 0x334 irq ? drq ?  # Adaptec 154[02] SCSI controllers
! scsibus* at aha?
! #ahb0 at isa? port ? irq ?            # Adaptec 174[024] SCSI controllers
  #scsibus* at ahb?
! ahc*  at pci? bus ? dev ?             # Adaptec 2940 SCSI controllers
  scsibus* at ahc?
  #aic0 at isa? port 0x340 irq 12       # Adaptec 152[02] SCSI controllers
  #scsibus* at aic?
  
  sd*   at scsibus? target ? lun ?      # SCSI disk drives
  st*   at scsibus? target ? lun ?      # SCSI tape drives
  cd*   at scsibus? target ? lun ?      # SCSI CD-ROM drives
! ch*   at scsibus? target ? lun ?      # SCSI autochangers
  
  fdc0  at isa? port 0x3f0 irq 6 drq 2  # stand PC floppy controllers
  #fdc1 at isa? port 0x370 irq ? drq ?
***************
*** 136,151 ****
  #wt0  at isa? port 0x300 irq 5 drq 1  # Archive and Wangtek QIC tape drives
  
  ed0   at isa? port 0x280 iomem 0xd0 irq 9  # WD/SMC, 3C503, and NE[12]000
! #ed1  at isa? port 0x250 iomem 0xd8000 irq 9  #   ethernet cards
! #ed2  at isa? port 0x300 iomem 0xcc000 irq 10
  #eg0  at isa? ...                             # 3C505 ethernet cards
  #el0  at isa?     # packet filter
--- 167,173 ----
  #wss0 at isa? port 0x530 irq 10 drq 0 # Windows Sound System
  #pas0 at isa? port 0x220 irq 7 drq 1  # ProAudio Spectrum
  #gus0 at isa? port 0x220 irq 7 drq 1 flags 6 # Gravis Ultra Sound (flags is record drq for full-duplex)
! #spkr0        at isa? port 0x61
  
  pseudo-device loop    1               # network loopback
  pseudo-device bpfilter 8              # packet filter