svn commit: r198431 - head/sys/dev/pci

Marcel Moolenaar marcel at FreeBSD.org
Fri Oct 23 22:53:02 UTC 2009


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\


More information about the svn-src-head mailing list