From nobody@FreeBSD.org  Mon Sep 10 16:21:45 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 620FE106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 10 Sep 2012 16:21:45 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 349A38FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 10 Sep 2012 16:21:45 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q8AGLi8L031978
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 10 Sep 2012 16:21:44 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id q8AGLiDx031977;
	Mon, 10 Sep 2012 16:21:44 GMT
	(envelope-from nobody)
Message-Id: <201209101621.q8AGLiDx031977@red.freebsd.org>
Date: Mon, 10 Sep 2012 16:21:44 GMT
From: Darko Hojnik <dhojnik@brainbits.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ipmi driver crashes kernel by reboot or shutdown
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         171524
>Category:       kern
>Synopsis:       [ipmi] ipmi driver crashes kernel by reboot or shutdown
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-net
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 10 16:30:03 UTC 2012
>Closed-Date:    
>Last-Modified:  Tue Sep 11 20:00:17 UTC 2012
>Originator:     Darko Hojnik
>Release:        9.1-RC1 and 9.0-RELEASE
>Organization:
Brainbits GMBH
>Environment:
FreeBSD mightychicken 9.1-RC1 FreeBSD 9.1-RC1 #0: Tue Aug 14 04:25:06 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Hi there,

if the ipmi driver is loaded the system crashes by reboot or shutdown

root@mightychicken:/root # reboot 
Sep 10 18:39:40 mightychicken reboot: rebooted by root
Sep 10 18:39:40 mightychicken syslogd: exiting on signal 15
Waiting (max 60 seconds) for system process `vnlru' to stop...done
Waiting (max 60 seconds) for system process `bufdaemon' to stop...done
Waiting (max 60 seconds) for system process `syncer' to stop...
Syncing disks, vnodes remaining...4 4 4 Sleeping thread (tid 100167, pid 16) owns a non-sleepable lock
KDB: stack backtrace of thread 100167:
#0 0xffffffff808f29e6 at mi_switch+0x186
#1 0xffffffff8092b7f2 at sleepq_wait+0x42
#2 0xffffffff808f3176 at _sleep+0x376
#3 0xffffffff8174a227 at ipmi_submit_driver_request+0x97
#4 0xffffffff8174a9df at ipmi_set_watchdog+0xaf
#5 0xffffffff8174ac8f at ipmi_wd_event+0x8f
#6 0xffffffff807bb76f at kern_do_pat+0x9f
#7 0xffffffff80983997 at sched_sync+0x1e7
#8 0xffffffff808bb69f at fork_exit+0x11f
#9 0xffffffff80bc320e at fork_trampoline+0xe
panic: sleeping thread
cpuid = 19
KDB: stack backtrace:
#0 0xffffffff80920546 at kdb_backtrace+0x66
#1 0xffffffff808ea55e at panic+0x1ce
#2 0xffffffff8092e9c2 at propagate_priority+0x1d2
#3 0xffffffff8092f6ee at turnstile_wait+0x1be
#4 0xffffffff808d89e8 at _mtx_lock_sleep+0xd8
#5 0xffffffff8097d1c3 at vn_syncer_add_to_worklist+0x143
#6 0xffffffff809812d4 at reassignbuf+0xe4
#7 0xffffffff809659d2 at bdirty+0x42
#8 0xffffffff80969a42 at bdwrite+0x52
#9 0xffffffff80afcac3 at ffs_update+0x2c3
#10 0xffffffff80b09a7f at handle_workitem_remove+0x1cf
#11 0xffffffff80b08f90 at process_worklist_item+0x2b0
#12 0xffffffff80b0cd86 at softdep_process_worklist+0x96
#13 0xffffffff80b0f397 at softdep_flush+0x197
#14 0xffffffff808bb69f at fork_exit+0x11f
#15 0xffffffff80bc320e at fork_trampoline+0xe
Uptime: 28m48s
Automatic reboot in 15 seconds - press a key on the console to abort
Rebooting...
cpu_reset: Restarting BSP
cpu_reset_proxy: Stopped CPU 19

The mainboard is an Tyan S7010 with 96 GB memory and two XEON E5645

by searching on google I've found 

http://freebsd.1045724.n5.nabble.com/stable-9-panic-on-reboot-ipmi-wd-event-td5728441.html

Also I've tried to load the drivers from 9.0 with the same resold.  
>How-To-Repeat:
kldload ipmi
reboot
>Fix:
Workaround

kldunload ipmi
kldunload smbus

reboot

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Sep 10 16:32:46 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=171524 

From: Sean Bruno <seanbru@yahoo-inc.com>
To: bug-followup@FreeBSD.org, dhojnik@brainbits.net
Cc:  
Subject: Re: kern/171524: [ipmi] ipmi driver crashes kernel by reboot or
 shutdown
Date: Tue, 11 Sep 2012 12:56:16 -0700

 It looks like the fix is not in releng_91 for release.
 http://svnweb.freebsd.org/base/stable/9/sys/dev/ipmi/ipmi.c?revision=239920&view=markup
 
 You can either patch the system by hand by applying this change to your
 local tree or update to stable/9 to fix this.
 
 http://www.wonkity.com/~wblock/docs/html/stable.html
 
 Sean
 
>Unformatted:
