cpuidle: tegra: Fix C7 idling state on Tegra114
authorDmitry Osipenko <digetx@gmail.com>
Tue, 2 Mar 2021 09:54:04 +0000 (12:54 +0300)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 8 Apr 2021 17:54:14 +0000 (19:54 +0200)
commit32c8c34d8132b5fe8497c2538597445a0d65c29d
treefd47ced9badf522aa3d2c750cd36147e000d7841
parente49d033bddf5b565044e2abe4241353959bc9120
cpuidle: tegra: Fix C7 idling state on Tegra114

Trusted Foundation firmware doesn't implement the do_idle call and in
this case suspending should fall back to the common suspend path. In order
to fix this issue we will unconditionally set the NOFLUSH_L2 mode via
firmware call, which is a NO-OP on Tegra30/124, and then proceed to the
C7 idling, like it was done by the older Tegra114 cpuidle driver.

Fixes: 14e086baca50 ("cpuidle: tegra: Squash Tegra114 driver into the common driver")
Cc: stable@vger.kernel.org # 5.7+
Reported-by: Anton Bambura <jenneron@protonmail.com> # TF701 T114
Tested-by: Anton Bambura <jenneron@protonmail.com> # TF701 T114
Tested-by: Matt Merhar <mattmerhar@protonmail.com> # Ouya T30
Tested-by: Peter Geis <pgwipeout@gmail.com> # Ouya T30
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210302095405.28453-1-digetx@gmail.com
drivers/cpuidle/cpuidle-tegra.c