Skip to content

Export ntfc fix - #2

Open
szafonimateusz-mi wants to merge 2 commits into
masterfrom
export_ntfc_fix
Open

szafonimateusz-mi wants to merge 2 commits into
masterfrom
export_ntfc_fix

Conversation

@szafonimateusz-mi

Copy link
Copy Markdown
Owner

test

Don't export pytest.debug.log in CI artifacts.
In case of an exception returned by ntfc, this file may
not be present. A future version of ntfc will place this
file in the "results" dir, so it will be exported anyway.

Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
update notes about NTFC

Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
raiden00pl pushed a commit that referenced this pull request Nov 9, 2026
The tx thread reads EVT_CONNED and sends CONNREQ without a lock, while
the rx thread sets EVT_CONNED and replies CONNACK. A stale read lets
the tx thread send CONNREQ after CONNACK has gone out:

      tx thread             rx thread (process_rx_conn)
 t0   read EVT_CONNED==0
                            <-- CONNREQ from peer
 t1                         set EVT_CONNED
                            send CONNACK  --> peer registers (#1)
 t2   send CONNREQ (stale)  --------------> peer takes it as a
                                            restart: unreg + reg (#2)

Take a conn_lock around the tx startup check-and-send and around the
EVT_CONNED update in rpmsg_port_uart_process_rx_conn(), so only one
side starts the handshake and the peer registers once. The lock is not
held across rpmsg_port_register()/unregister(): they can run the rx
worker again on the same thread when no tx buffer is free.

Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant