remoteproc: k3-dsp: Flush D cache after loading firmware
authorUdit Kumar <u-kumar1@ti.com>
Thu, 13 Feb 2025 09:23:22 +0000 (14:53 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 21 Feb 2025 17:36:37 +0000 (11:36 -0600)
commit13654f5426d3f9ebc7d1211528c86dd18b91f473
tree9d089f41ed243b7e583cd1db18562527776f5158
parentc36945065fce960f0b7c104fa10cf4a6ec803b62
remoteproc: k3-dsp: Flush D cache after loading firmware

Memory region used by remote cores was set to non-cached region but
commit 7c9c6e192580 ("arm: mach-k3: Merge initial memory maps") makes
all memory region as cached, unified across K3 devices.

This causes inconsistency while booting remote cores on devices, due to
cache incoherency between remote core and boot code.

So to make this operation coherent, cache the address and len while
loading ELF program headers to memory and flush that region in the next
cycle of load.

Signed-off-by: Udit Kumar <u-kumar1@ti.com>
Signed-off-by: Beleswar Padhi <b-padhi@ti.com>
drivers/remoteproc/ti_k3_dsp_rproc.c