Subject: port-sparc/22128: Booting SPARCclassic fails with "watchdog reset"
To: None <gnats-bugs@gnats.netbsd.org>
From: Andreas Gustafsson <gson@gson.org>
List: netbsd-bugs
Date: 07/12/2003 18:03:48
>Number:         22128
>Category:       port-sparc
>Synopsis:       Booting SPARCclassic fails with "watchdog reset"
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    port-sparc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 13 01:49:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Andreas Gustafsson
>Release:        NetBSD 1.6U
>Organization:
>Environment:
System: NetBSD gum.araneus.fi 1.6U (GENERIC) #0: Mon Jul  7 15:00:24 PDT 2003 gson@guava.araneus.fi:/usr/build58/obj/sys/arch/sparc/compile/GENERIC sparc
Architecture: sparc
Machine: sparc
>Description:

Trying to netboot a -current kernel (as of last week) on a
SPARCclassic consistently fails with a "Watchdog Reset" during the
device probe sequence, always immediately after the message "scsibus0:
waiting 2 seconds for devices to settle..." is printed, like this:

   ok boot
   Resetting ... 

   SPARCclassic, No Keyboard
   ROM Rev. 2.12, 96 MB memory installed, Serial #187155.
   Ethernet address 8:0:20:5:56:13, Host ID: 8002db13.


   Rebooting with command:                                               
   Boot device: /iommu/sbus/ledma@4,8400010:tpe/le@4,8c00000   File and args: 
   Lost Carrier  (transceiver cable problem?)  
   Twisted pair cable problem or hub link-test disabled.
   Use the PROM command "help ethernet" for more information.

   ARP/RARP send failed.  Check Ethernet cable and transceiver.
   >> NetBSD/sparc Secondary Boot, Revision 1.14
   >> (gson@guava.araneus.fi, Mon Jul  7 14:52:59 PDT 2003)
   Booting netbsd
   Trying BOOTP protocol... net_open: client addr: 10.0.0.9
   net_open: subnet mask: 255.0.0.0
   net_open: net gateway: 10.0.0.1
   net_open: server addr: 10.0.0.1
   net_open: server path: /export/gum/root
   ip address: 10.0.0.9, hostname: gum.araneus.fi, netmask: 255.0.0.0, gateway: 10.0.0.1
   root addr=10.0.0.1 path=/export/gum/root
   2922112+96368+242924 [196960+152225]=0x3819f4
   OBP version 3, revision 2.12 (plugin rev 2)
   Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
       The NetBSD Foundation, Inc.  All rights reserved.
   Copyright (c) 1982, 1986, 1989, 1991, 1993
       The Regents of the University of California.  All rights reserved.

   NetBSD 1.6U (GENERIC) #0: Mon Jul  7 15:00:24 PDT 2003
	   gson@guava.araneus.fi:/usr/build58/obj/sys/arch/sparc/compile/GENERIC
   total memory = 97992 KB
   avail memory = 86784 KB
   using 896 buffers containing 5000 KB of memory
   bootpath: /iommu@0,10000000/sbus@0,10001000/ledma@4,8400010:t/le@4,8c00000
   mainbus0 (root): SUNW,SPARCclassic: hostid 8002db13
   cpu0 at mainbus0: TMS390S10 @ 50 MHz, on-chip FPU
   cpu0: physical 4K instruction (32 b/l), 2K data (16 b/l): cache enabled
   obio0 at mainbus0
   clock0 at obio0 slot 0 offset 0x200000: mk48t08
   timer0 at obio0 slot 0 offset 0xd00000: delay constant 23
   zs0 at obio0 slot 0 offset 0x100000 level 12 softpri 6
   zstty0 at zs0 channel 0 (console i/o)
   zstty1 at zs0 channel 1
   zs1 at obio0 slot 0 offset 0x0 level 12 softpri 6
   kbd0 at zs1 channel 0: baud rate 1200
   ms0 at zs1 channel 1: baud rate 1200
   slavioconfig at obio0 slot 0 offset 0x800000 not configured
   auxreg0 at obio0 slot 0 offset 0x900000
   power0 at obio0 slot 0 offset 0x910000 level 2
   fdc0 at obio0 slot 0 offset 0x400000 level 11 softpri 4: chip 82077
   fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
   iommu0 at mainbus0 addr 0x10000000: version 0x1/0x4, page-size 4096, range 64MB
   sbus0 at iommu0: clock = 25 MHz
   dma0 at sbus0 slot 4 offset 0x8400000: DMA rev 2
   esp0 at dma0 slot 4 offset 0x8800000 level 4: ESP200, 40MHz, SCSI ID 7
   scsibus0 at esp0: 8 targets, 8 luns per target
   audioamd0 at sbus0 slot 4 offset 0x1300000 level 7 (ipl 13) softpri 4
   audio0 at audioamd0: full duplex
   bpp0 at sbus0 slot 4 offset 0xc800000 level 2 (ipl 3): DMA rev 2
   ledma0 at sbus0 slot 4 offset 0x8400010: DMA rev 2
   le0 at ledma0 slot 4 offset 0x8c00000 level 6: address 08:00:20:05:56:13
   le0: 8 receive buffers, 2 transmit buffers
   cgthree0 at sbus0 slot 3 offset 0x0 level 9: , 1152 x 900
   cgthree0: attached to /dev/fb
   Kernelized RAIDframe activated
   scsibus0: waiting 2 seconds for devices to settle...

   Watchdog Reset
   Type  help  for more information
   ok 

The same kernel reliably boots on a SPARCstation IPX.

This is not a new problem; I had the same issue with a 1.6 kenel.

>How-To-Repeat:

See above.

>Fix:

I have no idea.
>Release-Note:
>Audit-Trail:
>Unformatted: