Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177639796
D61619.1794920491.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D61619.1794920491.diff
View Options
diff --git a/sys/arm64/arm64/gic_v3.c b/sys/arm64/arm64/gic_v3.c
--- a/sys/arm64/arm64/gic_v3.c
+++ b/sys/arm64/arm64/gic_v3.c
@@ -1432,6 +1432,10 @@
return (0);
}
+ if (sc->gic_redists.stride != 0) {
+ offset += sc->gic_redists.stride;
+ continue;
+ }
offset += (GICR_RD_BASE_SIZE + GICR_SGI_BASE_SIZE);
if ((typer & GICR_TYPER_VLPIS) != 0) {
offset +=
diff --git a/sys/arm64/arm64/gic_v3_fdt.c b/sys/arm64/arm64/gic_v3_fdt.c
--- a/sys/arm64/arm64/gic_v3_fdt.c
+++ b/sys/arm64/arm64/gic_v3_fdt.c
@@ -110,6 +110,7 @@
{
struct gic_v3_softc *sc;
pcell_t redist_regions;
+ pcell_t stride[2];
phandle_t xref, node;
int err;
uint32_t *mbi_ranges;
@@ -141,6 +142,11 @@
else
sc->gic_redists.nregions = redist_regions;
+ if (OF_getencprop(ofw_bus_get_node(dev), "redistributor-stride",
+ stride, sizeof(stride)) == sizeof(stride))
+ sc->gic_redists.stride = ((uint64_t)stride[0] << 32) |
+ stride[1];
+
/* Add Message Based Interrupts using SPIs. */
ret = OF_getencprop_alloc_multi(ofw_bus_get_node(dev), "mbi-ranges",
sizeof(*mbi_ranges), (void **)&mbi_ranges);
diff --git a/sys/arm64/arm64/gic_v3_var.h b/sys/arm64/arm64/gic_v3_var.h
--- a/sys/arm64/arm64/gic_v3_var.h
+++ b/sys/arm64/arm64/gic_v3_var.h
@@ -53,6 +53,8 @@
struct resource ** regions;
/* Number of Re-Distributor regions */
u_int nregions;
+ /* Re-Distributor stride from FDT, 0 if not set */
+ bus_size_t stride;
/*
* Whether to treat each region as a single Re-Distributor page or a
* series of contiguous pages (i.e. from each ACPI MADT GICC's GICR
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 17, 1:01 PM (17 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41800175
Default Alt Text
D61619.1794920491.diff (1 KB)
Attached To
Mode
D61619: arm64/gicv3: Honor redistributor-stride
Attached
Detach File
Event Timeline