NetBSD Problem Report #42973

From hauke@Espresso.Rhein-Neckar.DE  Sun Mar 14 20:33:19 2010
Return-Path: <hauke@Espresso.Rhein-Neckar.DE>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 4FB5963B86C
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 14 Mar 2010 20:33:19 +0000 (UTC)
Message-Id: <201003142028.o2EKSYg4023824@pizza.causeuse.org>
Date: Sun, 14 Mar 2010 21:28:34 +0100 (CET)
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
Reply-To: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
To: gnats-bugs@gnats.NetBSD.org
Cc: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
Subject: Booting Macintosh IIsi to serial console panics
X-Send-Pr-Version: 3.95

>Number:         42973
>Category:       port-mac68k
>Synopsis:       Booting Macintosh IIsi to serial console panics
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-mac68k-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 14 20:35:00 +0000 2010
>Last-Modified:  Sun Nov 06 00:30:08 +0000 2011
>Originator:     Hauke Fath
>Release:        NetBSD 5.99.24
>Organization:
Falling Raindrops
>Environment:


System: NetBSD/mac68k 5.99.24 DEBUG
Architecture: m68k
Machine: mac68k
>Description:

	Booting a -current kernel on a Macintosh IIsi with serial
	console enabled panics:

Bootstrapping NetBSD/mac68k.
Getting mapping from MMU.
Loaded at 0x4000000
System RAM: 17498112 bytes in 4272 pages.
     Low = 0x50000, high = 0x100000
     Low = 0x4000000, high = 0x5000000
On-board video at addr 0x0xfee08000 (phys 0x0x0), len 0x50000.
Done.
Bootstrapping the pmap system.
Pmap bootstrapped.
Moving ROMBase from 0x40800000 to 0x502000.
Video address 0x0xfee08000 -> 0x0x702000.
Loaded initial symtab at 0x36d248, strtab at 0x3c3858, # entries 21301
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010
    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 5.99.24 (DEBUG) #0: Sun Mar 14 21:02:06 CET 2010
	hf@Hochstuhl:/var/obj/netbsd-builds/developer/mac68k/sys/arch/mac68k/compile/DEBUG
Apple Macintosh IIsi  (68030)
cpu: delay factor 266
fpu: mc68882
total memory = 16384 KB
avail memory = 11592 KB
mrg: 'Mac IIsi class ROMs' ROM glue, tracing off, debug off, silent traps
mrg: I/O map kludge for ROMs that use hardware addresses directly.
mainbus0 (root)
obio0 at mainbus0
adb0 at obio0
asc0 at obio0: Apple Sound Chip
intvid0 at obio0 @ 0: RBV video subsystem, Macintosh II display
intvid0: 640 x 480,  monochrome
macfb0 at intvid0
wsdisplay0 at macfb0 (kbdmux ignored)
iwm0 at obio0: Apple GCR floppy disk controller
fd0 at iwm0 drive 0: (drive empty)
sbc0 at obio0 addr 0: options=01<PDMA>
scsibus0 at sbc0: 8 targets, 8 luns per target
zsc0 at obio0 chip type 0 
zsc0 channel 0: d_speed   9600 DCD clk 0 CTS clk 0
zstty0 at zsc0 channel 0 (console i/o)
zsc0 channel 1: d_speed   9600 DCD clk 0 CTS clk 0
zstty1 at zsc0 channel 1
nubus0 at mainbus0
ae0 at nubus0 slot 9: Ethernet A-Series, 64KB memory
ae0: Ethernet address 00:40:10:02:0e:59
Stopped in pid 0.1 (system) at  netbsd:cpu_Debugger+0x6: unlk a6
cpu_Debugger(18,0,112904,2f0ca10,2f0cab0) + 6
zstty_stint(2f0ca10,0) + 152
zsc_intr_hard(2f0ca04,1109c,111c5c,3fcf50,cd9c0) + 120
zshard(2f0ca04,3fcf78,3554,70,2714) + 12
intr_dispatch(70) + 4e
intrhand(?)
cpu_configure(1109c,d048,800608c9,ffffcffc,50) + a
main(3fcff4,151d18,70f000,1000,348a28) + 20e
low() + 6
db>

	The serial console is unresponsive at the debugger prompt; the
	stack trace was produced by the DDB_COMMANDONENTER setting
	below.

	Same thing happens with 2009-04 and 2010-03 netbsd-5 kernels.

	DEBUG is the following kernel config, essentially a GENERICSBC
	with all debug switches on:


<snip>
include         "arch/mac68k/conf/GENERIC"

# commands which will be executed on each entry to ddb
options         DDB_COMMANDONENTER="trace"

options         DIAGNOSTIC
options         DEBUG
options         LOCKDEBUG

no ncrscsi0                             # SCSI NCR 5380

# SBC_PDMA      0x01    Use PDMA for polled transfers
# SBC_INTR      0x02    Allow SCSI IRQ/DRQ interrupts
# SBC_RESELECT  0x04    Allow disconnect/reselect
sbc0    at obio? addr 0 flags 0x1       # MI SCSI NCR 5380
</snip>


>How-To-Repeat:

	Boot a -current kernel on a IIsi with serial console.

>Fix:
	None. Hard to see what's going on with a dead debugger prompt.

>Audit-Trail:
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
To: gnats-bugs@NetBSD.org
Cc: port-mac68k-maintainer@NetBSD.org, gnats-admin@NetBSD.org
Subject: Re: port-mac68k/42973: Booting Macintosh IIsi to serial console
 panics
Date: Sat, 15 Oct 2011 14:13:35 +0200

 FTR, the machine is fine with a 5.99.56 kernel and userland. I haven't
 tested netbsd-5, yet.

 	hauke


 --
 "It's never straight up and down"     (DEVO)


From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-mac68k/42973: Booting Macintosh IIsi to serial console
 panics
Date: Sat, 5 Nov 2011 13:14:30 +0000

 On Sat, Oct 15, 2011 at 12:30:06PM +0000, Hauke Fath wrote:
  >  FTR, the machine is fine with a 5.99.56 kernel and userland. I haven't
  >  tested netbsd-5, yet.

 Unless you specifically want to test -5 I think we can probably assume
 this was -current only and close it. Is that ok?

 -- 
 David A. Holland
 dholland@netbsd.org

From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
To: gnats-bugs@NetBSD.org
Cc: port-mac68k-maintainer@NetBSD.org, gnats-admin@NetBSD.org
Subject: Re: port-mac68k/42973: Booting Macintosh IIsi to serial console 
 panics
Date: Sat, 5 Nov 2011 23:27:27 +0100

 At 13:15 Uhr +0000 5.11.2011, David Holland wrote:
 > On Sat, Oct 15, 2011 at 12:30:06PM +0000, Hauke Fath wrote:
 >  >  FTR, the machine is fine with a 5.99.56 kernel and userland. I haven't
 >  >  tested netbsd-5, yet.
 >
 > Unless you specifically want to test -5 I think we can probably assume
 > this was -current only and close it. Is that ok?

 Hm. Since I explicitely mentioned netbsd-5 at the time

 | Same thing happens with 2009-04 and 2010-03 netbsd-5 kernels.

 I'd rather check a netbsd-5 kernel, first.

 	hauke


 --
 "It's never straight up and down"     (DEVO)


From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-mac68k/42973: Booting Macintosh IIsi to serial console
 panics
Date: Sun, 6 Nov 2011 00:28:03 +0000

 On Sat, Nov 05, 2011 at 11:00:08PM +0000, Hauke Fath wrote:
  >  > Unless you specifically want to test -5 I think we can probably assume
  >  > this was -current only and close it. Is that ok?
  >  
  >  Hm. Since I explicitely mentioned netbsd-5 at the time
  >  
  >  | Same thing happens with 2009-04 and 2010-03 netbsd-5 kernels.
  >  
  >  I'd rather check a netbsd-5 kernel, first.

 Oops, I missed that.

 -- 
 David A. Holland
 dholland@netbsd.org

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.