Page MenuHomeFreeBSD

Add support for EC2 i3.metal serial port
ClosedPublic

Authored by cperciva on Sep 19 2018, 9:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 5, 4:50 AM
Unknown Object (File)
Sat, Sep 27, 12:27 AM
Unknown Object (File)
Aug 15 2025, 6:24 AM
Unknown Object (File)
Aug 14 2025, 7:23 AM
Unknown Object (File)
Aug 11 2025, 11:54 PM
Unknown Object (File)
Aug 3 2025, 6:03 AM
Unknown Object (File)
Jul 26 2025, 9:29 PM
Unknown Object (File)
Jun 30 2025, 7:28 PM
Subscribers
None

Details

Summary

Recognize the Amazon PCI serial device found in i3.metal EC2 instances
as an NS8250 UART.

Test Plan

Booting an EC2 i3.metal instance with this patch, uart2 shows up and if I write to it (e.g., cat /COPYRIGHT > /dev/ttyu2) that shows up in the EC2 Console Logs.

Unfortunately I haven't been able to figure out how to get the kernel to use this for its console output, which is kind of the point... any help will be much appreciated.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Adding some reviewers who have touched this recently and may be able to tell me if I'm doing this right and/or what I'm missing.

This revision is now accepted and ready to land.Sep 19 2018, 10:01 PM
imp added inline comments.
sys/dev/uart/uart_bus_pci.c
128 ↗(On Diff #48241)

It's traditional to also add this to puc, iirc.

This revision was automatically updated to reflect the committed changes.