Thread (52 messages) 52 messages, 2 authors, 2020-02-24

Re: [PATCH v9 05/17] ARM: tegra: Propagate error from tegra_idle_lp2_last()

flat view

From: Dmitry Osipenko <digetx@gmail.com>
Date: 2020-02-21 17:21:47
Also in: linux-tegra, lkml

21.02.2020 18:16, Daniel Lezcano пишет:
On Thu, Feb 13, 2020 at 02:51:22AM +0300, Dmitry Osipenko wrote:
quoted
Technically cpu_suspend() may fail and it's never good to lose information
about failure. For example things like cpuidle core could correctly sample
idling time in the case of failure.

Acked-by: Peter De Schrijver <redacted>
Tested-by: Peter Geis <redacted>
Tested-by: Jasper Korten <redacted>
Tested-by: David Heidelberg <david@ixit.cz>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
---
[ ... ]
quoted
 	cpu_cluster_pm_enter();
 	suspend_cpu_complex();
 
-	cpu_suspend(PHYS_OFFSET - PAGE_OFFSET, &tegra_sleep_cpu);
+	err = cpu_suspend(PHYS_OFFSET - PAGE_OFFSET, &tegra_sleep_cpu);
 
 	/*
 	 * Resume L2 cache if it wasn't re-enabled early during resume,
@@ -208,6 +210,8 @@ void tegra_idle_lp2_last(void)
 
 	restore_cpu_complex();
If the cpu_suspend fails, does restore_cpu_complex() need to be called ?
Yes, because suspend_cpu_complex() didn't fail. I don't see any reason
why restore_cpu_complex() shouldn't be called, please clarify yours thought.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help