Date: Sun, 21 Oct 2018 02:24:37 +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: r339518 - head/sys/powerpc/powernv Message-ID: <201810210224.w9L2ObjQ090208@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810210224.w9L2ObjQ090208>