aboutsummaryrefslogtreecommitdiff
path: root/lib/libnetmap/libnetmap.h
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2025-05-14 23:36:26 +0000
committerColin Percival <cperciva@FreeBSD.org>2025-05-14 23:54:28 +0000
commiteadda156a50d3487ec1e6fc78f6cfe2df42448fa (patch)
treeb35d63009ecdfc98be232bf292c27d08ec20211a /lib/libnetmap/libnetmap.h
parentf7cd5c230849730dd03f942d7bf8f2e770643e7a (diff)
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 (1c60b24baa50) 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 (cherry picked from commit 9a685c09f06a55b18589d75f9307563d84a17fa9)
Diffstat (limited to 'lib/libnetmap/libnetmap.h')
0 files changed, 0 insertions, 0 deletions