Date: Wed, 10 Jun 2020 04:08:16 +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: r362003 - head/sys/powerpc/powernv Message-ID: <202006100408.05A48G6p031915@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhibbits Date: Wed Jun 10 04:08:16 2020 New Revision: 362003 URL: https://svnweb.freebsd.org/changeset/base/362003 Log: powerpc/powernv: Don't use the vmem quantum cache for OPAL PCI MSI allocations vmem quantum cache is only needed when doing a lot of concurrent allocations, which doesn't happen when allocating MSIs. This wastes memory for the cache zones. Avoid this waste and don't use the quantum cache. Reported by: markj Modified: head/sys/powerpc/powernv/opal_pci.c Modified: head/sys/powerpc/powernv/opal_pci.c ============================================================================== --- head/sys/powerpc/powernv/opal_pci.c Wed Jun 10 04:04:59 2020 (r362002) +++ head/sys/powerpc/powernv/opal_pci.c Wed Jun 10 04:08:16 2020 (r362003) @@ -427,7 +427,7 @@ opalpci_attach(device_t dev) sc->msi_base = msi_ranges[0]; sc->msi_vmem = vmem_create("OPAL MSI", msi_ranges[0], - msi_ranges[1], 1, 16, M_BESTFIT | M_WAITOK); + msi_ranges[1], 1, 0, M_BESTFIT | M_WAITOK); sc->base_msi_irq = powerpc_register_pic(dev, OF_xref_from_node(node),
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202006100408.05A48G6p031915>