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

Justin Hibbits jhibbits at FreeBSD.org
Wed May 30 22:39:42 UTC 2018


Author: jhibbits
Date: Wed May 30 22:39:41 2018
New Revision: 334407
URL: https://svnweb.freebsd.org/changeset/base/334407

Log:
  Only conform to PCIe spec of 1 device per bus on !x86
  
  bhyve's root PCI complex shows up as PCIe, but behaves as traditional PCI.
  Until that is special cased in a root complex driver, leave x86 as it was.
  
  Requested by:	grehan

Modified:
  head/sys/dev/pci/pci_pci.c

Modified: head/sys/dev/pci/pci_pci.c
==============================================================================
--- head/sys/dev/pci/pci_pci.c	Wed May 30 22:36:09 2018	(r334406)
+++ head/sys/dev/pci/pci_pci.c	Wed May 30 22:39:41 2018	(r334407)
@@ -2545,6 +2545,7 @@ pcib_enable_ari(struct pcib_softc *sc, uint32_t pcie_p
 int
 pcib_maxslots(device_t dev)
 {
+#if !defined(__amd64__) && !defined(__i386__)
 	uint32_t pcie_pos;
 	uint16_t val;
 
@@ -2559,6 +2560,7 @@ pcib_maxslots(device_t dev)
 		    val == PCIEM_TYPE_DOWNSTREAM_PORT)
 			return (0);
 	}
+#endif
 	return (PCI_SLOTMAX);
 }
 


More information about the svn-src-all mailing list