Branch: refs/heads/main Home: https://github.com/OpenAMP/open-amp Commit: 7a11ad1e68c30724e2d0b713bb44fa0059fb5d0c https://github.com/OpenAMP/open-amp/commit/7a11ad1e68c30724e2d0b713bb44fa005... Author: Guiding Li liguiding1@xiaomi.com Date: 2023-04-20 (Thu, 20 Apr 2023)
Changed paths: M lib/rpmsg/rpmsg_virtio.c
Log Message: ----------- rpmsg: add cache flash when return rx buffer
Assume we have 2 cpus, and use cached shram buffer
CPU0 CPU1
1. send tx bufferX 2. recv rx bufferX 3. set idx to hdr->reserved 4. handled rx bufferX 5. return bufferX 6. reuse tx bufferX 7. dirty cache auto flushed, hdr changed 8. buffer X meet error
Signed-off-by: Guiding Li liguiding1@xiaomi.com