NetBSD Problem Report #38827

From taca@calm.i.kisu.co.jp  Mon Jun  2 08:29:52 2008
Return-Path: <taca@calm.i.kisu.co.jp>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 63BD663BA89
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  2 Jun 2008 08:29:52 +0000 (UTC)
Message-Id: <20080602082947.AA38E1B5CA@calm.i.kisu.co.jp>
Date: Mon,  2 Jun 2008 17:29:47 +0900 (JST)
From: taca@back-street.net
Reply-To: taca@calm.i.kisu.co.jp
To: gnats-bugs@gnats.NetBSD.org
Subject: DIAGNOSTIC kernel crash with USB floppy/cdrom
X-Send-Pr-Version: 3.95

>Number:         38827
>Category:       kern
>Synopsis:       DIAGNOSTIC kernel crash with USB floppy/cdrom
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    mrg
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 02 08:30:00 +0000 2008
>Closed-Date:    Sat Apr 20 05:25:03 +0000 2019
>Last-Modified:  Sat Apr 20 05:25:03 +0000 2019
>Originator:     Takahiro Kambe
>Release:        NetBSD 4.0_STABLE
>Organization:

>Environment:


System: NetBSD calm.i.kisu.co.jp 4.0_STABLE NetBSD 4.0_STABLE (CALM) #43: Tue Dec 18 17:39:08 JST 2007 sisbic-info@kisu.co.jp:/work/NetBSD-4/i386.obj/sys/arch/i386/compile/CALM i386
Architecture: i386
Machine: i386
>Description:
	DIAGNOSTIC kernel may crash with USB floppy/cdrom though INSTALL
	kernel boot fine.

panic: kernel diagnostic assertion "!cold" failed: file "/usr/src/sys/dev/scsipi/scsipi_base.c", line 391

	In the case of CDROM, I disabled BIOS's "USB Legacy Support" from
	"Enabled" to "KB/MS" or "Disabled", DIAGNOSTIC kernel boot fine.

	In the case of USB Floppy drive, it panics any setting of the BIOS.

>How-To-Repeat:
	Boot DIAGNOSTIC kernel with USB cdrom or floppy, especailly BIOS's
	"USB Legacy Support" to "Enabled".
>Fix:
	Unknown.

>Release-Note:

>Audit-Trail:
From: Takahiro Kambe <taca@back-street.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/38827: DIAGNOSTIC kernel crash with USB floppy/cdrom
Date: Thu, 05 Jun 2008 18:48:21 +0900 (JST)

 It find out that this crash happens when added "flags 1"  to usb(4).
 For some reason, I added that flags to detect USB hard disk at boot
 time as far as I remeber.

 So, dropping these flags solve my problem.

  # USB bus support
 -usb*	at ehci? flags 1
 -usb*	at uhci? flags 1
 -usb*	at ohci? flags 1
 +usb*	at ehci? # flags 1
 +usb*	at uhci? # flags 1
 +usb*	at ohci? # flags 1

 Anyway, substantial problem still exists.

 -- 
 Takahiro Kambe <taca@back-street.net>

Responsible-Changed-From-To: kern-bug-people->mrg
Responsible-Changed-By: mrg@NetBSD.org
Responsible-Changed-When: Tue, 18 Sep 2018 02:31:23 +0000
Responsible-Changed-Why:
i'll have a look.


State-Changed-From-To: open->analyzed
State-Changed-By: mrg@NetBSD.org
State-Changed-When: Tue, 18 Sep 2018 02:31:23 +0000
State-Changed-Why:
i believe the "flags 1" code is now dead, but it needs testing.  all USB
device should be detected in early boot up now, in time for anything that
would want them to exist.

infact, the "flags 1" code runs in usb_doattach() happens after "cold =0"
is set which means it never runs.


State-Changed-From-To: analyzed->closed
State-Changed-By: mrg@NetBSD.org
State-Changed-When: Sat, 20 Apr 2019 05:25:03 +0000
State-Changed-Why:
this should no longer be a problem.  thanks.


>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.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.