From owner-p4-projects@FreeBSD.ORG Sat May 14 01:02:41 2011 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 80BE8106567A; Sat, 14 May 2011 01:02:41 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 437CE1065677 for ; Sat, 14 May 2011 01:02:41 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from skunkworks.freebsd.org (skunkworks.freebsd.org [IPv6:2001:4f8:fff6::2d]) by mx1.freebsd.org (Postfix) with ESMTP id 316988FC0C for ; Sat, 14 May 2011 01:02:41 +0000 (UTC) Received: from skunkworks.freebsd.org (localhost [127.0.0.1]) by skunkworks.freebsd.org (8.14.4/8.14.4) with ESMTP id p4E12fLj095932 for ; Sat, 14 May 2011 01:02:41 GMT (envelope-from jhb@freebsd.org) Received: (from perforce@localhost) by skunkworks.freebsd.org (8.14.4/8.14.4/Submit) id p4E12f76095929 for perforce@freebsd.org; Sat, 14 May 2011 01:02:41 GMT (envelope-from jhb@freebsd.org) Date: Sat, 14 May 2011 01:02:41 GMT Message-Id: <201105140102.p4E12f76095929@skunkworks.freebsd.org> X-Authentication-Warning: skunkworks.freebsd.org: perforce set sender to jhb@freebsd.org using -f From: John Baldwin To: Perforce Change Reviews Precedence: bulk Cc: Subject: PERFORCE change 193093 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 May 2011 01:02:41 -0000 http://p4web.freebsd.org/@@193093?ac=10 Change 193093 by jhb@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: