Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163273987
D47560.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D47560.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
@@ -1434,7 +1434,7 @@
(GICR_VLPI_BASE_SIZE + GICR_RESERVED_SIZE);
}
} while (offset < rman_get_size(r_res) &&
- (typer & GICR_TYPER_LAST) == 0);
+ !sc->gic_redists.single && (typer & GICR_TYPER_LAST) == 0);
}
device_printf(sc->dev, "No Re-Distributor found for CPU%u\n", cpuid);
diff --git a/sys/arm64/arm64/gic_v3_acpi.c b/sys/arm64/arm64/gic_v3_acpi.c
--- a/sys/arm64/arm64/gic_v3_acpi.c
+++ b/sys/arm64/arm64/gic_v3_acpi.c
@@ -300,6 +300,7 @@
acpi_walk_subtables(madt + 1,
(char *)madt + madt->Header.Length,
madt_count_gicc_redistrib, sc);
+ sc->gic_redists.single = true;
}
acpi_unmap_table(madt);
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,12 @@
struct resource ** regions;
/* Number of Re-Distributor regions */
u_int nregions;
+ /*
+ * 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
+ * Base Address field)
+ */
+ bool single;
/* Per-CPU Re-Distributor data */
struct redist_pcpu *pcpu;
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 22, 3:41 PM (1 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35370287
Default Alt Text
D47560.diff (1 KB)
Attached To
Mode
D47560: gic_v3: Correctly handle GICC GIGR Base Address case
Attached
Detach File
Event Timeline
Log In to Comment