Branch: refs/heads/main Home: https://github.com/OpenAMP/open-amp Commit: 4e1fa03814331fb87ad238072789207db5dbc374 https://github.com/OpenAMP/open-amp/commit/4e1fa03814331fb87ad238072789207db... Author: Arnaud Pouliquen arnaud.pouliquen@foss.st.com Date: 2022-10-18 (Tue, 18 Oct 2022)
Changed paths: M docs/rpmsg-design.md M lib/include/openamp/rpmsg.h M lib/rpmsg/rpmsg.c
Log Message: ----------- rpmsg: Add rpmsg_release_tx_buffer API
Add an API to be able to release unused TX buffer that will not be sent. For instance this API can be called in case of error between the buffer reservation and the send to the remote side.
Signed-off-by: Arnaud Pouliquen arnaud.pouliquen@foss.st.com
Commit: 753a20368b2ab4b27b893eb44d7a7a5bdd840394 https://github.com/OpenAMP/open-amp/commit/753a20368b2ab4b27b893eb44d7a7a5bd... Author: Arnaud Pouliquen arnaud.pouliquen@foss.st.com Date: 2022-10-18 (Tue, 18 Oct 2022)
Changed paths: M docs/rpmsg-design.md
Log Message: ----------- docs: add no-copy user API description
Add short description of the no-copy user interface. Add some sub-chapters to increase the readability.
Signed-off-by: Arnaud Pouliquen arnaud.pouliquen@foss.st.com
Commit: 2e0015af74cee05cb82ff65c73f725670e28603e https://github.com/OpenAMP/open-amp/commit/2e0015af74cee05cb82ff65c73f725670... Author: Arnaud Pouliquen arnaud.pouliquen@foss.st.com Date: 2022-10-18 (Tue, 18 Oct 2022)
Changed paths: M lib/include/openamp/virtqueue.h M lib/virtio/virtqueue.c
Log Message: ----------- virtqueue: Add helper to get the buffer address from descriptor index
As it possible to get the buffer length we need also to retrieve the address associated to the descriptor index. This is need by rpmsg virtio to implement the buffer recycler.
Signed-off-by: Arnaud Pouliquen arnaud.pouliquen@foss.st.com
Commit: 6dad72724fcb056414e0193805362647e347ae59 https://github.com/OpenAMP/open-amp/commit/6dad72724fcb056414e0193805362647e... Author: Arnaud Pouliquen arnaud.pouliquen@foss.st.com Date: 2022-10-18 (Tue, 18 Oct 2022)
Changed paths: M lib/include/openamp/rpmsg_virtio.h M lib/rpmsg/rpmsg_virtio.c
Log Message: ----------- rpmsg virtio: Implement the Tx buffer reclaimer
With the no-copy feature a tx buffer can be get, filled and then sent to the remote side. In Some error cases the application can need to release it instead of sending it to the remote side. As the virtqueue is updated when the buffer it get, it is not possible to manage this use case at virtqueue level.
This patchset implements the release based on a buffer recycler. The principle is to store the released buffer in a 'reclaimer' list. On next get pmsg_virtio_get_tx_buffer call the buffer is reused.
Signed-off-by: Arnaud Pouliquen arnaud.pouliquen@foss.st.com
Commit: 80555a314e5cdc92533fec26e48941cd2db60108 https://github.com/OpenAMP/open-amp/commit/80555a314e5cdc92533fec26e48941cd2... Author: Arnaud Pouliquen arnaud.pouliquen@foss.st.com Date: 2022-10-18 (Tue, 18 Oct 2022)
Changed paths: M apps/tests/msg/CMakeLists.txt A apps/tests/msg/rpmsg-nocopy-echo.c A apps/tests/msg/rpmsg-nocopy-ping.c
Log Message: ----------- test: Add test for the no-copy validation.
Add test to validate the no copy and the associated Tx buffer recycler.
Signed-off-by: Arnaud Pouliquen arnaud.pouliquen@foss.st.com
Compare: https://github.com/OpenAMP/open-amp/compare/988da0074d9c...80555a314e5c
openamp-rp@lists.openampproject.org