git: 66d36f4f1025 - stable/14 - Turn off hw.pci.intx_reroute in EC2
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 26 Apr 2025 19:21:49 UTC
The branch stable/14 has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=66d36f4f1025193a64cf296873ed4a4b34471d91 commit 66d36f4f1025193a64cf296873ed4a4b34471d91 Author: Colin Percival <cperciva@FreeBSD.org> AuthorDate: 2025-04-23 15:17:51 +0000 Commit: Colin Percival <cperciva@FreeBSD.org> CommitDate: 2025-04-26 19:21:22 +0000 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 (cherry picked from commit ce9a34b1614e37dc3f8763586448063408c7bf16) --- release/tools/ec2.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/release/tools/ec2.conf b/release/tools/ec2.conf index 2856068459c3..1116faed4e9c 100644 --- a/release/tools/ec2.conf +++ b/release/tools/ec2.conf @@ -72,6 +72,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