svn commit: r339518 - head/sys/powerpc/powernv

Justin Hibbits jhibbits at FreeBSD.org
Sun Oct 21 02:24:38 UTC 2018


Author: jhibbits
Date: Sun Oct 21 02:24:37 2018
New Revision: 339518
URL: https://svnweb.freebsd.org/changeset/base/339518

Log:
  powerpc64/powernv:opal_pci: Fix the alignment of the TCE table
  
  The TCE table need only be aligned to the size of the table, not the size of
  the TCE segment.

Modified:
  head/sys/powerpc/powernv/opal_pci.c

Modified: head/sys/powerpc/powernv/opal_pci.c
==============================================================================
--- head/sys/powerpc/powernv/opal_pci.c	Sun Oct 21 02:12:26 2018	(r339517)
+++ head/sys/powerpc/powernv/opal_pci.c	Sun Oct 21 02:24:37 2018	(r339518)
@@ -367,7 +367,7 @@ opalpci_attach(device_t dev)
 		device_printf(dev, "Mapping 0-%#jx for DMA\n", (uintmax_t)maxmem);
 	sc->tce = contigmalloc(tce_tbl_size,
 	    M_DEVBUF, M_NOWAIT | M_ZERO, 0,
-	    BUS_SPACE_MAXADDR, tce_size, 0);
+	    BUS_SPACE_MAXADDR, tce_tbl_size, 0);
 	if (sc->tce == NULL)
 		panic("Failed to allocate TCE memory for PHB %jd\n",
 		    (uintmax_t)sc->phb_id);


More information about the svn-src-all mailing list