From owner-svn-src-head@FreeBSD.ORG Fri Oct 23 22:53:01 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E1ADF106566C; Fri, 23 Oct 2009 22:53:01 +0000 (UTC) (envelope-from marcel@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D0F638FC14; Fri, 23 Oct 2009 22:53:01 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n9NMr1eK074586; Fri, 23 Oct 2009 22:53:01 GMT (envelope-from marcel@svn.freebsd.org) Received: (from marcel@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n9NMr10R074584; Fri, 23 Oct 2009 22:53:01 GMT (envelope-from marcel@svn.freebsd.org) Message-Id: <200910232253.n9NMr10R074584@svn.freebsd.org> From: Marcel Moolenaar Date: Fri, 23 Oct 2009 22:53:01 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r198431 - head/sys/dev/pci X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Oct 2009 22:53:02 -0000 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... Modified: head/sys/dev/pci/pci.c Modified: head/sys/dev/pci/pci.c ============================================================================== --- head/sys/dev/pci/pci.c Fri Oct 23 22:07:34 2009 (r198430) +++ head/sys/dev/pci/pci.c Fri Oct 23 22:53:01 2009 (r198431) @@ -274,7 +274,11 @@ TUNABLE_INT("hw.pci.honor_msi_blacklist" SYSCTL_INT(_hw_pci, OID_AUTO, honor_msi_blacklist, CTLFLAG_RD, &pci_honor_msi_blacklist, 1, "Honor chipset blacklist for MSI"); +#if defined(__i386__) || defined(__amd64__) static int pci_usb_takeover = 1; +#else +static int pci_usb_takeover = 0; +#endif TUNABLE_INT("hw.pci.usb_early_takeover", &pci_usb_takeover); SYSCTL_INT(_hw_pci, OID_AUTO, usb_early_takeover, CTLFLAG_RD | CTLFLAG_TUN, &pci_usb_takeover, 1, "Enable early takeover of USB controllers.\n\