Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork219
Refactor and fix RPC library.#814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Closed
Closed
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
7c7d1ad tob7bb1abComparebbd094b to6f79f00Compare- Fix the memory corruption caused by the wrong MPU region configuration, whichenabled caching of the shared memory region, without any cache maintenance inlibmetal.- Fix the MPU region's TEX level, which was setting the shared memory region asa device and/or strongly-ordered memory, which caused usage faults on unalignedaccesses.- Fix a deadlock that occurs if the main thread (sketch) makes a remote calland holds the virtqueue's mutex, and then gets preempted by the event thread,which in turn tries to acquire the same mutex. Note that libmetal's muteximplementation doesn't yield the CPU, it can be changed to do so, but for nowthe queues are protected with an OS mutex.- Fix RPCLIB msgpack unpacker memory overflow if RPMSG endpoint buffer > 512.- Optimize RPCLIB msgpack unpacker usage by allocating once and extending ondemand.- Remove extra request/response threads, locking and callbacks, that werecausing all sorts of concurrency issues, and were detrimental to performance.- Remove the redundant copy of messages to ring buffer, to boost the performance.- Remove many smaller dynamic allocation to improve the performance.- Use a single endpoint for message packs requests/responses ("RPC"), andanother one dedicated for raw (non-packed) data.- General refactoring and cleanups, removal of dead code and variables,debugging code, etc...Signed-off-by: iabdalkader <i.abdalkader@gmail.com>- Fix serial pass-through example.- Add MD5 checksum example.- Add RAW-channel ping-pong example.Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
6f79f00 tofb48b0eCompareMember
facchinm commentedJan 12, 2024
Manually merged in |
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading.Please reload this page.
Main changes in this PR:
This PR depends on the following: