NetBSD Problem Report #38684

From martin@duskware.de  Sun May 18 11:59:49 2008
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id AD03563B8BC
	for <gnats-bugs@gnats.netbsd.org>; Sun, 18 May 2008 11:59:49 +0000 (UTC)
Message-Id: <20080518022337.3C64963B8BC@narn.NetBSD.org>
Date: Sun, 18 May 2008 02:23:37 +0000 (UTC)
From: isaki@pastel-flower.jp
Reply-To: isaki@pastel-flower.jp
To: netbsd-bugs-owner@NetBSD.org
Subject: zstty(4) freezes without LOCKDEBUG
X-Send-Pr-Version: www-1.0

>Number:         38684
>Category:       port-x68k
>Synopsis:       zstty(4) freezes without LOCKDEBUG
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    tsutsui
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 18 12:00:01 +0000 2008
>Closed-Date:    Fri May 23 17:36:27 +0000 2008
>Last-Modified:  Fri May 23 17:36:27 +0000 2008
>Originator:     Tetsuya Isaki
>Release:        4.99.63
>Organization:
>Environment:
NetBSD/x68k - 4.99.63.
any configuration could not boot, so there is no uname.

>Description:
Using a GENERIC kernel, zstty @ zsc freezes while booting.
On the other hand, a GENERIC kernel with LOCKDEBUG,
zstty @ zsc passes successfully.

Here is a screen copy:
:
mfp0 at intio0 addr 0xe880000 intr 0x40
kbd0 at mfp0
clock0 at mfp0: MFP timer C
rtc0 at intio0 addr 0xe8a000: RP5C15
dmac0 at intio0 addr 0xe84000: HD63450 DMAC
dmac0: 4 channels avaialble.
zsc0 at intio0 addr 0xe98000 intr 0x70
zstty0 at zsc0 channel 0
>How-To-Repeat:
Boot GENERIC on x68k.
>Fix:
N/A

>Release-Note:

>Audit-Trail:
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@NetBSD.org, gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org,
        tsutsui@ceres.dti.ne.jp
Subject: Re: kern/38684: zstty(4) freezes without LOCKDEBUG
Date: Sun, 18 May 2008 21:29:04 +0900

 > Using a GENERIC kernel, zstty @ zsc freezes while booting.

 zstty(4) works fine on cobalt and news68k without LOCKDEBUG,
 so maybe it's x68k specific.

 I wonder if zscn_cs in x68k/dev/zs.c:zs_putc() should be updated
 once after the device is attached during autoconf(9).
 ---
 Izumi Tsutsui

From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org, isaki@pastel-flower.jp
Cc: kern-bug-people@NetBSD.org, gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org,
        tsutsui@ceres.dti.ne.jp
Subject: Re: kern/38684: zstty(4) freezes without LOCKDEBUG
Date: Tue, 20 May 2008 01:45:30 +0900

 > Boot GENERIC on x68k.

 IPL_SERIAL (which is defined as IPL_HIGH) is not initialized?

 (BTW, which ipl does zs use? 4 or 5?)
 ---


 Index: include/intr.h
 ===================================================================
 RCS file: /cvsroot/src/sys/arch/x68k/include/intr.h,v
 retrieving revision 1.18
 diff -u -r1.18 intr.h
 --- include/intr.h	28 Apr 2008 20:23:40 -0000	1.18
 +++ include/intr.h	19 May 2008 16:37:34 -0000
 @@ -41,7 +41,7 @@
  #define splsoftclock()	splraise1()
  #define splsoftnet()	splraise1()
  #define splsoftserial()	splraise1()
 -#define splvm()         splraise4()
 +#define splvm()         splraise5()
  #define splsched()      spl7()
  #define splhigh()       spl7()

 @@ -57,7 +57,7 @@
  #define	IPL_SOFTNET	3
  #define	IPL_SOFTSERIAL	4
  #define	IPL_VM		5
 -#define	IPL_SCHED	5
 +#define	IPL_SCHED	6
  #define	IPL_HIGH	6
  #define	NIPL		7

 Index: x68k/machdep.c
 ===================================================================
 RCS file: /cvsroot/src/sys/arch/x68k/x68k/machdep.c,v
 retrieving revision 1.146
 diff -u -r1.146 machdep.c
 --- x68k/machdep.c	3 Dec 2007 15:34:26 -0000	1.146
 +++ x68k/machdep.c	19 May 2008 16:37:34 -0000
 @@ -915,8 +915,8 @@
  	[IPL_SOFTCLOCK]  = PSL_IPL1,
  	[IPL_SOFTNET]    = PSL_IPL1,
  	[IPL_SOFTSERIAL] = PSL_IPL1,
 -	[IPL_VM]         = PSL_IPL4,
 -	[IPL_SCHED]      = PSL_IPL6,
 +	[IPL_VM]         = PSL_IPL5,
 +	[IPL_SCHED]      = PSL_IPL7,
  };

  ipl_cookie_t

From: Tetsuya Isaki <isaki@pastel-flower.jp>
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Cc: gnats-bugs@NetBSD.org,
	kern-bug-people@NetBSD.org,
	gnats-admin@NetBSD.org,
	netbsd-bugs@NetBSD.org
Subject: Re: kern/38684: zstty(4) freezes without LOCKDEBUG
Date: Fri, 23 May 2008 22:12:09 +0900

 Thank you, tsutsui-san.
 It works, and I have commited it.

 At Tue, 20 May 2008 01:45:30 +0900,
 Izumi Tsutsui wrote:
 > 
 > > Boot GENERIC on x68k.
 > 
 > IPL_SERIAL (which is defined as IPL_HIGH) is not initialized?
 > 
 > (BTW, which ipl does zs use? 4 or 5?)

Responsible-Changed-From-To: kern-bug-people->tsutsui
Responsible-Changed-By: tsutsui@NetBSD.org
Responsible-Changed-When: Sat, 24 May 2008 02:36:27 +0900
Responsible-Changed-Why:


State-Changed-From-To: open->closed
State-Changed-By: tsutsui@NetBSD.org
State-Changed-When: Sat, 24 May 2008 02:36:27 +0900
State-Changed-Why:
fix committed.


>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.