From nobody@FreeBSD.org  Mon Oct 22 22:29:48 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 31C5C1C9
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 22 Oct 2012 22:29:48 +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 174348FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 22 Oct 2012 22:29:48 +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 q9MMTlcD003132
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 22 Oct 2012 22:29:47 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id q9MMTlro003131;
	Mon, 22 Oct 2012 22:29:47 GMT
	(envelope-from nobody)
Message-Id: <201210222229.q9MMTlro003131@red.freebsd.org>
Date: Mon, 22 Oct 2012 22:29:47 GMT
From: Adrian Chadd <adrian@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [arswitch] probe/attach occasionally fails to find a PHY
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         172968
>Category:       kern
>Synopsis:       [arge] probe/attach occasionally fails to find a PHY
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-embedded
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 22 22:30:01 UTC 2012
>Closed-Date:    Wed Aug 21 23:14:02 UTC 2013
>Last-Modified:  Wed Aug 21 23:14:02 UTC 2013
>Originator:     Adrian Chadd
>Release:        -HEAD, mips
>Organization:
>Environment:
>Description:
Occasionally the probe/attach of the AR8316 switch fails - the actual device doesn't fail, but the mdiobus it exposes doesn't always find a PHY.

This means that sometimes one of the on-board arge interfaces (which is linked to the stand-alone PHY) can't find a PHY and it simply fails to attach.
>How-To-Repeat:
Just keep rebooting an atheros MIPS board with an onboard AR8x16 switch.
>Fix:
Luis Otavio D'Souza found that disabling the page cache feature fixes it.
Ie, always set the page id before read/writing the switch register.


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-embedded 
Responsible-Changed-By: adrian 
Responsible-Changed-When: Mon Oct 22 22:31:05 UTC 2012 
Responsible-Changed-Why:  
Flip 


http://www.freebsd.org/cgi/query-pr.cgi?pr=172968 
State-Changed-From-To: open->closed 
State-Changed-By: loos 
State-Changed-When: Wed Aug 21 23:14:01 UTC 2013 
State-Changed-Why:  
Closing the PR. The problem was fixed by r253570. 

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