git: f852f4f7b6f1 - stable/14 - EC2: Set PCIe eject timeout to 0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 16 Apr 2025 03:18:59 UTC
The branch stable/14 has been updated by cperciva:
URL: https://cgit.FreeBSD.org/src/commit/?id=f852f4f7b6f1666b09b16dba4aaab7acdb49980d
commit f852f4f7b6f1666b09b16dba4aaab7acdb49980d
Author: Colin Percival <cperciva@FreeBSD.org>
AuthorDate: 2025-03-31 04:11:23 +0000
Commit: Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2025-04-16 03:18:03 +0000
EC2: Set PCIe eject timeout to 0
Since PCIe device detaching is done via API, there is no opportunity
to "press the attention button a second time" and thus the 5 second
timeout mandated by PCIe serves no purpose.
MFC after: 2 weeks
Sponsored by: Amazon
(cherry picked from commit 80febaa1714e897d67a8217edc305a0e81498a6f)
---
release/tools/ec2.conf | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/release/tools/ec2.conf b/release/tools/ec2.conf
index 3675736ab986..2856068459c3 100644
--- a/release/tools/ec2.conf
+++ b/release/tools/ec2.conf
@@ -79,6 +79,12 @@ ec2_common() {
# historical "nvd" driver.
echo 'hw.nvme.use_nvd="0"' >> ${DESTDIR}/boot/loader.conf
+ # Reduce the timeout for PCIe Eject ("hotunplug") requests. PCIe
+ # mandates a 5 second timeout to allow someone to cancel the eject
+ # by pressing the "Attention button" a second time, but in the EC2
+ # environment this delay serves no purpose.
+ echo 'hw.pci.pcie_hp_detach_timeout="0"' >> ${DESTDIR}/boot/loader.conf
+
# Disable KbdInteractiveAuthentication according to EC2 requirements.
sed -i '' -e \
's/^#KbdInteractiveAuthentication yes/KbdInteractiveAuthentication no/' \