Part Number: AM625
AM625x UART 2Mbps packet loss issue
The above is about the previous issue of packet loss at 2Mbps for AM625x UART. Previously, when no GPU was used, UART at 2Mbps did not experience packet loss, and increasing CPU usage with stress-ng also did not cause packet loss;
Recently, I have noticed that when the GPU usage exceeds 12% (under Qt calling OpenGL for real-time rendering), UART starts to encounter OE errors (as shown by cat /proc/tty/driver/serial)
root@am62xx-evm:~# cat /sys/kernel/debug/pvr/status
Driver Status: OK
Device ID: 0:128
Firmware Status: OK
Server Errors: 0
HWR Event Count: 0
CRR Event Count: 0
SLR Event Count: 0
WGP Error Count: 0
TRP Error Count: 0
FWF Event Count: 0
APM Event Count: 10
GPU Utilisation: 14%
DM Utilisation: VM0
2D: 0%
GEOM: 0%
3D: 13%
CDM: 0%
root@am62xx-evm:~# cat /proc/tty/driver/serial
serinfo:1.0 driver revision:
0: uart:unknown port:00000000 irq:0
1: uart:unknown port:00000000 irq:0
2: uart:8250 mmio:0x02800000 irq:240 tx:258355 rx:141 RTS|DTR|DSR
3: uart:8250 mmio:0x02810000 irq:241 tx:0 rx:0 RTS|DTR
4: uart:8250 mmio:0x02820000 irq:242 tx:19305 rx:325769 RTS|DTR|DSR
5: uart:unknown port:00000000 irq:0
6: uart:8250 mmio:0x02840000 irq:243 tx:0 rx:1 brk:1 RTS|DTR|DSR
7: uart:8250 mmio:0x02850000 irq:244 tx:87498 rx:37328920 oe:440 RTS|DTR|DSR
8: uart:8250 mmio:0x02860000 irq:245 tx:18791 rx:195160 RTS|DTR|DSR
9: uart:unknown port:00000000 irq:0
10: uart:unknown port:00000000 irq:0
11: uart:unknown port:00000000 irq:0
ttyS7: Packet loss is very serious
SDK: ti-processor-sdk-linux-am62xx-evm-10.01.10.04-Linux-x86-Install.bin
Linux kernel: 6.6.58+
Only when the GPU usage rate is above 12%, does the UART driver layer start to encounter OE errors;
Previously, TI technical personnel responded that UART does not support DMA; it may be due to high bandwidth interruptions from the GPU, causing UART to operate in non-DMA mode and resulting in packet loss.