Commits
Robert Tivy committed d5093bcaa3d
TEMP: remoteproc/omap: add "late attach" support Add the necessary support in the OMAP remoteproc driver to enable the "late attach" functionality. The 'late attach' functionality has the processors already loaded and running by the time the kernel has booted. The 'late attach' support in OMAP remoteproc driver is added through minimal changes like skipping the releasing of the processor reset. The processor reset is skipped as this relies on the omap_hwmod / omap_device API which perform a module disable/enable sequence in addition to the reset programming. Other required functionality is achieved through the late attach support in the remoteproc driver core. During late attach, we use non-zeroing dma ops to prevent the kernel from overwriting already loaded code and data segments. When shutting down the processor, we restore the normal zeroing dma ops. This allows the kernel to clear memory when loading a new remoteproc binary or during error recovery with the current remoteproc binary. The 'late attach' capability is determined through a .device_is_enabled pdata ops. The rproc nodes along with the corresponding IOMMU and timer nodes should all have the "ti,no-idle-on-init" and "ti,no-reset-on-init" properties set to prevent omap_hwmod from resetting and idling these devices on boot. The .late_attach field in the rproc data structure is used to denote the mode and differentiate a normal boot from a late-attach boot. The late_attach functionality is relevant only for the first time boot of the kernel, and will be reset for subsequent probes of the remoteproc node. The flag is also reset during the stopping of the remoteproc, so that any error recovery results in a regular boot. TODO: Move away from modifying the dma_ops for the device completely. Signed-off-by: Robert Tivy <rtivy@ti.com> Signed-off-by: Suman Anna <s-anna@ti.com> Signed-off-by: Venkateswara Rao Mandela <venkat.mandela@ti.com> Signed-off-by: Angela Stegmaier <angelabaker@ti.com> Signed-off-by: Shravan Karthik <shravan.karthik@ti.com> Signed-off-by: Keerthy <j-keerthy@ti.com>