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

John Baldwin jhb at
Mon Feb 11 20:47:10 UTC 2019

Author: jhb
Date: Mon Feb 11 20:47:09 2019
New Revision: 344022

  Enable PCI BAR reallocation by default.
  When pci_realloc_bars was first added, the intention was to eventually
  enable it by default, but it was left disabled to preserve existing
  behavior.  The setting is pretty conservative in that it does not
  attempt to allocate resources for BARs that the BIOS/firmware leaves
  disabled.  It only attempts to reallocate resources for a BAR that the
  firmware programmed during boot but that conflicts with another
  resource during the kernel's device scan.
  PR 221350 is an example of a machine that this knob fixes.
  Reviewed by:	imp
  Differential Revision:


Modified: head/sys/dev/pci/pci.c
--- head/sys/dev/pci/pci.c	Mon Feb 11 20:46:32 2019	(r344021)
+++ head/sys/dev/pci/pci.c	Mon Feb 11 20:47:09 2019	(r344022)
@@ -341,7 +341,7 @@ SYSCTL_INT(_hw_pci, OID_AUTO, enable_io_modes, CTLFLAG
     " enable these bits correctly.  We'd like to do this all the time, but"
     " there are some peripherals that this causes problems with.");
-static int pci_do_realloc_bars = 0;
+static int pci_do_realloc_bars = 1;
 SYSCTL_INT(_hw_pci, OID_AUTO, realloc_bars, CTLFLAG_RWTUN,
     &pci_do_realloc_bars, 0,
     "Attempt to allocate a new range for any BARs whose original "

More information about the svn-src-all mailing list