]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Jun 2024 12:40:34 +0000 (14:40 +0200)
commit8ae2a10f5c7010ac82ab015cf864199093d61a7d
treeb29d06e99a1548dd8e17b1a4e66eb9409ca35384
parentf6adc5322e153600d06ec8c3a64e5521985b8a89
remoteproc: k3-r5: Wait for core0 power-up before powering up core1

commit 61f6f68447aba08aeaa97593af3a7d85a114891f upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/remoteproc/ti_k3_r5_remoteproc.c