Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Apr 2025 15:19:44 GMT
From:      Colin Percival <cperciva@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: ce9a34b1614e - main - Turn off hw.pci.intx_reroute in EC2
Message-ID:  <202504231519.53NFJibG052042@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by cperciva:

URL: https://cgit.FreeBSD.org/src/commit/?id=ce9a34b1614e37dc3f8763586448063408c7bf16

commit ce9a34b1614e37dc3f8763586448063408c7bf16
Author:     Colin Percival <cperciva@FreeBSD.org>
AuthorDate: 2025-04-23 15:17:51 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2025-04-23 15:19:28 +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
---
 release/tools/ec2.conf | 6 ++++++
 1 file changed, 6 insertions(+)

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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202504231519.53NFJibG052042>