Linux-remoteproc Archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] remoteproc: k3-r5: Introduce suspend to ram support
@ 2024-06-21 15:00 Richard Genoud
  2024-06-21 15:00 ` [PATCH 1/4] remoteproc: k3-r5: Fix IPC-only mode detection Richard Genoud
                   ` (5 more replies)
  0 siblings, 6 replies; 24+ messages in thread
From: Richard Genoud @ 2024-06-21 15:00 UTC (permalink / raw)
  To: Bjorn Andersson, Mathieu Poirier
  Cc: Philipp Zabel, Suman Anna, Thomas Petazzoni, Alexandre Belloni,
	Udit Kumar, Thomas Richard, Gregory CLEMENT, Hari Nagalla,
	Théo Lebrun, linux-remoteproc, linux-kernel, Richard Genoud

This series enables the suspend to ram with R5F remote processors on TI K3
platform.

The 1st patch is actually a fix, independent from the others

The 2nd patch introduces the suspend/resume handlers.
On suspend, the running rprocs will be stopped (or detached) and then
re-loaded in resume.
The logic behind this is:
 - shutdown the cores that Linux started to save power in suspend.
 - detach the cores that were started before Linux.

Then, the 3rd and 4th patches introduce the graceful shutdown of remote
procs. This will give them a chance to release resources and shut down
in a civilized manner.

Without this series, the suspend fails with:

omap-mailbox 31f81000.mailbox: fifo 1 has unexpected unread messages
omap-mailbox 31f81000.mailbox: PM: dpm_run_callback(): platform_pm_suspend returns -16
omap-mailbox 31f81000.mailbox: PM: platform_pm_suspend returned -16 after 16328 usecs
omap-mailbox 31f81000.mailbox: PM: failed to suspend: error -16

Patches 2 and 4 are based on work from Hari Nagalla <hnagalla@ti.com>.

@Hari, please feel free to add your Co-developed-by:/Signed-off-by:

Tested on J7200X SoM
Series is based on v6.10-rc4

Richard Genoud (4):
  remoteproc: k3-r5: Fix IPC-only mode detection
  remoteproc: k3-r5: Introduce PM suspend/resume handlers
  remoteproc: k3-r5: k3_r5_rproc_stop: code reorder
  remoteproc: k3-r5: support for graceful stop of remote cores

 drivers/remoteproc/omap_remoteproc.h     |   9 +-
 drivers/remoteproc/ti_k3_r5_remoteproc.c | 196 +++++++++++++++++++++--
 2 files changed, 188 insertions(+), 17 deletions(-)


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2024-07-08  7:34 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-21 15:00 [PATCH 0/4] remoteproc: k3-r5: Introduce suspend to ram support Richard Genoud
2024-06-21 15:00 ` [PATCH 1/4] remoteproc: k3-r5: Fix IPC-only mode detection Richard Genoud
2024-06-28 19:53   ` Mathieu Poirier
2024-06-28 19:58     ` Mathieu Poirier
2024-07-01  9:13       ` Hari Nagalla
2024-07-01 16:38         ` Mathieu Poirier
2024-06-21 15:00 ` [PATCH 2/4] remoteproc: k3-r5: Introduce PM suspend/resume handlers Richard Genoud
2024-06-28 20:48   ` Mathieu Poirier
2024-07-01  7:30     ` Richard GENOUD
2024-07-01 19:02   ` kernel test robot
2024-06-21 15:00 ` [PATCH 3/4] remoteproc: k3-r5: k3_r5_rproc_stop: code reorder Richard Genoud
2024-06-28 21:18   ` Mathieu Poirier
2024-07-01  8:03     ` Richard GENOUD
2024-07-01 16:35       ` Mathieu Poirier
2024-07-01 16:49         ` Richard GENOUD
2024-06-21 15:00 ` [PATCH 4/4] remoteproc: k3-r5: support for graceful stop of remote cores Richard Genoud
2024-06-28 21:20   ` Mathieu Poirier
2024-07-01 16:38     ` Richard GENOUD
2024-06-28 22:50   ` Andrew Davis
2024-07-01 16:48     ` Richard GENOUD
2024-07-01 21:55   ` kernel test robot
2024-06-28 21:23 ` [PATCH 0/4] remoteproc: k3-r5: Introduce suspend to ram support Mathieu Poirier
2024-07-01  9:59 ` Hari Nagalla
2024-07-08  7:33   ` Richard GENOUD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).