svn commit: r302424 - in projects/powernv/powerpc: ofw powernv
Nathan Whitehorn
nwhitehorn at FreeBSD.org
Fri Jul 8 04:34:15 UTC 2016
Author: nwhitehorn
Date: Fri Jul 8 04:34:13 2016
New Revision: 302424
URL: https://svnweb.freebsd.org/changeset/base/302424
Log:
Bring up PCI enumeration. This was failing due to some stale files in
powerpc/ofw.
Deleted:
projects/powernv/powerpc/ofw/ofw_pci.c
projects/powernv/powerpc/ofw/ofw_pci.h
Modified:
projects/powernv/powerpc/powernv/opal_pci.c
Modified: projects/powernv/powerpc/powernv/opal_pci.c
==============================================================================
--- projects/powernv/powerpc/powernv/opal_pci.c Fri Jul 8 03:39:10 2016 (r302423)
+++ projects/powernv/powerpc/powernv/opal_pci.c Fri Jul 8 04:34:13 2016 (r302424)
@@ -53,7 +53,7 @@ __FBSDID("$FreeBSD$");
#include <vm/vm.h>
#include <vm/pmap.h>
-#include <powerpc/ofw/ofw_pci.h>
+#include <dev/ofw/ofwpci.h>
#include "pcib_if.h"
#include "iommu_if.h"
@@ -143,6 +143,17 @@ opalpci_attach(device_t dev)
return (ENXIO);
}
+ if (bootverbose)
+ device_printf(dev, "OPAL ID %#lx\n", sc->phb_id);
+
+#if 0
+ /* Reset PCI host controller */
+ opal_call(OPAL_PCI_RESET, sc->phb_id, 1, 1);
+ DELAY(1000);
+ opal_call(OPAL_PCI_RESET, sc->phb_id, 1, 0);
+ DELAY(1000);
+#endif
+
/*
* Map all devices on the bus to partitionable endpoint zero until
* such time as we start wanting to do things like bhyve.
More information about the svn-src-projects
mailing list