Branch: refs/heads/main Home: https://github.com/OpenAMP/open-amp Commit: bbefedd4950c05113e4025688d160196c61157c3 https://github.com/OpenAMP/open-amp/commit/bbefedd4950c05113e4025688d160196c... Author: Guiding Li liguiding1@xiaomi.com Date: 2023-10-31 (Tue, 31 Oct 2023)
Changed paths: M lib/include/openamp/rpmsg.h M lib/rpmsg/rpmsg.c
Log Message: ----------- rpmsg: set ept address to incease num when alloc from the bitmap
CPU0 CPU1 create_ept1:addr1 create_ept1 OK <====== msg1 OK <====== msg2 OK <====== msg3 msg4 <====== msg4 on the virtioqueue close_ept1 close_ept1
create_ept2:addr1 create_ept1 (same addr with ept1) msg4 ept2 recv ept1 msg ERROR <======
The msg4 which belong to ep1, error received by ept2.
For this issue, I give a resolve method: Let the rpmsg_get_address() always return a new increased num.
Signed-off-by: Guiding Li liguiding1@xiaomi.com
openamp-rp@lists.openampproject.org