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
Branch: refs/heads/main
Home: https://github.com/OpenAMP/libmetal
Commit: 224cdea1886a883be7a4652192ae56d485efca6e
https://github.com/OpenAMP/libmetal/commit/224cdea1886a883be7a4652192ae56d4…
Author: Ben Levinsky <ben.levinsky(a)amd.com>
Date: 2023-12-20 (Wed, 20 Dec 2023)
Changed paths:
M lib/system/generic/xlnx/CMakeLists.txt
M lib/system/generic/xlnx/sys.h
A lib/system/generic/xlnx/sys_devicetree.h
Log Message:
-----------
lib: generic: xlnx: Enable CMake handling for System Device Tree Flow
For AMD-Xilinx tooling, there is a new System Device Tree (SDT) BSP
with different symbols for GIC than the classic BSP. This causes issues
when linking Libmetal against the SDT Flow BSP. Note that there is a
planned deprecation of the classic BSP.
For AMD-Xilinx System Device Tree (SDT) Flow, one of the files provided
by BSP is bspconfig.h. This file provides reference to the symbols that
describe GIC Device ID and GIC distributor Base Address. AMD-Xilinx
tools that use the SDT Flow BSP will provide symbol 'SDT' to signal that
the SDT Flow BSP is present. If SDT symbol is present then the Libmetal
build will include the new header "lib/system/generic/xlnx/sdt.h" to
preserve library build.
Signed-off-by: Ben Levinsky <ben.levinsky(a)amd.com>
Branch: refs/heads/main
Home: https://github.com/OpenAMP/libmetal
Commit: f55c02a7b582825399d37171625aa47ae5b41eb2
https://github.com/OpenAMP/libmetal/commit/f55c02a7b582825399d37171625aa47a…
Author: Johan Hedberg <johan.hedberg(a)intel.com>
Date: 2023-12-15 (Fri, 15 Dec 2023)
Changed paths:
M lib/system/zephyr/alloc.c
M lib/system/zephyr/alloc.h
Log Message:
-----------
Zephyr integration: Use K_HEAP_MEM_POOL_SIZE
This define should be used instead of the Kconfig option to determine if
the k_malloc family of functions are available.
Signed-off-by: Johan Hedberg <johan.hedberg(a)intel.com>
Branch: refs/heads/virtio-exp
Home: https://github.com/OpenAMP/open-amp
Commit: ead7ad8bb0a0db925e3a7e2a42ca6def8b8c399b
https://github.com/OpenAMP/open-amp/commit/ead7ad8bb0a0db925e3a7e2a42ca6def…
Author: Felipe Neves <felipe.neves(a)linaro.org>
Date: 2023-12-14 (Thu, 14 Dec 2023)
Changed paths:
M cmake/options.cmake
M lib/include/openamp/virtio.h
A lib/include/openamp/virtio_mmio_dev.h
M lib/virtio_mmio/CMakeLists.txt
A lib/virtio_mmio/virtio_mmio_dev.c
Log Message:
-----------
virtio-mmio: add initial support for Virtio MMIO device side
Signed-off-by: Felipe Neves <felipe.neves(a)linaro.org>
virtio_mmio_dev: initial support for device side
virtio mmio transport, it is based on work done originally
by Nicolas Granger from ST: <nicolas.granger01(a)st.com>
Signed-off-by: Felipe Neves <felipe.neves(a)linaro.org>
Commit: a76b28b2486089cd0c861233f4d7bebf8acf63fc
https://github.com/OpenAMP/open-amp/commit/a76b28b2486089cd0c861233f4d7bebf…
Author: Felipe Neves <felipe.neves(a)linaro.org>
Date: 2023-12-14 (Thu, 14 Dec 2023)
Changed paths:
M lib/include/openamp/virtio_mmio.h
R lib/include/openamp/virtio_mmio_dev.h
M lib/virtio_mmio/virtio_mmio_dev.c
Log Message:
-----------
virtio_mmio: unify device and driver interfaces into a
single header file.
Signed-off-by: Felipe Neves <felipe.neves(a)linaro.org>
Compare: https://github.com/OpenAMP/open-amp/compare/23058fc10872...a76b28b24860
Branch: refs/heads/main
Home: https://github.com/OpenAMP/open-amp
Commit: 34f9a7c7be026e6429c5870a049027c7c2458988
https://github.com/OpenAMP/open-amp/commit/34f9a7c7be026e6429c5870a049027c7…
Author: Bowen Wang <wangbowen6(a)xiaomi.com>
Date: 2023-12-05 (Tue, 05 Dec 2023)
Changed paths:
M lib/rpmsg/rpmsg_virtio.c
Log Message:
-----------
rpmsg_virtio: add RPMSG_ASSERT to check the virtqueue add error
Add RPMSG_ASSERT() to rpmsg_virtio_return_buffer() to check the
possible virtqueue buffer add error.
Signed-off-by: Bowen Wang <wangbowen6(a)xiaomi.com>
Branch: refs/heads/main
Home: https://github.com/OpenAMP/open-amp
Commit: 1cff9f92d176b198329191f194ef5bb0d683b2c9
https://github.com/OpenAMP/open-amp/commit/1cff9f92d176b198329191f194ef5bb0…
Author: Guiding Li <liguiding1(a)xiaomi.com>
Date: 2023-12-05 (Tue, 05 Dec 2023)
Changed paths:
M lib/remoteproc/remoteproc.c
Log Message:
-----------
remoteproc: clear bitmap in remoteproc_stop()
Fix parse res_table failed when repeat start the remoteproc.
If we don't clear the bitmap it will failed in
handle_vdev_rsc() -> remoteproc_allocate_id()
Signed-off-by: Guiding Li <liguiding1(a)xiaomi.com>
Branch: refs/heads/main
Home: https://github.com/OpenAMP/open-amp
Commit: 95802c1d0328d2d0fe97fc744aa213eb8bc0e466
https://github.com/OpenAMP/open-amp/commit/95802c1d0328d2d0fe97fc744aa213eb…
Author: Guiding Li <liguiding1(a)xiaomi.com>
Date: 2023-12-05 (Tue, 05 Dec 2023)
Changed paths:
M lib/include/openamp/remoteproc.h
M lib/include/openamp/remoteproc_virtio.h
M lib/include/openamp/rpmsg.h
M lib/include/openamp/virtio.h
M lib/remoteproc/remoteproc.c
M lib/remoteproc/remoteproc_virtio.c
M lib/rpmsg/rpmsg_virtio.c
Log Message:
-----------
openamp: add new ops wait_notified() to avoid looping in tx buffer get
Give users a chance to handle the no tx buffer situation when get tx
buffer, with this patch, user can call rproc_virtio_set_wait_notified()
to set the wait_notified() callback and this callback function will be
called to handle the wait when no tx buffer in tx virtqueue.
Signed-off-by: Guiding Li <liguiding1(a)xiaomi.com>
Signed-off-by: Bowen Wang <wangbowen6(a)xiaomi.com>
Branch: refs/heads/main
Home: https://github.com/OpenAMP/open-amp
Commit: b33183fea5dc6954e5928a26049752e6ed9c87df
https://github.com/OpenAMP/open-amp/commit/b33183fea5dc6954e5928a26049752e6…
Author: Bowen Wang <wangbowen6(a)xiaomi.com>
Date: 2023-11-29 (Wed, 29 Nov 2023)
Changed paths:
M lib/include/openamp/rpmsg.h
M lib/rpmsg/rpmsg.c
M lib/rpmsg/rpmsg_internal.h
M lib/rpmsg/rpmsg_virtio.c
Log Message:
-----------
rpmsg: add release cb and refcnt in endpoint to fix ept used-after-free
if rpmsg service free the ept when has got the ept from the ept
list in rpmsg_virtio_rx_callback, there is a used after free about
the ept, so add refcnt to end point and call the rpmsg service
release callback when ept callback fininshed.
Signed-off-by: Bowen Wang <wangbowen6(a)xiaomi.com>
Branch: refs/heads/main
Home: https://github.com/OpenAMP/open-amp
Commit: 79b1a2cbe46aba1feaa3d90678dc31cbbdb279dc
https://github.com/OpenAMP/open-amp/commit/79b1a2cbe46aba1feaa3d90678dc31cb…
Author: Guiding Li <liguiding1(a)xiaomi.com>
Date: 2023-11-22 (Wed, 22 Nov 2023)
Changed paths:
M lib/rpmsg/rpmsg_virtio.c
Log Message:
-----------
rpmsg: let rpmsg_virtio_get_tx_buffer() always return idx in host side
In rpmsg host side, the tx buffer index is not assigned when this buffer
is obtained from the reclaimer list, this commit let
rpmsg_virtio_get_tx_buffer() always get correct idx.
Note: the idx in rpmsg host side is not used, so this commit is just
an improvement and not fix any issue.
Signed-off-by: Guiding Li <liguiding1(a)xiaomi.com>
Signed-off-by: Bowen Wang <wangbowen6(a)xiaomi.com>
Branch: refs/heads/main
Home: https://github.com/OpenAMP/open-amp
Commit: cce796dff4baa6865142f40db6e4b914ac8fb1b9
https://github.com/OpenAMP/open-amp/commit/cce796dff4baa6865142f40db6e4b914…
Author: Dan Milea <dan.milea(a)windriver.com>
Date: 2023-11-21 (Tue, 21 Nov 2023)
Changed paths:
M lib/service/rpmsg/rpc/rpmsg_rpc_client.c
Log Message:
-----------
service: rpmsg_rpc: fix build error
The if (&rpc->ept) comparison will always evaluate as 'true',
since rpc == &rpc->ept and rpc is previously checked to be valid.
This produces an error when building open-amp with gcc >= 13.
Signed-off-by: Dan Milea <dan.milea(a)windriver.com>