wangduoyu
New Contributor
1 month agoMSGDMA ST-to-MM: Linux Driver Necessity & F2SDRAM Path Feasibility
Hello everyone, I am currently working on an MSGDMA implementation. I have verified that I can read the MSGDMA CSR and Descriptor registers via the LWH2F bridge using devmem2. My setup is configured ...
- 1 month ago
Hello,
- You can configure the MSGDMA IP directly from userspace using devmem2, or with other userspace access technologies such as UIO. For details of how to configure it, including registers, see https://docs.altera.com/r/docs/683130/25.3/embedded-peripherals-ip-user-guide/modular-scatter-gather-dma-core. However please note that you will need to provide the MSGDMA with physical memory addresses to read from and write to - you will need to either pin and map memory areas in the kernel, or reserved physical address ranges in some way (for example https://www.kernel.org/doc/Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml)
- The FPGA2HPS bridge is cache-coherent. This means that the state of the cache is kept synchronized with memory operations performed by MSGDMA over the bridge. You may use FPGA2SDRAM instead, however you must manage cache coherency yourself. This is usually done in a Linux kernel driver. I am not aware of any mechanism to achieve this from userspace.