opnsense-src/release/tools
Colin Percival 9a685c09f0 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!)

MFC after:	1 minute
Sponsored by:	Amazon
2025-05-14 16:54:04 -07:00
..
arm.subr release: style: prefer -n over ! -z 2025-04-29 18:18:33 +01:00
azure.conf release: Chase location of pkg repo databases 2025-02-03 16:10:47 -08:00
basic-ci.conf release/vm: partially support NO_ROOT 2025-03-12 21:05:39 +00:00
basic-cloudinit.conf basic-cloudinit: remove duplicated rc.conf entry 2024-11-20 09:48:57 +01:00
ec2-base.conf EC2: Make amazon-ssm-agent optional 2024-09-03 22:57:06 -07:00
ec2-builder.conf EC2: Add AMI Builder AMI building 2025-04-22 13:35:03 -07:00
ec2-cloud-init.conf EC2: Make amazon-ssm-agent optional 2024-09-03 22:57:06 -07:00
ec2-small.conf EC2: Add new "small" AMIs 2024-09-03 22:57:06 -07:00
ec2.conf EC2: Remove old broken_txfifo workaround 2025-05-14 16:54:04 -07:00
gce.conf release: style: prefer -n over ! -z 2025-04-29 18:18:33 +01:00
mkami.sh EC2: Add AMI Builder AMI building 2025-04-22 13:35:03 -07:00
oci-image-dynamic.conf release: build OCI images with shell scripts 2025-03-02 15:17:13 +00:00
oci-image-runtime.conf release: use "runtime" instead of "minimal" for OCI image name 2025-04-27 23:47:29 +00:00
oci-image-static.conf release: build OCI images with shell scripts 2025-03-02 15:17:13 +00:00
openstack.conf release: Rework vm_extra_pre_umount 2024-05-06 13:40:47 -07:00
oracle.conf release: ensure default sudo flavor is selected 2025-02-28 22:33:46 +00:00
rc.amibuilder EC2: Add AMI Builder AMI building 2025-04-22 13:35:03 -07:00
vagrant-virtualbox.conf release: Rework vm_extra_pre_umount 2024-05-06 13:40:47 -07:00
vagrant-vmware.conf release: Rework vm_extra_pre_umount 2024-05-06 13:40:47 -07:00
vagrant.conf release: Chase location of pkg repo databases 2025-02-03 16:10:47 -08:00
vmimage.subr release: style: prefer -n over ! -z 2025-04-29 18:18:33 +01:00