Branch: refs/heads/main
Home: https://github.com/OpenAMP/open-amp
Commit: bbefedd4950c05113e4025688d160196c61157c3
https://github.com/OpenAMP/open-amp/commit/bbefedd4950c05113e4025688d160196…
Author: Guiding Li <liguiding1(a)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(a)xiaomi.com>
Branch: refs/heads/main
Home: https://github.com/OpenAMP/libmetal
Commit: 694620ff25fc6e4f9ced9899d0f038df95cc435e
https://github.com/OpenAMP/libmetal/commit/694620ff25fc6e4f9ced9899d0f038df…
Author: Guiding Li <liguiding1(a)xiaomi.com>
Date: 2023-10-31 (Tue, 31 Oct 2023)
Changed paths:
M lib/utilities.h
Log Message:
-----------
libmetal: set ept address loop++ in 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 the issue, I give a resolve method,
for the rpmsg_get_address(), always return a new increased num.
Signed-off-by: Guiding Li <liguiding1(a)xiaomi.com>
Branch: refs/heads/main
Home: https://github.com/OpenAMP/libmetal
Commit: e087ea5d38c2278047b796c0a0123124cdcdee05
https://github.com/OpenAMP/libmetal/commit/e087ea5d38c2278047b796c0a0123124…
Author: Guiding Li <liguiding1(a)xiaomi.com>
Date: 2023-10-31 (Tue, 31 Oct 2023)
Changed paths:
M lib/list.h
Log Message:
-----------
libmetal: add metal_list_for_each_safe() support
Add a more secure way to traverse linked lists
Signed-off-by: Guiding Li <liguiding1(a)xiaomi.com>