rockchip-linux / kernel

BSP kernel source
Other
945 stars 1.1k forks source link

Missing UART messages while using camera - possibly UART overrun issue #183

Open barzelshir opened 5 years ago

barzelshir commented 5 years ago

I'm reading UART messages through /dev/ttyS4 while reading frames from /dev/video0 From time to time I've noticed that UART messages get lost. I added some print to the kernel in drivers/tty/serial/8250/8250_port.c file:

if (lsr & UART_LSR_OE)
{
  port->icount.overrun++;
  printk("overrun\n");
}

I viewed dmesg using: dmseg | grep overrun And seen these prints.

Can the overrun be the cause for the lost messages? I`ve tried using irqbalance and decrease the baudrate, these methods improved the situation but I'm still getting the messages, how can I overcome these overruns?

(Using rk3399) Thanks

barzelshir commented 5 years ago

Hi @masf7g, why you referenced this commit? Why is it relevant ?

masf7g commented 5 years ago

Hi @barzelshir, I did not mention that commit in any of my comments. I just did merge and that commit was already referenced in the comments of some other commits which I merged in and github detected it.

barzelshir commented 5 years ago

Hi @barzelshir, I did not mention that commit in any of my comments. I just did merge and that commit was already referenced in the comments of some other commits which I merged in and github detected it.

Hi @masf7g I can't see which commits also referenced this issue, can you tell me what are the commits numbers?