-
I read the RPMSG part of documentation https://openamp.readthedocs.io/en/latest/protocol_details/rpmsg.html#rpmsg-messaging-protocol. It metioned that My system is 2 cores run SMP Linux and 2 cores run RTOS, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
So, Are you planning to achieve a communication between linux and two cores ? Assuming 2 cores running RTOS in AMP mode, where each core operated individually. For example:
In this case, you would need three shared memory regions: shmem1: Linux to/From Core0-RTOS Shmem2: Linux to/From Core1-RTOS shmem3: Core0-RTOS to/From Core1-RTOS "multiple core read/write message to only one shared memory region" -> This may not be possibe as, if single shared memory region is available for more than two cores, data corruption is possible. Probably virtio spec not designed for this case. |
Beta Was this translation helpful? Give feedback.
-
I believe in SMP use cases, application explicitly needs to apply spinlocks. |
Beta Was this translation helpful? Give feedback.
I believe in SMP use cases, application explicitly needs to apply spinlocks.
mutexes are used, but not sure if they can prevent data corruption due to race condition between two different cores