From owner-freebsd-current@FreeBSD.ORG Tue Jul 20 12:43:52 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ED34A16A537; Tue, 20 Jul 2004 12:43:47 +0000 (GMT) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id 9AC6943D2F; Tue, 20 Jul 2004 12:43:46 +0000 (GMT) (envelope-from iedowse@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 20 Jul 2004 13:43:45 +0100 (BST) To: "M. Warner Losh" In-Reply-To: Your message of "Mon, 19 Jul 2004 19:50:56 MDT." <20040719.195056.35662742.imp@bsdimp.com> Date: Tue, 20 Jul 2004 13:43:44 +0100 From: Ian Dowse Message-ID: <200407201343.aa92531@salmon.maths.tcd.ie> cc: mycroft@NetBSD.org cc: scottl@freebsd.org cc: freebsd-current@freebsd.org cc: pjd@freebsd.org Subject: Re: Unloading USB driver while device is attached. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jul 2004 12:43:53 -0000 In message <20040719.195056.35662742.imp@bsdimp.com>, "M. Warner Losh" writes: >: o Attempt to follow the correct procedure for synchronising with >: the BIOS via SMM to take over control of the EHCI controller. >: This may fix problems when the BIOS is configured to emulate >: legacy devices, but is untested on any affected machines. > >Docs on how to do this? I've not seen this info... It's in the EHCI spec at: http://developer.intel.com/technology/usb/download/ehci-r10.pdf See sections 5.1 (EHCI Extended Capability: Pre-OS to OS Handoff Synchronization) and 2.1.7 (USBLEGSUP - USB Legacy Support Extended Capability). A quick summary is that if the BIOS implements legacy emulation via SMIs then there is a particular host controller flag that the OS is supposed to set that will cause the BIOS to receive an SMI. The BIOS should recognise this signal and disable the legacy support, giving the OS exclusive access to the host controller. Ian