Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] bsp/cvitek riscv 小核需要支持 cache 操作 #9769

Open
unicornx opened this issue Dec 10, 2024 · 2 comments
Open

[Feature] bsp/cvitek riscv 小核需要支持 cache 操作 #9769

unicornx opened this issue Dec 10, 2024 · 2 comments
Assignees
Labels
Arch: RISC-V BSP related with risc-v BSP: Cvitek BSP related with cvitek

Comments

@unicornx
Copy link
Contributor

Describe problem solved by the proposed feature

需要补充 ??

Describe your preferred solution

No response

Describe possible alternatives

No response

@unicornx unicornx changed the title [Feature] bsp/cvitek riscv 小核需要支持 cache [Feature] bsp/cvitek riscv 小核需要支持 cache 操作 Dec 10, 2024
@unicornx unicornx added BSP: Cvitek BSP related with cvitek Arch: RISC-V BSP related with risc-v labels Dec 10, 2024
@zdtyuiop4444
Copy link
Contributor

我最近正在做一个这样的应用:小核采集传感器数据发给大核,大核通过网络传输到云端。
这样小核读到的数据要想办法传到大核,直接通过mailbox传输的速度达不到要求,所以就想着使用共享内存的方式传输数据。
在共享内存传数据的时候发现有缓存一致性的问题,大核不能及时看到小核对内存的修改,反过来也一样。跟milkv的工程师交流之后发现是小核这边DCache写回问题。可以参照社区这篇帖子

Describe problem solved by the proposed feature

解决了大小核通过共享内存通讯时遇到的缓存一致性问题

Describe your preferred solution

通过在读前写后手动flush D-Cache的方式,强制对应的内容写入到内存或直接从内存中读取

Describe possible alternatives

直接关闭D-Cache, 但经测试会对性能有相当大的影响,修改之后SPI读写连5M都跑不到

@unicornx
Copy link
Contributor Author

unicornx commented Dec 12, 2024

请将你的 pr #9696 和这个 issue 关联起来吧。然后对你的 pr 做修改后重新提交 review 即可。

具体如何操作,可以阅读:https://github.com/plctlab/plct-rt-thread/blob/notes/0.notes/20241212-github-tips.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arch: RISC-V BSP related with risc-v BSP: Cvitek BSP related with cvitek
Projects
None yet
Development

No branches or pull requests

2 participants