opnsense-src/release/tools
Colin Percival 29d6968fd3 EC2: Remove old broken_txfifo workaround
Early versions of Xen, including those used in the early days of EC2,
had a bug in their UART emulation whereby the TX FIFO wouldn't send the
expected interrupt when emptying; as a result, FreeBSD would write 16
characters to the serial console and then stop because we thought the
FIFO was forever full.

In 2013 (1c60b24baa) I added a loader tunable "hw.broken_txfifo"
which spinwaits for the FIFO TX rather than relying on the interrupt,
and enabled this in loader.conf in EC2 images.

A decade later, this workaround is almost certainly no longer needed in
EC2 -- most instances don't run Xen, and the bug was long since fixed
in Xen anyway -- but we've been holding on to the workaround "just in
case".  Unfortunately, the spinwait behaviour is causing latency spikes
and triggering warnings from the ena(4) driver.

This commit removes the hw.broken_txfifo setting from loader.conf in
EC2 images, but leaves the loader tunable and associated code, since it
has been necessary in some other environments.  (It seems that the TX
FIFO missing-interrupts bug has been independently written at least
three times!)

Approved by:	re (cperciva)
MFC after:	1 minute
Sponsored by:	Amazon

(cherry picked from commit 9a685c09f06a55b18589d75f9307563d84a17fa9)
(cherry picked from commit eadda156a50d3487ec1e6fc78f6cfe2df42448fa)
2025-05-15 15:22:44 -07:00
..
arm.subr release: de-duplicate arm.subr fstab logic 2024-02-26 11:35:47 -04:00
azure.conf release: Chase location of pkg repo databases 2025-02-09 13:14:34 -08:00
basic-ci.conf Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
basic-cloudinit.conf release: basic-cloudinit improve default image 2024-10-08 09:04:02 +02:00
ec2-base.conf EC2: Make amazon-ssm-agent optional 2024-09-10 22:28:59 -07:00
ec2-builder.conf EC2: Add AMI Builder AMI building 2025-04-26 12:17:51 -07:00
ec2-cloud-init.conf EC2: Make amazon-ssm-agent optional 2024-09-10 22:28:59 -07:00
ec2-small.conf EC2: Add new "small" AMIs 2024-09-10 22:28:59 -07:00
ec2.conf EC2: Remove old broken_txfifo workaround 2025-05-15 15:22:44 -07:00
gce.conf release: Rework vm_extra_pre_umount 2024-05-13 15:24:28 -07:00
mkami.sh EC2: Add AMI Builder AMI building 2025-04-26 12:17:51 -07:00
oci-image-dynamic.conf release: build OCI images with shell scripts 2025-03-04 09:46:03 +00:00
oci-image-runtime.conf release: use "runtime" instead of "minimal" for OCI image name 2025-04-30 07:55:41 +00:00
oci-image-static.conf release: build OCI images with shell scripts 2025-03-04 09:46:03 +00:00
openstack.conf release: Rework vm_extra_pre_umount 2024-05-13 15:24:28 -07:00
oracle.conf release: ensure default sudo flavor is selected 2025-04-08 18:58:08 +00:00
rc.amibuilder EC2: Add AMI Builder AMI building 2025-04-26 12:17:51 -07:00
vagrant-virtualbox.conf release: Rework vm_extra_pre_umount 2024-05-13 15:24:28 -07:00
vagrant-vmware.conf release: Rework vm_extra_pre_umount 2024-05-13 15:24:28 -07:00
vagrant.conf release: Chase location of pkg repo databases 2025-02-09 13:14:34 -08:00
vmimage.subr vmimage.subr: Redirect etcupdate log to stdout 2025-02-05 20:14:21 -08:00