nuttx/openamp
Bowen Wang 1fa6a43a40 openamp: optimize virtqueue_notification() called condition
1. call virtqueue_notification() only when buffer exist to avoid unnecessary
calls to virtqueue callback.

2. call virtqueue_notification() only when vq != NULL, because
rproc_virtio_notified() may be called when the virtqueues is not created:
virtqueue created in the virtio/vhost driver but the virtio devices
has been added to the remoteproc virtio devices list after the remoteproc
transport layer create the virtio devices.

Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2026-01-19 14:18:27 +08:00
..
.gitignore
0001-libmetal-cmake-set-HAVE_STDATOMIC_H-default-true-in-.patch openamp/libmetal: change the libmetal mutex to rmutex to avoid carsh 2026-01-04 21:06:10 +08:00
0001-ns-acknowledge-the-received-creation-message.patch openamp: make the remoteproc virtio fit more virtio devices 2026-01-19 14:18:27 +08:00
0002-libmetal-atomic-enable-64-bit-atomic-by-toolchain-bu.patch openamp/libmetal: change the libmetal mutex to rmutex to avoid carsh 2026-01-04 21:06:10 +08:00
0002-Negotiate-individual-buffer-size-dynamically.patch openamp: make the remoteproc virtio fit more virtio devices 2026-01-19 14:18:27 +08:00
0003-mutex-change-the-libmetal-nuttx-mutex-to-recursive-m.patch openamp/libmetal: change the libmetal mutex to rmutex to avoid carsh 2026-01-04 21:06:10 +08:00
0003-rpmsg-notify-the-user-when-the-remote-address-is-rec.patch openamp: make the remoteproc virtio fit more virtio devices 2026-01-19 14:18:27 +08:00
0004-rpmsg-wait-ept-ready-in-rpmsg_send.patch openamp: make the remoteproc virtio fit more virtio devices 2026-01-19 14:18:27 +08:00
0005-openamp-add-VIRTIO_RING_F_MUST_NOTIFY-event.patch openamp: make the remoteproc virtio fit more virtio devices 2026-01-19 14:18:27 +08:00
0006-rpmsg_virtio-don-t-need-check-status-when-get_tx_pay.patch openamp: make the remoteproc virtio fit more virtio devices 2026-01-19 14:18:27 +08:00
0007-virtqueue-move-virtqueue_nused-and-virtqueue_navail-.patch openamp: make the remoteproc virtio fit more virtio devices 2026-01-19 14:18:27 +08:00
0008-lib-rpmsg-rpmsg_virtio-add-last-buffer-check-to-fix-.patch openamp: make the remoteproc virtio fit more virtio devices 2026-01-19 14:18:27 +08:00
0009-virtio-change-feature-to-64-bit-in-all-virtio_dispat.patch openamp: make the remoteproc virtio fit more virtio devices 2026-01-19 14:18:27 +08:00
0010-openamp-add-assert-when-get-tx-buffer-failed.patch openamp: make the remoteproc virtio fit more virtio devices 2026-01-19 14:18:27 +08:00
0011-remoteproc_virtio-add-shm_io-for-remoteproc-virtio-a.patch openamp: make the remoteproc virtio fit more virtio devices 2026-01-19 14:18:27 +08:00
0012-remoteproc-sync-the-virtio-rpmsg-config-with-linux-s.patch openamp: make the remoteproc virtio fit more virtio devices 2026-01-19 14:18:27 +08:00
0013-virtio.h-add-mm_priv-to-struct-virtio_deivce.patch openamp: add mm_priv to struct virtio_device 2026-01-19 14:18:27 +08:00
0014-lib-rpmsg_virtio-use-virtio_alloc_buf-to-alloc-share.patch openamp: rpmsg virtio use virtio_alloc_buf to alloc share memory 2026-01-19 14:18:27 +08:00
0015-lib-remoteproc_virtio-optimize-virtqueue_notificatio.patch openamp: optimize virtqueue_notification() called condition 2026-01-19 14:18:27 +08:00
CMakeLists.txt openamp: update openamp and libmetal to last release version 2025-12-31 02:36:29 +08:00
Kconfig openamp: replace VIRTIO_DRIVER/DEVICE_ONLY to VIRTIO_DRIVER/DEVICE_SUPPORT 2024-10-09 23:32:58 +08:00
libmetal.cmake openamp/libmetal: change the libmetal mutex to rmutex to avoid carsh 2026-01-04 21:06:10 +08:00
libmetal.defs openamp/libmetal: change the libmetal mutex to rmutex to avoid carsh 2026-01-04 21:06:10 +08:00
Makefile openamp: update openamp and libmetal to last release version 2025-12-31 02:36:29 +08:00
open-amp.cmake openamp: optimize virtqueue_notification() called condition 2026-01-19 14:18:27 +08:00
open-amp.defs openamp: optimize virtqueue_notification() called condition 2026-01-19 14:18:27 +08:00