From adsharma@eagle.sharma-home.net  Mon Jan 20 21:50:22 2003
Return-Path: <adsharma@eagle.sharma-home.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id 7049337B401; Mon, 20 Jan 2003 21:50:22 -0800 (PST)
Received: from eagle.sharma-home.net (cpe-66-1-147-119.ca.sprintbbd.net [66.1.147.119])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id 104EE43F18; Mon, 20 Jan 2003 21:50:22 -0800 (PST)
	(envelope-from adsharma@eagle.sharma-home.net)
Received: by eagle.sharma-home.net (Postfix, from userid 500)
	id 4196E8115; Mon, 20 Jan 2003 21:53:19 -0800 (PST)
Message-Id: <20030121055319.GA13113@sharma-home.net>
Date: Mon, 20 Jan 2003 21:53:19 -0800
From: Arun Sharma <arun@sharma-home.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc: hackers@freebsd.org
Subject: device probing not verbose when using boot -v

>Number:         47286
>Category:       kern
>Synopsis:       [request] [patch] make device probing verbose when using boot -v
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 20 22:00:14 PST 2003
>Closed-Date:    
>Last-Modified:  Sun Jul 01 15:59:41 UTC 2012
>Originator:     Arun Sharma
>Release:        FreeBSD 5.0 i386
>Organization:
>Environment:

When FreeBSD has trouble booting on some hardware, the lockup is silent
and leaves no clues about where the hang is happening, even if the user
is using boot -v. This makes it very hard for a tester to report
meaningful bugs.

Specific case in question: kern/44619. The hang was in eisa_probe, but
the kernel messages don't provide a clue.

So the proposal is to print the name of the device being probed and
attached before attempting to do it in

	kern/subr_bus.c:device_probe_and_attach()

if (bootverbose) is set.
>Description:
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed 
State-Changed-By: vwe 
State-Changed-When: Mon Aug 16 22:12:56 UTC 2010 
State-Changed-Why:  
I think what Arun was thinking about (7.5 years ago...) was something like the patch I've made: 
http://people.freebsd.org/~vwe/files/patches/pr47286_subr_bus.c.diff 
which in bootverbose prints a short message before probing and before attaching the device.  

http://www.freebsd.org/cgi/query-pr.cgi?pr=47286 
State-Changed-From-To: analyzed->open 
State-Changed-By: eadler 
State-Changed-When: Sun Jul 1 15:59:40 UTC 2012 
State-Changed-Why:  
unowned PRs should not be in analyzed state 

http://www.freebsd.org/cgi/query-pr.cgi?pr=47286 
>Unformatted:
