Skip to content

Commit

Permalink
openamp: should kick remote when use release_rx_buffer
Browse files Browse the repository at this point in the history
There is missing virtqueue_kick when use hold_rx/release_rx

Signed-off-by: Guiding Li <liguiding1@xiaomi.com>
  • Loading branch information
GUIDINGLI committed Sep 28, 2022
1 parent a1c64fb commit c5c8a01
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rpmsg/rpmsg_virtio.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,8 @@ static void rpmsg_virtio_release_rx_buffer(struct rpmsg_device *rdev,
/* Return buffer on virtqueue. */
len = virtqueue_get_buffer_length(rvdev->rvq, idx);
rpmsg_virtio_return_buffer(rvdev, rp_hdr, len, idx);
/* tell peer we return some rx buffer */
virtqueue_kick(rvdev->rvq);
metal_mutex_release(&rdev->lock);
}

Expand Down

0 comments on commit c5c8a01

Please sign in to comment.