remoteproc: k3-r5: Wait for core0 power-up before powering up core1
authorApurva Nandan <a-nandan@ti.com>
Tue, 30 Apr 2024 10:53:06 +0000 (16:23 +0530)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 30 Apr 2024 16:49:11 +0000 (10:49 -0600)
commit61f6f68447aba08aeaa97593af3a7d85a114891f
treef73bbf174a413b73a705592651256dc564aef624
parentfaba7db431294e0684d08a51b1f04cda75473d93
remoteproc: k3-r5: Wait for core0 power-up before powering up core1

PSC controller has a limitation that it can only power-up the second core
when the first core is in ON state. Power-state for core0 should be equal
to or higher than core1, else the kernel is seen hanging during rproc
loading.

Make the powering up of cores sequential, by waiting for the current core
to power-up before proceeding to the next core, with a timeout of 2sec.
Add a wait queue event in k3_r5_cluster_rproc_init call, that will wait
for the current core to be released from reset before proceeding with the
next core.

Fixes: 6dedbd1d5443 ("remoteproc: k3-r5: Add a remoteproc driver for R5F subsystem")
Signed-off-by: Apurva Nandan <a-nandan@ti.com>
Signed-off-by: Beleswar Padhi <b-padhi@ti.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20240430105307.1190615-2-b-padhi@ti.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/ti_k3_r5_remoteproc.c