Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Oct 2009 08:37:23 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        Marcel Moolenaar <marcel@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r198431 - head/sys/dev/pci
Message-ID:  <200910260837.23479.jhb@freebsd.org>
In-Reply-To: <200910232253.n9NMr10R074584@svn.freebsd.org>
References:  <200910232253.n9NMr10R074584@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 23 October 2009 6:53:01 pm Marcel Moolenaar wrote:
> Author: marcel
> Date: Fri Oct 23 22:53:01 2009
> New Revision: 198431
> URL: http://svn.freebsd.org/changeset/base/198431
> 
> Log:
>   BIOSes, buggy or otherwise, are i386 or amd64 specific.
>   Have the early USB takeover enabled for i386 and amd64
>   by default.
>   This also avoids a panic on PowerPC where the resource
>   isn't released properly and we find a busy resource
>   when the USB host controller wants to allocate it...

Presumably such systems won't set the 'BIOS owned' bit in the their legacy 
support registers in which case these routines are NOPs (they just read the 
register, see the bit is clear, and exit).  The resource bug sounds like a 
real one that should be fixed and would probably affect any x86 systems who 
have USB disabled in the BIOS, so that should be fixed rather than papered 
over.  Please revert.

Note that the legacy support register stuff is part of the uhci/ohci/ehci 
specifications, and that the code to frob it has been part of the same 
drivers since their inception.  If it had been an actual problem then it 
would have been disabled back when USB was enabled for other architectures.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910260837.23479.jhb>