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),
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"