serial: 8250_exar: Refactor exar_shutdown()
Hi Robert,
Quoted 32 lines · Sudip Mukherjee
Quoted 22 lines · Andy Shevchenko
Quoted 21 lines · Robert Middleton
Quoted 18 lines · Andy Shevchenko
Quoted 9 lines · Robert Middleton
Quoted 3 lines
I'll try to get some firm results in the morning; otherwise I won't be able to check until early next week as I will be away from the hardware.
After doing more testing, I think that I finally have something that is working fully at all baud rates. I've tested this at 115200,9600,and 4800, testing via: echo "the quick brown fox jumps over the lazy dog" >
/dev/ttySxQuoted 4 lines
Removing the check to
uart_circ_emptyin the while loop makes it more reliable, however it will occasionally fail and only transmit the first part of themessage(at 4800, it will transmit only "t", at 115200 it will transmit "the quick bro").I'm not sure about the loop for
uart_circ_empty(). Can you try 2-3 kB of text at lower baud rate, let's say 2400 or so?<snip>
Quoted 6 lines
Quoted 5 lines
At this point, this leads me to believe that there is actually a more fundamental problem with the 8250 driver and flushing data. I was focusing more on the exar, since that is the only hardware that I have available that uses the 8250 driver.
Quoted 7 lines
Quoted 1 line
Hmm... It's weird that no-one else had noticed so far an issue.
Thats odd. I never saw this problem. Or even the people from "RTD Embedded Technologies" who tested my first driver submission also did not see any such problem.
I am on holiday now and don't have access to the hardware. I can check it on my hardware after 2 weeks.
Sorry for the delay. I managed to test it today. My test file contained 70 lines of "The quick brown fox jumps over the lazy dog". I used upto 1200 Baudrate to send the text from the desktop using the Exar serial I have and I did not notice any message loss on the receiving laptop. Please let me know if you want me to test further.
Signature · 2 lines
Regards Sudip
Quoted 9 lines · Sudip Mukherjee
Hi Robert,
Sorry for the delay. I managed to test it today. My test file contained 70 lines of "The quick brown fox jumps over the lazy dog". I used upto 1200 Baudrate to send the text from the desktop using the Exar serial I have and I did not notice any message loss on the receiving laptop. Please let me know if you want me to test further.
Two questions:
1. What kernel version? If you didn't have a problem, I can try with the exact version that you have as well and see if I can reproduce on my side.
2. Did you test this via 'cat text-file.txt > /dev/ttySX' ? I'm assuming that you are, but just want to make sure.
-Robert Middleton
Quoted 12 lines · Robert Middleton
Quoted 9 lines · Sudip Mukherjee
Hi Robert,
Sorry for the delay. I managed to test it today. My test file contained 70 lines of "The quick brown fox jumps over the lazy dog". I used upto 1200 Baudrate to send the text from the desktop using the Exar serial I have and I did not notice any message loss on the receiving laptop. Please let me know if you want me to test further.
Quoted 4 lines
Two questions:
1. What kernel version? If you didn't have a problem, I can try with the exact version that you have as well and see if I can reproduce on my side.
v5.3.1
Quoted 2 lines
2. Did you test this via 'cat text-file.txt >
/dev/ttySX' ? I'm assuming that you are, but just want to make sure.
Yes. On the desktop which has the Exar hardware "cat fox.txt > /dev/ttyS4" and on the laptop which is the receiver a terminal to read from /dev/ttyUSB0.
Signature · 2 lines
Regards Sudip
Quoted 21 lines · Sudip Mukherjee
Quoted 12 lines · Robert Middleton
Quoted 9 lines · Sudip Mukherjee
Hi Robert,
Sorry for the delay. I managed to test it today. My test file contained 70 lines of "The quick brown fox jumps over the lazy dog". I used upto 1200 Baudrate to send the text from the desktop using the Exar serial I have and I did not notice any message loss on the receiving laptop. Please let me know if you want me to test further.
Quoted 4 lines
Two questions:
1. What kernel version? If you didn't have a problem, I can try with the exact version that you have as well and see if I can reproduce on my side.
Quoted 8 lines
v5.3.1
Quoted 2 lines
2. Did you test this via 'cat text-file.txt >
/dev/ttySX' ? I'm assuming that you are, but just want to make sure.Yes. On the desktop which has the Exar hardware "cat fox.txt >
/dev/ttyS4" and on the laptop which is the receiver a terminal to read from/dev/ttyUSB0.
Thanks for checking; I still have the issue on my side, it is very weird. Would you mind if I send you a video off-list that shows what is happening on my end? I'm pretty much at a loss at this point.
-Robert Middleton
Quoted 28 lines · Robert Middleton
Quoted 26 lines · Sudip Mukherjee
Quoted 12 lines · Robert Middleton
Quoted 9 lines · Sudip Mukherjee
Hi Robert,
Sorry for the delay. I managed to test it today. My test file contained 70 lines of "The quick brown fox jumps over the lazy dog". I used upto 1200 Baudrate to send the text from the desktop using the Exar serial I have and I did not notice any message loss on the receiving laptop. Please let me know if you want me to test further.
Quoted 4 lines
Two questions:
1. What kernel version? If you didn't have a problem, I can try with the exact version that you have as well and see if I can reproduce on my side.v5.3.1
Quoted 2 lines
2. Did you test this via 'cat text-file.txt >
/dev/ttySX' ? I'm assuming that you are, but just want to make sure.
Quoted 7 lines
Quoted 3 lines
Yes. On the desktop which has the Exar hardware "cat fox.txt >
/dev/ttyS4" and on the laptop which is the receiver a terminal to read from/dev/ttyUSB0.Thanks for checking; I still have the issue on my side, it is very weird. Would you mind if I send you a video off-list that shows what is happening on my end? I'm pretty much at a loss at this point.
sure.
and both your transmitter and receiver has the Exar serial or is it on just the transmitter side? lets take it offlist and debug the issue first.
Signature · 2 lines
Regards Sudip