git: 6368e71a25ba - stable/14 - gicv3: Report PENDBASE when bootverbose

From: Warner Losh <imp_at_FreeBSD.org>
Date: Tue, 16 Apr 2024 21:42:49 UTC
The branch stable/14 has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=6368e71a25baeb040fd59ce5204e1e949b31124b

commit 6368e71a25baeb040fd59ce5204e1e949b31124b
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-02-28 14:08:55 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-04-16 21:28:41 +0000

    gicv3: Report PENDBASE when bootverbose
    
    Report some stats about PENDBASE when we're running under
    bootverbose. We don't do this by default because experience has been
    excess output in this routine hangs the system.
    
    Sponsored by:           Netflix
    Reviewed by:            andrew
    Differential Revision:  https://reviews.freebsd.org/D44036
    
    (cherry picked from commit b4368e83891ed9eba72c0ceccf25f7642f2bad40)
---
 sys/arm64/arm64/gicv3_its.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/sys/arm64/arm64/gicv3_its.c b/sys/arm64/arm64/gicv3_its.c
index 51e7251b9ffd..2ab77e1e9966 100644
--- a/sys/arm64/arm64/gicv3_its.c
+++ b/sys/arm64/arm64/gicv3_its.c
@@ -829,6 +829,11 @@ its_init_cpu_lpi(device_t dev, struct gicv3_its_softc *sc)
 		/* Make sure the GIC has seen everything */
 		dsb(sy);
 	}
+
+	if (bootverbose)
+		device_printf(gicv3, "using %sPENDBASE of %#lx on cpu %d\n",
+		    (sc->sc_its_flags & ITS_FLAGS_LPI_PREALLOC) ? "pre-existing " : "",
+		    vtophys(sc->sc_pend_base[cpuid]), cpuid);
 }
 
 static int