blob: 6edac16bb88d7c854594ddae91e32ba0c30b1bf7 [file] [log] [blame]
Vadim Yanitskiyd0b575c2023-12-09 04:26:51 +07001
2Executing test_rx
3======== testing 8-N-1 (no data)
Vadim Yanitskiy9ef304d2023-11-14 20:46:01 +07004test_rx_exec() @ 0: flush the Rx buffer
5test_rx_exec() @ 6: flush the Rx buffer
6test_rx_exec() @ 12: flush the Rx buffer
Vadim Yanitskiyd0b575c2023-12-09 04:26:51 +07007======== testing 8-N-1 (fill up flush)
Vadim Yanitskiy9ef304d2023-11-14 20:46:01 +07008suart_rx_cb(flags=00): de ad be ef
9suart_rx_cb(flags=00): 00 aa 55 ff
10test_rx_exec() @ 101: flush the Rx buffer
Vadim Yanitskiyd0b575c2023-12-09 04:26:51 +070011======== testing 8-N-1 (HELLO)
Vadim Yanitskiy9ef304d2023-11-14 20:46:01 +070012test_rx_exec() @ 18: flush the Rx buffer
13suart_rx_cb(flags=00): 48
14test_rx_exec() @ 31: flush the Rx buffer
15suart_rx_cb(flags=00): 45
16test_rx_exec() @ 57: flush the Rx buffer
17suart_rx_cb(flags=00): 4c
18test_rx_exec() @ 70: flush the Rx buffer
19suart_rx_cb(flags=00): 4c
20test_rx_exec() @ 96: flush the Rx buffer
21suart_rx_cb(flags=00): 4f
Vadim Yanitskiyd0b575c2023-12-09 04:26:51 +070022======== testing 8-N-1 (framing errors)
Vadim Yanitskiybf95f822023-11-18 01:46:16 +070023suart_rx_cb(flags=01): 00
24suart_rx_cb(flags=01): aa
Vadim Yanitskiy9ef304d2023-11-14 20:46:01 +070025test_rx_exec() @ 41: flush the Rx buffer
26suart_rx_cb(flags=00): ff
Vadim Yanitskiyd0b575c2023-12-09 04:26:51 +070027======== testing 8-N-2 (HELLO)
Vadim Yanitskiy9ef304d2023-11-14 20:46:01 +070028test_rx_exec() @ 20: flush the Rx buffer
29test_rx_exec() @ 22: flush the Rx buffer
30suart_rx_cb(flags=00): 48
31test_rx_exec() @ 35: flush the Rx buffer
32test_rx_exec() @ 37: flush the Rx buffer
33suart_rx_cb(flags=00): 45
34test_rx_exec() @ 65: flush the Rx buffer
35test_rx_exec() @ 67: flush the Rx buffer
36suart_rx_cb(flags=00): 4c
37test_rx_exec() @ 80: flush the Rx buffer
38test_rx_exec() @ 82: flush the Rx buffer
39suart_rx_cb(flags=00): 4c
40test_rx_exec() @ 110: flush the Rx buffer
41test_rx_exec() @ 112: flush the Rx buffer
42suart_rx_cb(flags=00): 4f
Vadim Yanitskiyd0b575c2023-12-09 04:26:51 +070043======== testing 8-N-2 (framing errors)
Vadim Yanitskiybf95f822023-11-18 01:46:16 +070044suart_rx_cb(flags=01): 00
45suart_rx_cb(flags=01): aa
46suart_rx_cb(flags=01): 55
Vadim Yanitskiy9ef304d2023-11-14 20:46:01 +070047test_rx_exec() @ 57: flush the Rx buffer
Vadim Yanitskiybf95f822023-11-18 01:46:16 +070048suart_rx_cb(flags=00): ff
Vadim Yanitskiyd0b575c2023-12-09 04:26:51 +070049======== testing 8-E-1 (invalid parity)
Vadim Yanitskiybf95f822023-11-18 01:46:16 +070050suart_rx_cb(flags=02): 00
51suart_rx_cb(flags=02): 01
Vadim Yanitskiy9ef304d2023-11-14 20:46:01 +070052suart_rx_cb(flags=02): ff
Vadim Yanitskiybf95f822023-11-18 01:46:16 +070053test_rx_exec() @ 49: flush the Rx buffer
54suart_rx_cb(flags=02):
Vadim Yanitskiyd0b575c2023-12-09 04:26:51 +070055======== testing 8-E-1 (valid parity)
Vadim Yanitskiy9ef304d2023-11-14 20:46:01 +070056test_rx_exec() @ 63: flush the Rx buffer
57suart_rx_cb(flags=00): 00 ff aa 55
58test_rx_exec() @ 120: flush the Rx buffer
59suart_rx_cb(flags=00): 80 e0 f8 fe
Vadim Yanitskiyd0b575c2023-12-09 04:26:51 +070060======== testing 8-O-1 (invalid parity)
Vadim Yanitskiybf95f822023-11-18 01:46:16 +070061suart_rx_cb(flags=02): 00
62suart_rx_cb(flags=02): 01
Vadim Yanitskiy9ef304d2023-11-14 20:46:01 +070063suart_rx_cb(flags=02): ff
Vadim Yanitskiybf95f822023-11-18 01:46:16 +070064test_rx_exec() @ 42: flush the Rx buffer
65suart_rx_cb(flags=02):
Vadim Yanitskiyd0b575c2023-12-09 04:26:51 +070066======== testing 8-O-1 (valid parity)
Vadim Yanitskiy9ef304d2023-11-14 20:46:01 +070067test_rx_exec() @ 63: flush the Rx buffer
68suart_rx_cb(flags=00): 00 ff aa 55
69test_rx_exec() @ 120: flush the Rx buffer
70suart_rx_cb(flags=00): 80 e0 f8 fe
Vadim Yanitskiyd0b575c2023-12-09 04:26:51 +070071
72Executing test_tx_rx
73======== testing 8-N-1
Vadim Yanitskiy9ef304d2023-11-14 20:46:01 +070074suart_tx_cb(len=4/4): de ad be ef
75suart_rx_cb(flags=00): de ad be ef
76test_tx_rx_exec_one(n_bits_total=40): 0011110111 0101101011 0011111011 0111101111
77suart_tx_cb(len=4/4): 00 aa 55 ff
78suart_rx_cb(flags=00): 00 aa 55 ff
79test_tx_rx_exec_one(n_bits_total=40): 0000000001 0010101011 0101010101 0111111111
80suart_tx_cb(len=4/4): 01 02 04 08
81suart_rx_cb(flags=00): 01 02 04 08
82test_tx_rx_exec_one(n_bits_total=40): 0100000001 0010000001 0001000001 0000100001
83suart_tx_cb(len=4/4): 10 20 40 80
84suart_rx_cb(flags=00): 10 20 40 80
85test_tx_rx_exec_one(n_bits_total=40): 0000010001 0000001001 0000000101 0000000011
86suart_tx_cb(len=0/4):
87test_tx_rx_exec_one(n_bits_total=40): 1111111111 1111111111 1111111111 1111111111
Vadim Yanitskiyd0b575c2023-12-09 04:26:51 +070088======== testing 8-N-2
Vadim Yanitskiy9ef304d2023-11-14 20:46:01 +070089suart_tx_cb(len=4/4): de ad be ef
90suart_rx_cb(flags=00): de ad be ef
91test_tx_rx_exec_one(n_bits_total=44): 00111101111 01011010111 00111110111 01111011111
92suart_tx_cb(len=4/4): 00 aa 55 ff
93suart_rx_cb(flags=00): 00 aa 55 ff
94test_tx_rx_exec_one(n_bits_total=44): 00000000011 00101010111 01010101011 01111111111
95suart_tx_cb(len=4/4): 01 02 04 08
96suart_rx_cb(flags=00): 01 02 04 08
97test_tx_rx_exec_one(n_bits_total=44): 01000000011 00100000011 00010000011 00001000011
98suart_tx_cb(len=4/4): 10 20 40 80
99suart_rx_cb(flags=00): 10 20 40 80
100test_tx_rx_exec_one(n_bits_total=44): 00000100011 00000010011 00000001011 00000000111
101suart_tx_cb(len=0/4):
102test_tx_rx_exec_one(n_bits_total=44): 11111111111 11111111111 11111111111 11111111111
Vadim Yanitskiyd0b575c2023-12-09 04:26:51 +0700103======== testing 8-E-1
Vadim Yanitskiy9ef304d2023-11-14 20:46:01 +0700104suart_tx_cb(len=4/4): de ad be ef
105suart_rx_cb(flags=00): de ad be ef
106test_tx_rx_exec_one(n_bits_total=44): 00111101101 01011010111 00111110101 01111011111
107suart_tx_cb(len=4/4): 00 aa 55 ff
108suart_rx_cb(flags=00): 00 aa 55 ff
109test_tx_rx_exec_one(n_bits_total=44): 00000000001 00101010101 01010101001 01111111101
110suart_tx_cb(len=4/4): 01 02 04 08
111suart_rx_cb(flags=00): 01 02 04 08
112test_tx_rx_exec_one(n_bits_total=44): 01000000011 00100000011 00010000011 00001000011
113suart_tx_cb(len=4/4): 10 20 40 80
114suart_rx_cb(flags=00): 10 20 40 80
115test_tx_rx_exec_one(n_bits_total=44): 00000100011 00000010011 00000001011 00000000111
116suart_tx_cb(len=0/4):
117test_tx_rx_exec_one(n_bits_total=44): 11111111111 11111111111 11111111111 11111111111
Vadim Yanitskiyd0b575c2023-12-09 04:26:51 +0700118======== testing 8-O-1
Vadim Yanitskiy9ef304d2023-11-14 20:46:01 +0700119suart_tx_cb(len=4/4): de ad be ef
120suart_rx_cb(flags=00): de ad be ef
121test_tx_rx_exec_one(n_bits_total=44): 00111101111 01011010101 00111110111 01111011101
122suart_tx_cb(len=4/4): 00 aa 55 ff
123suart_rx_cb(flags=00): 00 aa 55 ff
124test_tx_rx_exec_one(n_bits_total=44): 00000000011 00101010111 01010101011 01111111111
125suart_tx_cb(len=4/4): 01 02 04 08
126suart_rx_cb(flags=00): 01 02 04 08
127test_tx_rx_exec_one(n_bits_total=44): 01000000001 00100000001 00010000001 00001000001
128suart_tx_cb(len=4/4): 10 20 40 80
129suart_rx_cb(flags=00): 10 20 40 80
130test_tx_rx_exec_one(n_bits_total=44): 00000100001 00000010001 00000001001 00000000101
131suart_tx_cb(len=0/4):
132test_tx_rx_exec_one(n_bits_total=44): 11111111111 11111111111 11111111111 11111111111
Vadim Yanitskiyd0b575c2023-12-09 04:26:51 +0700133======== testing 8-M-1
Vadim Yanitskiy0d78a002023-11-19 16:15:38 +0700134suart_tx_cb(len=4/4): de ad be ef
135suart_rx_cb(flags=00): de ad be ef
136test_tx_rx_exec_one(n_bits_total=44): 00111101111 01011010111 00111110111 01111011111
137suart_tx_cb(len=4/4): 00 aa 55 ff
138suart_rx_cb(flags=00): 00 aa 55 ff
139test_tx_rx_exec_one(n_bits_total=44): 00000000011 00101010111 01010101011 01111111111
140suart_tx_cb(len=4/4): 01 02 04 08
141suart_rx_cb(flags=00): 01 02 04 08
142test_tx_rx_exec_one(n_bits_total=44): 01000000011 00100000011 00010000011 00001000011
143suart_tx_cb(len=4/4): 10 20 40 80
144suart_rx_cb(flags=00): 10 20 40 80
145test_tx_rx_exec_one(n_bits_total=44): 00000100011 00000010011 00000001011 00000000111
146suart_tx_cb(len=0/4):
147test_tx_rx_exec_one(n_bits_total=44): 11111111111 11111111111 11111111111 11111111111
Vadim Yanitskiyd0b575c2023-12-09 04:26:51 +0700148======== testing 8-S-1
Vadim Yanitskiy0d78a002023-11-19 16:15:38 +0700149suart_tx_cb(len=4/4): de ad be ef
150suart_rx_cb(flags=00): de ad be ef
151test_tx_rx_exec_one(n_bits_total=44): 00111101101 01011010101 00111110101 01111011101
152suart_tx_cb(len=4/4): 00 aa 55 ff
153suart_rx_cb(flags=00): 00 aa 55 ff
154test_tx_rx_exec_one(n_bits_total=44): 00000000001 00101010101 01010101001 01111111101
155suart_tx_cb(len=4/4): 01 02 04 08
156suart_rx_cb(flags=00): 01 02 04 08
157test_tx_rx_exec_one(n_bits_total=44): 01000000001 00100000001 00010000001 00001000001
158suart_tx_cb(len=4/4): 10 20 40 80
159suart_rx_cb(flags=00): 10 20 40 80
160test_tx_rx_exec_one(n_bits_total=44): 00000100001 00000010001 00000001001 00000000101
161suart_tx_cb(len=0/4):
162test_tx_rx_exec_one(n_bits_total=44): 11111111111 11111111111 11111111111 11111111111
Vadim Yanitskiyd0b575c2023-12-09 04:26:51 +0700163======== testing 6-N-1
Vadim Yanitskiy9ef304d2023-11-14 20:46:01 +0700164suart_tx_cb(len=4/4): de ad be ef
Vadim Yanitskiy2d2ce492023-11-19 15:37:10 +0700165suart_rx_cb(flags=00): 1e 2d 3e 2f
Vadim Yanitskiy9ef304d2023-11-14 20:46:01 +0700166test_tx_rx_exec_one(n_bits_total=32): 00111101 01011011 00111111 01111011
167suart_tx_cb(len=4/4): 00 aa 55 ff
Vadim Yanitskiy2d2ce492023-11-19 15:37:10 +0700168suart_rx_cb(flags=00): 00 2a 15 3f
Vadim Yanitskiy9ef304d2023-11-14 20:46:01 +0700169test_tx_rx_exec_one(n_bits_total=32): 00000001 00101011 01010101 01111111
170suart_tx_cb(len=4/4): 01 02 04 08
Vadim Yanitskiy2d2ce492023-11-19 15:37:10 +0700171suart_rx_cb(flags=00): 01 02 04 08
Vadim Yanitskiy9ef304d2023-11-14 20:46:01 +0700172test_tx_rx_exec_one(n_bits_total=32): 01000001 00100001 00010001 00001001
173suart_tx_cb(len=4/4): 10 20 40 80
Vadim Yanitskiy2d2ce492023-11-19 15:37:10 +0700174suart_rx_cb(flags=00): 10 20 00 00
Vadim Yanitskiy9ef304d2023-11-14 20:46:01 +0700175test_tx_rx_exec_one(n_bits_total=32): 00000101 00000011 00000001 00000001
176suart_tx_cb(len=0/4):
177test_tx_rx_exec_one(n_bits_total=32): 11111111 11111111 11111111 11111111
Vadim Yanitskiyd0b575c2023-12-09 04:26:51 +0700178
179Executing test_tx_rx_pull_n
180======== pulling 32 bits (1 at a time)
Vadim Yanitskiyffdd9972023-11-21 02:25:32 +0700181suart_tx_cb(len=1/1): 55
182suart_tx_cb(len=1/1): 55
183suart_tx_cb(len=1/1): 55
184suart_tx_cb(len=1/1): 55
18501010101010101010101010101010101
Vadim Yanitskiyd0b575c2023-12-09 04:26:51 +0700186======== feeding 32 bits into the receiver
Vadim Yanitskiyffdd9972023-11-21 02:25:32 +0700187suart_rx_cb(flags=00): 55 55 55
Vadim Yanitskiyd0b575c2023-12-09 04:26:51 +0700188
189Executing test_tx_rx_pull_n
190======== pulling 32 bits (2 at a time)
Vadim Yanitskiyffdd9972023-11-21 02:25:32 +0700191suart_tx_cb(len=1/1): 55
192suart_tx_cb(len=1/1): 55
193suart_tx_cb(len=1/1): 55
194suart_tx_cb(len=1/1): 55
19501010101010101010101010101010101
Vadim Yanitskiyd0b575c2023-12-09 04:26:51 +0700196======== feeding 32 bits into the receiver
Vadim Yanitskiyffdd9972023-11-21 02:25:32 +0700197suart_rx_cb(flags=00): 55 55 55
Vadim Yanitskiyd0b575c2023-12-09 04:26:51 +0700198
199Executing test_tx_rx_pull_n
200======== pulling 32 bits (4 at a time)
Vadim Yanitskiyffdd9972023-11-21 02:25:32 +0700201suart_tx_cb(len=1/1): 55
202suart_tx_cb(len=1/1): 55
203suart_tx_cb(len=1/1): 55
20401010101011101010101011101010101
Vadim Yanitskiyd0b575c2023-12-09 04:26:51 +0700205======== feeding 32 bits into the receiver
Vadim Yanitskiyffdd9972023-11-21 02:25:32 +0700206suart_rx_cb(flags=00): 55 55
Vadim Yanitskiyd0b575c2023-12-09 04:26:51 +0700207
208Executing test_tx_rx_pull_n
209======== pulling 32 bits (8 at a time)
Vadim Yanitskiyffdd9972023-11-21 02:25:32 +0700210suart_tx_cb(len=1/1): 55
211suart_tx_cb(len=1/1): 55
21201010101011111110101010101111111
Vadim Yanitskiyd0b575c2023-12-09 04:26:51 +0700213======== feeding 32 bits into the receiver
Vadim Yanitskiyffdd9972023-11-21 02:25:32 +0700214suart_rx_cb(flags=00): 55 55
Vadim Yanitskiyd0b575c2023-12-09 04:26:51 +0700215
216Executing test_modem_status
217initial status=0x00000000
Vadim Yanitskiy6587dd02023-11-30 03:04:32 +0700218de-asserting DCD, which was not asserted
219asserting both RI and DCD, expecting the callback to be called twice
220suart_status_change_cb(status=0x00000008)
221suart_status_change_cb(status=0x0000000a)
222de-asserting RI, expecting the callback to be called
223suart_status_change_cb(status=0x00000002)
224resetting to 0x00, expecting the callback to be called
225suart_status_change_cb(status=0x00000000)
Vadim Yanitskiyd0b575c2023-12-09 04:26:51 +0700226
227Executing test_flow_control_dtr_dsr
228initial status=0x00000000
Vadim Yanitskiy6587dd02023-11-30 03:04:32 +0700229expecting osmo_soft_uart_tx_ubits() to yield nothing
230expecting osmo_soft_uart_rx_ubits() to yield nothing
Vadim Yanitskiyd0b575c2023-12-09 04:26:51 +0700231======== asserting both DTR and DSR
Vadim Yanitskiy6587dd02023-11-30 03:04:32 +0700232suart_status_change_cb(status=0x00000001)
233suart_status_change_cb(status=0x00000005)
234expecting osmo_soft_uart_tx_ubits() to yield 40 bits (requesting 40 bits)
235suart_tx_cb(len=4/4): 42 42 42 42
2360010000101001000010100100001010010000101
237expecting osmo_soft_uart_rx_ubits() to consume 40 bits and yield 4 chars
238suart_rx_cb(flags=00): 42 42 42 42
239expecting osmo_soft_uart_tx_ubits() to yield 2 bits (requesting 2 bits)
240suart_tx_cb(len=1/1): 42
Vadim Yanitskiyd0b575c2023-12-09 04:26:51 +0700241======== de-asserting DSR
Vadim Yanitskiy6587dd02023-11-30 03:04:32 +0700242suart_status_change_cb(status=0x00000001)
243expecting osmo_soft_uart_tx_ubits() to yield 8 bits (requesting 40 bits)
244expecting osmo_soft_uart_rx_ubits() to consume 40 bits and yield a pending char
245suart_rx_cb(flags=00): 42
Vadim Yanitskiyd0b575c2023-12-09 04:26:51 +0700246
247Executing test_flow_control_rts_cts
248initial status=0x00000000
Vadim Yanitskiy6587dd02023-11-30 03:04:32 +0700249expecting osmo_soft_uart_tx_ubits() to yield nothing
250expecting osmo_soft_uart_rx_ubits() to yield nothing
Vadim Yanitskiyd0b575c2023-12-09 04:26:51 +0700251======== asserting both CTS and RTS/RTR
Vadim Yanitskiy6587dd02023-11-30 03:04:32 +0700252suart_status_change_cb(status=0x00000020)
253suart_status_change_cb(status=0x00000030)
254expecting osmo_soft_uart_tx_ubits() to yield 40 bits (requesting 40 bits)
255suart_tx_cb(len=4/4): 42 42 42 42
2560010000101001000010100100001010010000101
257expecting osmo_soft_uart_rx_ubits() to consume 40 bits and yield 4 chars
258suart_rx_cb(flags=00): 42 42 42 42
259expecting osmo_soft_uart_tx_ubits() to yield 2 bits (requesting 2 bits)
260suart_tx_cb(len=1/1): 42
Vadim Yanitskiyd0b575c2023-12-09 04:26:51 +0700261======== de-asserting CTS
Vadim Yanitskiy6587dd02023-11-30 03:04:32 +0700262suart_status_change_cb(status=0x00000010)
263expecting osmo_soft_uart_tx_ubits() to yield 8 bits (requesting 40 bits)
264expecting osmo_soft_uart_rx_ubits() to consume 40 bits and yield a pending char
265suart_rx_cb(flags=00): 42