svn commit: r357445 - head/sys/arm64/arm64
Andrew Turner
andrew at FreeBSD.org
Mon Feb 3 13:50:56 UTC 2020
Author: andrew
Date: Mon Feb 3 13:50:55 2020
New Revision: 357445
URL: https://svnweb.freebsd.org/changeset/base/357445
Log:
Use a unique name for the GICv3 ITS vmem
When there are multiple GICv3 ITS devices we don't know which vmem is for
which device. Use device_get_nameunit to get a per-device name.
MFC after: 2 weeks
Sponsored by: DARPA, AFRL
Modified:
head/sys/arm64/arm64/gicv3_its.c
Modified: head/sys/arm64/arm64/gicv3_its.c
==============================================================================
--- head/sys/arm64/arm64/gicv3_its.c Mon Feb 3 13:50:15 2020 (r357444)
+++ head/sys/arm64/arm64/gicv3_its.c Mon Feb 3 13:50:55 2020 (r357445)
@@ -799,7 +799,7 @@ gicv3_its_attach(device_t dev)
* XXX: This assumes there are no other interrupt controllers in the
* system.
*/
- sc->sc_irq_alloc = vmem_create("GICv3 ITS IRQs", 0,
+ sc->sc_irq_alloc = vmem_create(device_get_nameunit(dev), 0,
gicv3_get_nirqs(dev), 1, 0, M_FIRSTFIT | M_WAITOK);
sc->sc_irqs = malloc(sizeof(*sc->sc_irqs) * sc->sc_irq_length,
More information about the svn-src-all
mailing list