Branch: refs/heads/main
Home: https://github.com/OpenAMP/open-amp
Commit: b32187e4fb890c5014b93dd734a0aab9eaebcfb7
https://github.com/OpenAMP/open-amp/commit/b32187e4fb890c5014b93dd734a0aab9…
Author: Guiding Li <liguiding1(a)xiaomi.com>
Date: 2024-01-10 (Wed, 10 Jan 2024)
Changed paths:
M lib/rpmsg/rpmsg_internal.h
M lib/rpmsg/rpmsg_virtio.c
Log Message:
-----------
openamp: change rx/tx buffer hold flag to count
Before this commit, if rpmsg_hold_rx_buffer() is called in the endpoint
callback to hold current rx buffer and call rpmsg_release_rx_buffer()
to release this buffer immediately, this rx buffer will be returned to
the virtqueue twice:
1. the first time is in rpmsg_virtio_release_rx_buffer()
2. and the second time is in rpmsg_virtio_return_buffer() after ept->cb()
Follow shows this process:
rpmsg_virtio_rx_callback()
- get rp_hdr
- ept->cb(data = RPMSG_LOCATE_DATA(rp_hdr))
- rpsmg_hold_rx_buffer(data)
- rpmsg_release_rx_buffer(data) return buffer to virtqueue
- rpmsg_virtio_return_buffer(data) return same buffer to virtqueue again
So this commit changes the HELD flag in rp_hdr to count to avoid this
use case and also supports hold/release rx buffer recursively.
Signed-off-by: Guiding Li <liguiding1(a)xiaomi.com>
Signed-off-by: Yin Tao <yintao(a)xiaomi.com>
Signed-off-by: Bowen Wang <wangbowen6(a)xiaomi.com>
Branch: refs/heads/main
Home: https://github.com/OpenAMP/open-amp
Commit: 62a003d7c417e23be8905c61f7db17815938b475
https://github.com/OpenAMP/open-amp/commit/62a003d7c417e23be8905c61f7db1781…
Author: Bowen Wang <wangbowen6(a)xiaomi.com>
Date: 2024-01-09 (Tue, 09 Jan 2024)
Changed paths:
M lib/remoteproc/remoteproc_virtio.c
Log Message:
-----------
remoteproc_virtio: initialize the virtio device id when create vdev
Should init the device ID when create the virtio device.
Signed-off-by: Bowen Wang <wangbowen6(a)xiaomi.com>
Branch: refs/heads/main
Home: https://github.com/OpenAMP/open-amp
Commit: 1957ed269cdc2f878bf5d1924dadac12dece82f2
https://github.com/OpenAMP/open-amp/commit/1957ed269cdc2f878bf5d1924dadac12…
Author: Taras Zaporozhets <zaporozhets.taras(a)gmail.com>
Date: 2024-01-04 (Thu, 04 Jan 2024)
Changed paths:
M lib/CMakeLists.txt
Log Message:
-----------
lib: Add include directory to open_amp-static target
Include a header directory in the open_amp-static target, enabling
building and linking static library using CMake subdirectory.
Signed-off-by: Taras Zaporozhets <zaporozhets.taras(a)gmail.com>
Hello,
Please ignore message received about "release: open-amp 2022.10.1" and branches update.
I deleted some branches following a manipulation error, everything is back in order.
Regards,
Arnaud