[Bug 266990] FreeBSD can not drive 16950 chip correctly

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 09 Nov 2023 19:19:15 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266990

--- Comment #3 from Andrey Korobkov <alster@vinterdalen.se> ---
At least some controllers (Moxa) do work:

# dmesg.boot
puc0: <Moxa Technologies, Smartio CP-104EL-A/PCIe> port
0x1000-0x103f,0x1040-0x104f mem 0xba000000-0xba000fff irq 27 at device 0.0 on p
ci7
uart2: <16950 or compatible> at port 1 on puc0
uart3: <16950 or compatible> at port 2 on puc0
uart4: <16950 or compatible> at port 3 on puc0
uart5: <16950 or compatible> at port 4 on puc0

# sysctl -a | grep uart
device  uart_ns8250
device  uart
debug.uart_force_poll: 0
debug.uart_poll_freq: 50
dev.uart.5.rx_overruns: 0
dev.uart.5.pps_mode: 2
dev.uart.5.%parent: puc0
dev.uart.5.%pnpinfo: type=1
dev.uart.5.%location: port=4
dev.uart.5.%driver: uart
dev.uart.5.%desc: 16950 or compatible
dev.uart.4.rx_overruns: 0
dev.uart.4.pps_mode: 2
dev.uart.4.%parent: puc0
dev.uart.4.%pnpinfo: type=1
dev.uart.4.%location: port=3
dev.uart.4.%driver: uart
dev.uart.4.%desc: 16950 or compatible
dev.uart.3.rx_overruns: 0
dev.uart.3.pps_mode: 2
dev.uart.3.%parent: puc0
dev.uart.3.%pnpinfo: type=1
dev.uart.3.%location: port=2
dev.uart.3.%driver: uart
dev.uart.3.%desc: 16950 or compatible
dev.uart.2.rx_overruns: 0
dev.uart.2.pps_mode: 2
dev.uart.2.%parent: puc0
dev.uart.2.%pnpinfo: type=1
dev.uart.2.%location: port=1
dev.uart.2.%driver: uart
dev.uart.2.%desc: 16950 or compatible
dev.uart.%parent:

It has all the corresponding /dev/ttyu* and /dev/ttyv* nodes.
But requires MSI interrupts workaround to actually pass data over serial line:
'hw.puc.msi_disable=1' to loader.conf

See bug #235016, comment #3

-- 
You are receiving this mail because:
You are the assignee for the bug.