PERFORCE change 193093 for review

John Baldwin jhb at FreeBSD.org
Sat May 14 01:02:41 UTC 2011


http://p4web.freebsd.org/@@193093?ac=10

Change 193093 by jhb at jhb_fiver on 2011/05/14 01:01:43

	More knobs to stress test things.

Affected files ...

.. //depot/projects/pci/sys/dev/pci/pci.c#19 edit
.. //depot/projects/pci/sys/dev/pci/pci_pci.c#22 edit

Differences ...

==== //depot/projects/pci/sys/dev/pci/pci.c#19 (text+ko) ====

@@ -304,11 +304,16 @@
 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,
+SYSCTL_INT(_hw_pci, OID_AUTO, usb_early_takeover, CTLFLAG_RDTUN,
     &pci_usb_takeover, 1, "Enable early takeover of USB controllers.\n\
 Disable this if you depend on BIOS emulation of USB devices, that is\n\
 you use USB devices (like keyboard or mouse) but do not load USB drivers");
 
+static int pci_clear_bars;
+TUNABLE_INT("hw.pci.clear_bars", &pci_clear_bars);
+SYSCTL_INT(_hw_pci, OID_AUTO, clear_bars, CTLFLAG_RDTUN, &pci_clear_bars, 0,
+    "Ignore firmware-assigned resources for BARs.");
+
 /* Find a device_t by bus/slot/function in domain 0 */
 
 device_t

==== //depot/projects/pci/sys/dev/pci/pci_pci.c#22 (text+ko) ====

@@ -108,8 +108,12 @@
 DRIVER_MODULE(pcib, pci, pcib_driver, pcib_devclass, 0, 0);
 
 #ifdef NEW_PCIB
+SYSCTL_DECL(_hw_pci);
+
 static int pcib_clear;
 TUNABLE_INT("hw.pci.pcib_clear", &pcib_clear);
+SYSCTL_INT(_hw_pci, OID_AUTO, pcib_clear, CTLFLAG_RDTUN, &pcib_clear, 0,
+    "Clear firmware-assigned resources for PCI-PCI bridge I/O windows.");
 
 /*
  * NEW_PCIB todo:


More information about the p4-projects mailing list