Commits
Martin Ambrose committed 63af67b91f4
HACK: ARM: dma-mapping: create non-zeroing dma_map_ops A new dma_ops, 'arm_dma_m_ops', is created from a copy of the standard 'arm_dma_ops' but with a new non-zeroing .alloc method. These ops are added mainly to support a 'late attach' feature in the OMAP remoteproc driver. When remoteproc does a 'late attach' to a remote processor, it does not load any firmware contents into memory, but it still needs to allocate the processor's CMA memory to mark the memory as reserved/used from the kernel. The standard 'arm_dma_ops' contains an .alloc method that zeroes out the memory, thereby overwriting the firmware code/data in the memory that was pre-loaded before the Linux kernel has booted. This scenario is handled by adding a new non-zeroing allocation function and using it as the .alloc method in a copy of the 'arm_dma_ops'. The so created 'arm_dma_m_ops' will be assigned as the rproc device's dma_ops when supporting the 'late attach' functionality. Signed-off-by: Martin Ambrose <martin@ti.com> Signed-off-by: Robert Tivy <rtivy@ti.com> Signed-off-by: Suman Anna <s-anna@ti.com> Signed-off-by: Amarinder Bindra <a-bindra@ti.com> Signed-off-by: Venkateswara Rao Mandela <venkat.mandela@ti.com> Signed-off-by: Angela Stegmaier <angelabaker@ti.com> Signed-off-by: Keerthy <j-keerthy@ti.com>