I have an algorithm that runs using Codec Engine on the DM8168. The algorithm is running on the DSP while the host is an ARM.
The DSP algorithm takes a "Shared Region 2" buffer from the ARM (marked as uncacheable on the ARM) and then processes this buffer into an output buffer. The output buffer has been allocated with kmalloc on Linux then passed to the algorithm via the Codec Engine framework.
How do I ensure that after the DSP has processed the data into the output buffer it flushes its cache to the output buffer?
Thanks,
Ralph