aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arm64/arm64/gicv3_its.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/arm64/arm64/gicv3_its.c b/sys/arm64/arm64/gicv3_its.c
index 11cf05b04cfe..8ba7aa3b2047 100644
--- a/sys/arm64/arm64/gicv3_its.c
+++ b/sys/arm64/arm64/gicv3_its.c
@@ -1197,6 +1197,10 @@ its_device_get(device_t dev, device_t child, u_int nvecs)
return (NULL);
}
+ /* Make sure device sees zeroed ITT. */
+ if ((sc->sc_its_flags & ITS_FLAGS_CMDQ_FLUSH) != 0)
+ cpu_dcache_wb_range(its_dev->itt, its_dev->itt_size);
+
mtx_lock_spin(&sc->sc_its_dev_lock);
TAILQ_INSERT_TAIL(&sc->sc_its_dev_list, its_dev, entry);
mtx_unlock_spin(&sc->sc_its_dev_lock);