Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 May 2018 22:39:42 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r334407 - head/sys/dev/pci
Message-ID:  <201805302239.w4UMdgVV040476@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805302239.w4UMdgVV040476>