Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jun 2020 04:04:59 +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: r362002 - head/sys/powerpc/mpc85xx
Message-ID:  <202006100404.05A44xam031411@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhibbits
Date: Wed Jun 10 04:04:59 2020
New Revision: 362002
URL: https://svnweb.freebsd.org/changeset/base/362002

Log:
  powerpc/mpc85xx: Don't use the quantum cache in vmem for MPIC MSIs
  
  The qcache is unnecessary for this purpose, it's only needed when there are
  lots of concurrent allocations.
  
  Reported by:	markj

Modified:
  head/sys/powerpc/mpc85xx/pci_mpc85xx.c

Modified: head/sys/powerpc/mpc85xx/pci_mpc85xx.c
==============================================================================
--- head/sys/powerpc/mpc85xx/pci_mpc85xx.c	Wed Jun 10 03:57:10 2020	(r362001)
+++ head/sys/powerpc/mpc85xx/pci_mpc85xx.c	Wed Jun 10 04:04:59 2020	(r362002)
@@ -896,7 +896,7 @@ fsl_msi_attach(device_t dev)
 	sc = device_get_softc(dev);
 
 	if (msi_vmem == NULL)
-		msi_vmem = vmem_create("MPIC MSI", 0, 0, 1, 1, M_BESTFIT | M_WAITOK);
+		msi_vmem = vmem_create("MPIC MSI", 0, 0, 1, 0, M_BESTFIT | M_WAITOK);
 
 	/* Manually play with resource entries. */
 	sc->sc_base = bus_get_resource_start(dev, SYS_RES_MEMORY, 0);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202006100404.05A44xam031411>