Move the reporting of spurious interrupts under bootverbose control, because

occasional spurious interrupts are a normal thing on this hardware.  Also,
change the name of the cpu-local interrupt controller driver from local_intc
to lintc, because the name gets built into interrupt names, which have to
fit into a 19-byte field for stats reporting (so this allows 5 more bytes
of the actual interrupt name to be displayed).
This commit is contained in:
ian 2019-04-21 17:39:01 +00:00
parent 5d04e0e4d3
commit d8c1004be9
2 changed files with 4 additions and 4 deletions

View File

@ -230,7 +230,7 @@ bcm2835_intc_intr(void *arg)
}
arm_irq_memory_barrier(0); /* XXX */
}
if (num == 0)
if (num == 0 && bootverbose)
device_printf(sc->sc_dev, "Spurious interrupt detected\n");
return (FILTER_HANDLED);

View File

@ -421,7 +421,7 @@ bcm_lintc_intr(void *arg)
reg &= ~BCM_LINTC_PENDING_MASK;
if (reg != 0)
device_printf(sc->bls_dev, "Unknown interrupt(s) %x\n", reg);
else if (num == 0)
else if (num == 0 && bootverbose)
device_printf(sc->bls_dev, "Spurious interrupt detected\n");
return (FILTER_HANDLED);
@ -730,12 +730,12 @@ static device_method_t bcm_lintc_methods[] = {
};
static driver_t bcm_lintc_driver = {
"local_intc",
"lintc",
bcm_lintc_methods,
sizeof(struct bcm_lintc_softc),
};
static devclass_t bcm_lintc_devclass;
EARLY_DRIVER_MODULE(local_intc, simplebus, bcm_lintc_driver, bcm_lintc_devclass,
EARLY_DRIVER_MODULE(lintc, simplebus, bcm_lintc_driver, bcm_lintc_devclass,
0, 0, BUS_PASS_INTERRUPT);