From nobody@FreeBSD.org  Thu Jun 16 22:50:54 2011
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 9A05E106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 16 Jun 2011 22:50:54 +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 8A30F8FC13
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 16 Jun 2011 22:50:54 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p5GMosE5014883
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 16 Jun 2011 22:50:54 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p5GMos8u014882;
	Thu, 16 Jun 2011 22:50:54 GMT
	(envelope-from nobody)
Message-Id: <201106162250.p5GMos8u014882@red.freebsd.org>
Date: Thu, 16 Jun 2011 22:50:54 GMT
From: "Timothy T. Smith" <timothytsmith@hotmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: loading CAS4 at boot hangs system
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         157932
>Category:       kern
>Synopsis:       [cas] loading CAS4 at boot hangs system
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    gavin
>State:          feedback
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 16 23:00:17 UTC 2011
>Closed-Date:    
>Last-Modified:  Wed Jun 22 21:22:13 UTC 2011
>Originator:     Timothy T. Smith
>Release:        8-STABLE #4 6/18/2011
>Organization:
Personal MIS LLC
>Environment:
FreeBSD nas1.exitexchange.com 8.2-STABLE FreeBSD 8.2-STABLE #4: Wed Jun 15
 18:29:13 PDT 2011 root@nas1.exitexchange.com:/usr/obj/usr/src/sys/SAN amd64

>Description:
System will hang with "error attaching PHYs" when CAS4 is loaded at boot time. It does not recover.

This is true when adding if_cas_load="yes" in loader.conf OR "device cas" is built into the kernel.

This is also true even if all other network drivers besides em are removed.

The card using the CAS4 drivers is a Sun Micro Gigaswift 501-6522.
>How-To-Repeat:
Load CAS4 at boot.
>Fix:
No fix, but a work around is to manually load the driver after system boot. This process will load the driver with out issues:

/sbin/kldload if_cas
/sbin/kldunload if_cas
/sbin/kldload if_cas

I don't know why, but this always works. Loading manually the first time results in the same "error attaching PHYs". The error goes away after unloading then reloading and the card works after that.


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: gavin 
State-Changed-When: Wed Jun 22 21:17:42 UTC 2011 
State-Changed-Why:  
To submitter: Coul;d you please enable verbose dmesg 
(sysctl debug.bootverbose=1), go through the kldload/kldunload/kldload 
process, and provide the resulting parts of the dmesg please? 


Responsible-Changed-From-To: freebsd-bugs->gavin 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Wed Jun 22 21:17:42 UTC 2011 
Responsible-Changed-Why:  
Track 

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