aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2025-04-23 15:17:51 +0000
committerColin Percival <cperciva@FreeBSD.org>2025-04-23 15:19:28 +0000
commitce9a34b1614e37dc3f8763586448063408c7bf16 (patch)
tree0b6d4d6f77d0d28b3e9a50f9cd68cec687661211
parent2187ec93ada1c7399f2f3537920f6277bec4a0ef (diff)
Turn off hw.pci.intx_reroute in EC2
Having this enabled on Graviton systems prior to Graviton 4 results in a resource leak and a kernel panic after repeated hotplug/unplug. MFC after: 3 days Sponsored by: Amazon
-rw-r--r--release/tools/ec2.conf6
1 files changed, 6 insertions, 0 deletions
diff --git a/release/tools/ec2.conf b/release/tools/ec2.conf
index 507d9acabfd9..d6cb85959183 100644
--- a/release/tools/ec2.conf
+++ b/release/tools/ec2.conf
@@ -79,6 +79,12 @@ ec2_common() {
# delay before rescanning upon device detach.
echo 'debug.acpi.quirks="56"' >> ${DESTDIR}/boot/loader.conf
+ # The default behaviour of re-routing INTx interrupts causes a
+ # resource leak on INTRng (aka on Graviton systems). Repeated
+ # hotplug/unplug on PCI (not PCIe) Graviton systems ends up with
+ # a kernel panic unless we disable this.
+ echo 'hw.pci.intx_reroute=0' >> ${DESTDIR}/boot/loader.conf
+
# Load the kernel module for the Amazon "Elastic Network Adapter"
echo 'if_ena_load="YES"' >> ${DESTDIR}/boot/loader.conf