NetBSD Problem Report #34046

From www@NetBSD.org  Fri Jul 21 07:32:15 2006
Return-Path: <www@NetBSD.org>
Received: by narn.NetBSD.org (Postfix, from userid 31301)
	id 366F463BACE; Fri, 21 Jul 2006 07:32:15 +0000 (UTC)
Message-Id: <20060721073215.366F463BACE@narn.NetBSD.org>
Date: Fri, 21 Jul 2006 07:32:15 +0000 (UTC)
From: jdbaker@mylinuxisp.com
Reply-To: jdbaker@consolidated.net
To: gnats-bugs@NetBSD.org
Subject: dbri conflict w/magma hangs SS10
X-Send-Pr-Version: www-1.0

>Number:         34046
>Notify-List:    jdbaker@consolidated.net
>Category:       port-sparc
>Synopsis:       dbri conflict w/magma hangs SS10
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-sparc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 21 07:35:00 +0000 2006
>Last-Modified:  Tue Jan 29 06:31:17 +0000 2019
>Originator:     John D. Baker
>Release:        NetBSD/sparc-current 3.99.2[13]
>Organization:
>Environment:
NetBSD nozette 3.99.23 NetBSD 3.99.23 (GENERIC_NOdbri) #0: Thu Jul 20 15:03:45 CDT 2006  sysop@yggdrasil:/space/nbsd/sparc/sys/arch/sparc/compile/GENERIC_NOdbri sparc

>Description:
In sparc kernels containing drivers for both dbri and magma, accessing
any of the magma serial ports hangs the system.  Serial console is
unresponsive except to drop to OBP on receipt of <BREAK>.

See also:

http://mylinuxisp.com/~jdbaker/misc/nozette.boot
http://mail-index.netbsd.org/port-sparc/2006/07/18/0000.html
http://mail-index.netbsd.org/port-sparc/2006/07/20/0000.html

For historical background see:

OpenBSD PR 2212
NetBSD PR 14845
http://www.openbsd.org/cgi-bin/cvsweb/src/sys/arch/sparc/dev/cs4231.c
(particularly the comments for R1.15)


I built a kernel that differs from GENERIC only in that it lacks dbri
support and with that kernel, I can use the magma serial ports without
any trouble.

I also built one that includes the dbri debugging and large-buffer
options.  That kernel locks the SS10 up hard, just like an ordinary
GENERIC kernel and produces no additional console output.
>How-To-Repeat:
Boot -current GENERIC on SS10 (SS20?) equipped with MAGMA serial card
(LC2+1sp in this case)

If necessary, cd /dev ; ./MAKEDEV magma0

Add entries for tty0[0-f] to /etc/ttys (or only as many as your card
has)

With nothing attached to at least one of the listed ports, run:

/etc/rc.d/ttys restart

Alternatively, attempt to access any magma port with tip or cu.
(may need to add/edit entries in /etc/remote)

>Fix:
Workarounds:

  1) remove/comment-out entries for magma ports in /etc/ttys and never
     attempt to use them.

  2) build kernel without dbri support.

Since the magma serial ports are mission-critical for my goals, I have
so-far opted for the second workaround.

>Release-Note:

>Audit-Trail:
From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-sparc/34046: dbri conflict w/magma hangs SS10
Date: Thu, 7 Dec 2017 11:34:10 -0600 (CST)

 On Fri, 21 Jul 2006, John D. Baker <jdbaker@mylinuxisp.com> wrote:

 > See also:
 > 
 > http://mylinuxisp.com/~jdbaker/misc/nozette.boot

 I don't know if that URL even still works, so I've included that dmesg
 below:

 SPARCstation 10 (1 X 390Z55), No Keyboard
 ROM Rev. 2.25, 128 MB memory installed, Serial #7410937.
 Ethernet address 8:0:20:71:14:f9, Host ID: 727114f9.



 Initializing Memory
 Rebooting with command: 
 Boot device: /iommu/sbus/espdma@f,400000/esp@f,800000/sd@0,0  File and args: 
 >> NetBSD/sparc Secondary Boot, Revision 1.15
 >> (sysop@jdb-test.cis.sac.accd.edu, Wed Jul  5 20:29:47 CDT 2006)
 Booting netbsd
 2749548+77232+239868 [165712+152499]=0x34a99c
 OBP version 3, revision 2.25 (plugin rev 2)
 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
     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 3.99.21 (NOZETTE) #0: Fri Jul  7 00:21:45 CDT 2006
 	sysop@jdb-test.cis.sac.accd.edu:/space/nbsd/sparc/space/src/sys/arch/sparc/compile/NOZETTE
 total memory = 127 MB
 avail memory = 121 MB
 timecounter: Timecounters tick every 10.000 msec
 bootpath: /iommu@f,e0000000/sbus@f,e0001000/espdma@f,400000/esp@f,800000/sd@0,0
 mainbus0 (root): SUNW,SPARCstation-10: hostid 727114f9
 cpu0 at mainbus0: TMS390Z50 v1 @ 40 MHz, on-chip FPU
 cpu0: physical 20K instruction (64 b/l), 16K data (32 b/l), 1024K external (32 b/l): cache enabled
 obio0 at mainbus0
 clock0 at obio0 slot 0 offset 0x200000: mk48t08
 timer0 at obio0 slot 0 offset 0x300000: delay constant 18, frequency = 2000000 Hz
 timecounter: Timecounter "timer-counter" frequency 2000000 Hz quality 100
 timecounter: selected timecounter "timer-counter" frequency 2000000 Hz quality 100
 zs0 at obio0 slot 0 offset 0x100000 level 12 softpri 6
 zstty0 at zs0 channel 0 (console i/o)
 zstty1 at zs0 channel 1
 zs at obio0 slot 0 offset 0x0 level 12 not configured
 fdc0 at obio0 slot 0 offset 0x700000 level 11 softpri 4: chip 82077
 fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
 auxreg0 at obio0 slot 0 offset 0x800000
 power0 at obio0 slot 0 offset 0xa01000 level 2
 iommu0 at mainbus0 ioaddr 0xe0000000: version 0x3/0x0, page-size 4096, range 64MB
 sbus0 at iommu0: clock = 20 MHz
 dma0 at sbus0 slot 15 offset 0x400000: DMA rev 2
 esp0 at dma0 slot 15 offset 0x800000 level 4: ESP200, 40MHz, SCSI ID 7
 scsibus0 at esp0: 8 targets, 8 luns per target
 ledma0 at sbus0 slot 15 offset 0x400010: DMA rev 2
 le0 at ledma0 slot 15 offset 0xc00000 level 6: address 08:00:20:71:14:f9
 le0: 8 receive buffers, 2 transmit buffers
 bpp0 at sbus0 slot 15 offset 0x4800000 level 2 (ipl 3): DMA rev 2
 dbri0 at sbus0 slot 15 offset 0x8010000 level 9: rev e
 hme0 at sbus0 slot 0 offset 0x8c00000 level 4 (ipl 7): Sun Happy Meal Ethernet (SUNW,hme)
 hme0: Ethernet address 08:00:20:71:14:f9
 nsphy0 at hme0 phy 1: DP83840 10/100 media interface, rev. 0
 nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 hme1 at sbus0 slot 1 offset 0x8c00000 level 4 (ipl 7): Sun Happy Meal Ethernet (SUNW,hme)
 hme1: Ethernet address 08:00:20:71:14:f9
 nsphy1 at hme1 phy 1: DP83840 10/100 media interface, rev. 0
 nsphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 hme2 at sbus0 slot 2 offset 0x8c00000 level 4 (ipl 7): Sun Happy Meal Ethernet (SUNW,hme)
 hme2: Ethernet address 08:00:20:71:14:f9
 nsphy2 at hme2 phy 1: DP83840 10/100 media interface, rev. 0
 nsphy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 magma0 at sbus0 slot 3 offset 0x0 level 9: Magma LC 2+1 Sp
 mtty0 at magma0: 2 ttys
 mbpp0 at magma0: 1 port
 eccmemctl0 at mainbus0 ioaddr 0x0: version 0x0/0x1
 timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
 dbri0: no mmcodec found
 audio0 at dbri0: half duplex, mmap
 scsibus0: waiting 2 seconds for devices to settle...
 sd0 at scsibus0 target 0 lun 0: <SEAGATE, ST1480   SUN0424, 7516> disk fixed
 sd0: 411 MB, 1476 cyl, 9 head, 63 sec, 512 bytes/sect x 843284 sectors
 sd0: sync (200.00ns offset 15), 8-bit (5.000MB/s) transfers
 root on sd0a dumps on sd0b
 root file system type: ffs
 Tue Jul 18 05:47:06 GMT 2006
 swapctl: adding /dev/sd0b as swap device at priority 0
 Checking for botched superblock upgrades: done.
 Starting file system checks:
 /dev/rsd0a: file system is clean; not checking
 /dev/rsd0d: file system is clean; not checking
 /dev/rsd0e: file system is clean; not checking
 /dev/rsd0f: file system is clean; not checking
 Setting tty flags.
 Enabling ipfilter.
 Setting sysctl variables:
 Starting network.
 Hostname: nozette
 IPv6 mode: host
 Configuring network interfaces: hme0 hme1 hme2.
 Adding interface aliases:
 Building databases...
 Starting syslogd.
 Installing NAT rules ... 0 entries flushed from NAT table
 Checking for core dump...
 Mounting all filesystems...
 Clearing /tmp.
 Creating a.out runtime link editor directory cache.
 Checking quotas: done.
 Setting securelevel: kern.securelevel: 0 -> 1
 Starting virecover.
 Starting local daemons:.
 Updating motd.
 Starting sshd.
 postfix: warning: My hostname nozette is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
 postsuper: warning: My hostname nozette is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
 postfix/postfix-script: warning: My hostname nozette is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
 postfix/postfix-script: starting the Postfix mail system
 Starting inetd.
 Starting cron.
 Tue Jul 18 05:47:42 UTC 2006


 Private Computer.  Go Away.


 login: 
 129 [sysop@nozette:~]$ 
 129 [sysop@nozette:~]$ cat /etc/ttys
 #       $NetBSD: ttys,v 1.13 2004/06/20 21:30:28 christos Exp $
 #
 #       @(#)ttys        5.1 (Berkeley) 4/17/89
 #
 # name  getty                           type    status          comments
 #
 console "/usr/libexec/getty suncons"    sun     on secure
 ttya    "/usr/libexec/getty std.9600"   unknown off secure
 ttyb    "/usr/libexec/getty std.9600"   unknown off secure
 tty00   "/usr/libexec/getty std.9600"   unknown off rtscts
 #tty01  "/usr/libexec/getty std.9600"   unknown off rtscts
 130 [sysop@nozette:~]$ 
 130 [sysop@nozette:~]$ ls -laF /dev/tty0[01]
 crw-------  1 uucp  wheel  100, 0 Jul  7 04:06 /dev/tty00
 crw-------  1 uucp  wheel  100, 1 Jul  7 04:06 /dev/tty01
 131 [sysop@nozette:~]$
 131 [sysop@nozette:~]$ ls -laF /dev/dty0[01]
 crw-rw-r--  1 uucp  dialer  100, 16 Jul  7 04:12 /dev/dty00
 crw-rw-r--  1 uucp  dialer  100, 17 Jul  7 04:12 /dev/dty01
 132 [sysop@nozette:~]$ 
 132 [sysop@nozette:~]$ tail /etc/remote
 # Hardwired lines
 #
 dty0c|dty0:dv=/dev/dty00:br#9600:pa=none:dc:
 dty0b:dv=/dev/dty00:br#2400:pa=none:dc:

 dty1c|dty1:dv=/dev/dty01:br#9600:pa=none:dc:
 dty1b:dv=/dev/dty01:br#2400:pa=none:dc:

 # REMEMBER NOT TO USE PARITY!
 console:dv=/dev/dty01:br#9600:pa=none:dc:
 133 [sysop@nozette:~]$ tip -115200 dty0
 connected
 <<<Machine is hung here >>>
 stopping on keyboard abort
 Type  'go' to resume
 Type  help  for more information
 ok 
 ok 


 Just in case PR port-sparc/52786 can prompt attention to this one.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-sparc/34046: dbri conflict w/magma hangs SS10
Date: Thu, 7 Dec 2017 13:09:13 -0600 (CST)

 And, for something a little more recent:

 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015
     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 7.99.21 (GENERIC) #0: Tue Sep  1 09:15:29 CDT 2015
 	sysop@skuld.technoskunk.fur:/d0/build/current/obj/sparc/sys/arch/sparc/compile/GENERIC
 total memory = 127 MB
 avail memory = 119 MB
 timecounter: Timecounters tick every 10.000 msec
 userconf: configure system autoconfiguration:
 uc> disable dbri
 [139] dbri* disabled
 uc> exit
 Continuing...
 bootpath: /iommu@f,e0000000/sbus@f,e0001000/SUNW,qfe@2,8c00000
 mainbus0 (root): SUNW,SPARCstation-10: hostid xxxxxxxx
 cpu0 at mainbus0: TMS390Z50 v1 @ 40 MHz, on-chip FPU
 cpu0: physical 20K instruction (64 b/l), 16K data (32 b/l), 1024K external (32 b/l): cache enabled
 obio0 at mainbus0
 clock0 at obio0 slot 0 offset 0x200000: mk48t08
 timer0 at obio0 slot 0 offset 0x300000: delay constant 18, frequency = 2000000 Hz
 timer: limit 0 shift 9 mask 3fffff
 timecounter: Timecounter "timer-counter" frequency 2000000 Hz quality 100
 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
 zstty4 at zs1 channel 0
 kbd0 at zstty4
 zstty5 at zs1 channel 1
 ms0 at zstty5
 wsmouse0 at ms0 mux 0
 fdc0 at obio0 slot 0 offset 0x700000 level 11 softpri 4: chip 82077
 fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
 auxreg0 at obio0 slot 0 offset 0x800000
 power0 at obio0 slot 0 offset 0xa01000 level 2
 iommu0 at mainbus0 ioaddr 0xe0000000: version 0x3/0x0, page-size 4096, range 64MB
 sbus0 at iommu0: clock = 20 MHz
 dma0 at sbus0 slot 15 offset 0x400000: DMA rev 2
 esp0 at dma0 slot 15 offset 0x800000 level 4: ESP200, 40MHz, SCSI ID 7
 scsibus0 at esp0: 8 targets, 8 luns per target
 ledma0 at sbus0 slot 15 offset 0x400010: DMA rev 2
 le0 at ledma0 slot 15 offset 0xc00000 level 6: address xx:xx:xx:xx:xx:xx
 le0: 8 receive buffers, 2 transmit buffers
 bpp0 at sbus0 slot 15 offset 0x4800000 level 2 (ipl 3): DMA rev 2
 SUNW,DBRIe at sbus0 slot 15 offset 0x8010000 level 9 not configured
 magma0 at sbus0 slot 0 offset 0x0 level 9: Magma LC 2+1 Sp
 mtty0 at magma0: 2 ttys
 mbpp0 at magma0: 1 port
 hme0 at sbus0 slot 2 offset 0x8c00000 level 4 (ipl 7): Sun Happy Meal Ethernet (SUNW,qfe)
 hme0: Ethernet address xx:xx:xx:xx:xx:xx
 ukphy0 at hme0 phy 1: OUI 0x0006b8, model 0x000c, rev. 1
 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 hme1 at sbus0 slot 2 offset 0x8c10000 level 4 (ipl 7): Sun Happy Meal Ethernet (SUNW,qfe)
 hme1: Ethernet address xx:xx:xx:xx:xx:xx
 ukphy1 at hme1 phy 1: OUI 0x0006b8, model 0x000c, rev. 1
 ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 hme2 at sbus0 slot 2 offset 0x8c20000 level 4 (ipl 7): Sun Happy Meal Ethernet (SUNW,qfe)
 hme2: Ethernet address xx:xx:xx:xx:xx:xx
 ukphy2 at hme2 phy 1: OUI 0x0006b8, model 0x000c, rev. 1
 ukphy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 hme3 at sbus0 slot 2 offset 0x8c30000 level 4 (ipl 7): Sun Happy Meal Ethernet (SUNW,qfe)
 hme3: Ethernet address xx:xx:xx:xx:xx:xx
 ukphy3 at hme3 phy 1: OUI 0x0006b8, model 0x000c, rev. 1
 ukphy3: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 eccmemctl0 at mainbus0 ioaddr 0x0: version 0x0/0x1
 timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
 scsibus0: waiting 2 seconds for devices to settle...
 wskbd0 at kbd0 mux 1
 sd0 at scsibus0 target 1 lun 0: <QUANTUM, PD1050iS, 3110> disk fixed
 sd0: 1003 MB, 2448 cyl, 12 head, 69 sec, 512 bytes/sect x 2055096 sectors
 sd0: sync (100.00ns offset 15), 8-bit (10.000MB/s) transfers, tagged queueing
 kbd0: reset failed
 Kernelized RAIDframe activated
 root on hme0
 nfs_boot: trying DHCP/BOOTP
 nfs_boot: DHCP next-server: a.b.c.d
 nfs_boot: my_name=nozette
 nfs_boot: my_domain=technoskunk.fur
 nfs_boot: my_addr=l.m.n.o
 nfs_boot: my_mask=255.255.255.0
 nfs_boot: gateway=p.q.r.s
 root on a.b.c.d:/r0/diskless/nozette
 root file system type: nfs
 kern.module.path=/stand/sparc/7.99.21/modules
 WARNING: clock lost 14 days
 WARNING: using filesystem time
 WARNING: CHECK AND RESET THE DATE!

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.