Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102029956
D44037.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
958 B
Referenced Files
None
Subscribers
None
D44037.diff
View Options
diff --git a/sys/arm64/arm64/gicv3_its.c b/sys/arm64/arm64/gicv3_its.c
--- a/sys/arm64/arm64/gicv3_its.c
+++ b/sys/arm64/arm64/gicv3_its.c
@@ -45,6 +45,7 @@
#include <sys/malloc.h>
#include <sys/module.h>
#include <sys/mutex.h>
+#include <sys/physmem.h>
#include <sys/proc.h>
#include <sys/taskqueue.h>
#include <sys/tree.h>
@@ -827,8 +828,18 @@
/* Make sure the GIC has seen everything */
dsb(sy);
+ } else {
+ KASSERT(sc->sc_pend_base[cpuid] == 0,
+ ("PREALLOC too soon cpuid %d", cpuid));
+ tmp = gic_r_read_8(gicv3, GICR_PENDBASER);
+ tmp &= GICR_PENDBASER_PA_MASK;
+ if (!physmem_excluded(tmp, LPI_PENDTAB_SIZE))
+ panic("gicv3 PENDBASER on cpu %d needs to reuse 0x%#lx, but not reserved\n",
+ cpuid, tmp);
+ sc->sc_pend_base[cpuid] = PHYS_TO_DMAP(tmp);
}
+
if (bootverbose)
device_printf(gicv3, "using %sPENDBASE of %#lx on cpu %d\n",
(sc->sc_its_flags & ITS_FLAGS_LPI_PREALLOC) ? "pre-existing " : "",
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 7, 5:35 PM (22 h, 16 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14517696
Default Alt Text
D44037.diff (958 B)
Attached To
Mode
D44037: gicv3: In its_init_cpu_lpi record each cpu's PENDBASER
Attached
Detach File
Event Timeline
Log In to Comment