* [PATCH RESEND v2 1/2] cpuidle: tegra: Fix C7 idling state on Tegra114
@ 2021-03-02 9:54 Dmitry Osipenko
2021-03-02 9:54 ` [PATCH RESEND v2 2/2] cpuidle: tegra: Remove do_idle firmware call Dmitry Osipenko
` (2 more replies)
0 siblings, 3 replies; 12+ messages in thread
From: Dmitry Osipenko @ 2021-03-02 9:54 UTC (permalink / raw)
To: Thierry Reding, Jonathan Hunter, Rafael J. Wysocki,
Daniel Lezcano, Anton Bambura, Matt Merhar, Peter Geis
Cc: linux-pm, linux-tegra
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>
---
Changelog:
v2: - No changes. V1 got no attention, hence re-sending.
drivers/cpuidle/cpuidle-tegra.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/cpuidle/cpuidle-tegra.c b/drivers/cpuidle/cpuidle-tegra.c
index 191966dc8d02..29c5e83500d3 100644
--- a/drivers/cpuidle/cpuidle-tegra.c
+++ b/drivers/cpuidle/cpuidle-tegra.c
@@ -135,13 +135,13 @@ static int tegra_cpuidle_c7_enter(void)
{
int err;
- if (tegra_cpuidle_using_firmware()) {
- err = call_firmware_op(prepare_idle, TF_PM_MODE_LP2_NOFLUSH_L2);
- if (err)
- return err;
+ err = call_firmware_op(prepare_idle, TF_PM_MODE_LP2_NOFLUSH_L2);
+ if (err && err != -ENOSYS)
+ return err;
- return call_firmware_op(do_idle, 0);
- }
+ err = call_firmware_op(do_idle, 0);
+ if (err != -ENOSYS)
+ return err;
return cpu_suspend(0, tegra30_pm_secondary_cpu_suspend);
}
--
2.29.2
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH RESEND v2 2/2] cpuidle: tegra: Remove do_idle firmware call
2021-03-02 9:54 [PATCH RESEND v2 1/2] cpuidle: tegra: Fix C7 idling state on Tegra114 Dmitry Osipenko
@ 2021-03-02 9:54 ` Dmitry Osipenko
2021-03-02 12:45 ` Daniel Lezcano
2021-03-04 14:22 ` Daniel Lezcano
2021-03-02 12:36 ` [PATCH RESEND v2 1/2] cpuidle: tegra: Fix C7 idling state on Tegra114 Daniel Lezcano
2021-03-04 14:21 ` Daniel Lezcano
2 siblings, 2 replies; 12+ messages in thread
From: Dmitry Osipenko @ 2021-03-02 9:54 UTC (permalink / raw)
To: Thierry Reding, Jonathan Hunter, Rafael J. Wysocki,
Daniel Lezcano, Anton Bambura, Matt Merhar, Peter Geis
Cc: linux-pm, linux-tegra
The do_idle firmware call is unused by all Tegra SoCs, hence remove it in
order to keep driver's code clean.
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>
---
Changelog:
v2: - No changes. V1 got no attention, hence re-sending.
drivers/cpuidle/cpuidle-tegra.c | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/drivers/cpuidle/cpuidle-tegra.c b/drivers/cpuidle/cpuidle-tegra.c
index 29c5e83500d3..508bd9f23792 100644
--- a/drivers/cpuidle/cpuidle-tegra.c
+++ b/drivers/cpuidle/cpuidle-tegra.c
@@ -48,11 +48,6 @@ enum tegra_state {
static atomic_t tegra_idle_barrier;
static atomic_t tegra_abort_flag;
-static inline bool tegra_cpuidle_using_firmware(void)
-{
- return firmware_ops->prepare_idle && firmware_ops->do_idle;
-}
-
static void tegra_cpuidle_report_cpus_state(void)
{
unsigned long cpu, lcpu, csr;
@@ -139,10 +134,6 @@ static int tegra_cpuidle_c7_enter(void)
if (err && err != -ENOSYS)
return err;
- err = call_firmware_op(do_idle, 0);
- if (err != -ENOSYS)
- return err;
-
return cpu_suspend(0, tegra30_pm_secondary_cpu_suspend);
}
@@ -356,9 +347,7 @@ static int tegra_cpuidle_probe(struct platform_device *pdev)
* is disabled.
*/
if (!IS_ENABLED(CONFIG_PM_SLEEP)) {
- if (!tegra_cpuidle_using_firmware())
- tegra_cpuidle_disable_state(TEGRA_C7);
-
+ tegra_cpuidle_disable_state(TEGRA_C7);
tegra_cpuidle_disable_state(TEGRA_CC6);
}
--
2.29.2
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH RESEND v2 1/2] cpuidle: tegra: Fix C7 idling state on Tegra114
2021-03-02 9:54 [PATCH RESEND v2 1/2] cpuidle: tegra: Fix C7 idling state on Tegra114 Dmitry Osipenko
2021-03-02 9:54 ` [PATCH RESEND v2 2/2] cpuidle: tegra: Remove do_idle firmware call Dmitry Osipenko
@ 2021-03-02 12:36 ` Daniel Lezcano
2021-03-04 13:55 ` Rafael J. Wysocki
2021-03-04 14:21 ` Daniel Lezcano
2 siblings, 1 reply; 12+ messages in thread
From: Daniel Lezcano @ 2021-03-02 12:36 UTC (permalink / raw)
To: Dmitry Osipenko, Thierry Reding, Jonathan Hunter,
Rafael J. Wysocki, Anton Bambura, Matt Merhar, Peter Geis
Cc: linux-pm, linux-tegra
On 02/03/2021 10:54, Dmitry Osipenko wrote:
> 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>
> ---
>
> Changelog:
>
> v2: - No changes. V1 got no attention, hence re-sending.
>
> drivers/cpuidle/cpuidle-tegra.c | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/cpuidle/cpuidle-tegra.c b/drivers/cpuidle/cpuidle-tegra.c
> index 191966dc8d02..29c5e83500d3 100644
> --- a/drivers/cpuidle/cpuidle-tegra.c
> +++ b/drivers/cpuidle/cpuidle-tegra.c
> @@ -135,13 +135,13 @@ static int tegra_cpuidle_c7_enter(void)
> {
> int err;
>
> - if (tegra_cpuidle_using_firmware()) {
> - err = call_firmware_op(prepare_idle, TF_PM_MODE_LP2_NOFLUSH_L2);
> - if (err)
> - return err;
> + err = call_firmware_op(prepare_idle, TF_PM_MODE_LP2_NOFLUSH_L2);
> + if (err && err != -ENOSYS)
> + return err;
>
> - return call_firmware_op(do_idle, 0);
> - }
> + err = call_firmware_op(do_idle, 0);
> + if (err != -ENOSYS)
> + return err;
>
> return cpu_suspend(0, tegra30_pm_secondary_cpu_suspend);
> }
>
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH RESEND v2 2/2] cpuidle: tegra: Remove do_idle firmware call
2021-03-02 9:54 ` [PATCH RESEND v2 2/2] cpuidle: tegra: Remove do_idle firmware call Dmitry Osipenko
@ 2021-03-02 12:45 ` Daniel Lezcano
2021-03-02 12:51 ` Dmitry Osipenko
2021-03-04 14:22 ` Daniel Lezcano
1 sibling, 1 reply; 12+ messages in thread
From: Daniel Lezcano @ 2021-03-02 12:45 UTC (permalink / raw)
To: Dmitry Osipenko, Thierry Reding, Jonathan Hunter,
Rafael J. Wysocki, Anton Bambura, Matt Merhar, Peter Geis
Cc: linux-pm, linux-tegra
On 02/03/2021 10:54, Dmitry Osipenko wrote:
> The do_idle firmware call is unused by all Tegra SoCs, hence remove it in
> order to keep driver's code clean.
>
> 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>
> ---
>
> Changelog:
>
> v2: - No changes. V1 got no attention, hence re-sending.
>
> drivers/cpuidle/cpuidle-tegra.c | 13 +------------
> 1 file changed, 1 insertion(+), 12 deletions(-)
>
> diff --git a/drivers/cpuidle/cpuidle-tegra.c b/drivers/cpuidle/cpuidle-tegra.c
> index 29c5e83500d3..508bd9f23792 100644
> --- a/drivers/cpuidle/cpuidle-tegra.c
> +++ b/drivers/cpuidle/cpuidle-tegra.c
> @@ -48,11 +48,6 @@ enum tegra_state {
> static atomic_t tegra_idle_barrier;
> static atomic_t tegra_abort_flag;
>
> -static inline bool tegra_cpuidle_using_firmware(void)
> -{
> - return firmware_ops->prepare_idle && firmware_ops->do_idle;
> -}
> -
> static void tegra_cpuidle_report_cpus_state(void)
> {
> unsigned long cpu, lcpu, csr;
> @@ -139,10 +134,6 @@ static int tegra_cpuidle_c7_enter(void)
> if (err && err != -ENOSYS)
> return err;
>
> - err = call_firmware_op(do_idle, 0);
> - if (err != -ENOSYS)
> - return err;
> -
> return cpu_suspend(0, tegra30_pm_secondary_cpu_suspend);
> }
>
> @@ -356,9 +347,7 @@ static int tegra_cpuidle_probe(struct platform_device *pdev)
> * is disabled.
> */
> if (!IS_ENABLED(CONFIG_PM_SLEEP)) {
> - if (!tegra_cpuidle_using_firmware())
> - tegra_cpuidle_disable_state(TEGRA_C7);
So firmware_ops->do_idle is always NULL, thus
tegra_cpuidle_using_firmware() is always false and
tegra_cpuidle_disable_state() always called, right ?
> + tegra_cpuidle_disable_state(TEGRA_C7);
> tegra_cpuidle_disable_state(TEGRA_CC6);
> }
>
>
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH RESEND v2 2/2] cpuidle: tegra: Remove do_idle firmware call
2021-03-02 12:45 ` Daniel Lezcano
@ 2021-03-02 12:51 ` Dmitry Osipenko
2021-03-02 12:57 ` Daniel Lezcano
0 siblings, 1 reply; 12+ messages in thread
From: Dmitry Osipenko @ 2021-03-02 12:51 UTC (permalink / raw)
To: Daniel Lezcano, Thierry Reding, Jonathan Hunter,
Rafael J. Wysocki, Anton Bambura, Matt Merhar, Peter Geis
Cc: linux-pm, linux-tegra
02.03.2021 15:45, Daniel Lezcano пишет:
> On 02/03/2021 10:54, Dmitry Osipenko wrote:
>> The do_idle firmware call is unused by all Tegra SoCs, hence remove it in
>> order to keep driver's code clean.
>>
>> 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>
>> ---
>>
>> Changelog:
>>
>> v2: - No changes. V1 got no attention, hence re-sending.
>>
>> drivers/cpuidle/cpuidle-tegra.c | 13 +------------
>> 1 file changed, 1 insertion(+), 12 deletions(-)
>>
>> diff --git a/drivers/cpuidle/cpuidle-tegra.c b/drivers/cpuidle/cpuidle-tegra.c
>> index 29c5e83500d3..508bd9f23792 100644
>> --- a/drivers/cpuidle/cpuidle-tegra.c
>> +++ b/drivers/cpuidle/cpuidle-tegra.c
>> @@ -48,11 +48,6 @@ enum tegra_state {
>> static atomic_t tegra_idle_barrier;
>> static atomic_t tegra_abort_flag;
>>
>> -static inline bool tegra_cpuidle_using_firmware(void)
>> -{
>> - return firmware_ops->prepare_idle && firmware_ops->do_idle;
>> -}
>> -
>> static void tegra_cpuidle_report_cpus_state(void)
>> {
>> unsigned long cpu, lcpu, csr;
>> @@ -139,10 +134,6 @@ static int tegra_cpuidle_c7_enter(void)
>> if (err && err != -ENOSYS)
>> return err;
>>
>> - err = call_firmware_op(do_idle, 0);
>> - if (err != -ENOSYS)
>> - return err;
>> -
>> return cpu_suspend(0, tegra30_pm_secondary_cpu_suspend);
>> }
>>
>> @@ -356,9 +347,7 @@ static int tegra_cpuidle_probe(struct platform_device *pdev)
>> * is disabled.
>> */
>> if (!IS_ENABLED(CONFIG_PM_SLEEP)) {
>> - if (!tegra_cpuidle_using_firmware())
>> - tegra_cpuidle_disable_state(TEGRA_C7);
>
> So firmware_ops->do_idle is always NULL, thus
> tegra_cpuidle_using_firmware() is always false and
> tegra_cpuidle_disable_state() always called, right ?
Yes, the tegra_cpuidle_disable_state(TEGRA_C7) is always
called if CONFIG_PM_SLEEP is disabled in kernel config.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH RESEND v2 2/2] cpuidle: tegra: Remove do_idle firmware call
2021-03-02 12:51 ` Dmitry Osipenko
@ 2021-03-02 12:57 ` Daniel Lezcano
0 siblings, 0 replies; 12+ messages in thread
From: Daniel Lezcano @ 2021-03-02 12:57 UTC (permalink / raw)
To: Dmitry Osipenko, Thierry Reding, Jonathan Hunter,
Rafael J. Wysocki, Anton Bambura, Matt Merhar, Peter Geis
Cc: linux-pm, linux-tegra
On 02/03/2021 13:51, Dmitry Osipenko wrote:
> 02.03.2021 15:45, Daniel Lezcano пишет:
>> On 02/03/2021 10:54, Dmitry Osipenko wrote:
>>> The do_idle firmware call is unused by all Tegra SoCs, hence remove it in
>>> order to keep driver's code clean.
>>>
>>> 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>
>>> ---
[ ... ]
>>> if (!IS_ENABLED(CONFIG_PM_SLEEP)) {
>>> - if (!tegra_cpuidle_using_firmware())
>>> - tegra_cpuidle_disable_state(TEGRA_C7);
>>
>> So firmware_ops->do_idle is always NULL, thus
>> tegra_cpuidle_using_firmware() is always false and
>> tegra_cpuidle_disable_state() always called, right ?
>
> Yes, the tegra_cpuidle_disable_state(TEGRA_C7) is always
> called if CONFIG_PM_SLEEP is disabled in kernel config.
Ok, thanks.
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH RESEND v2 1/2] cpuidle: tegra: Fix C7 idling state on Tegra114
2021-03-02 12:36 ` [PATCH RESEND v2 1/2] cpuidle: tegra: Fix C7 idling state on Tegra114 Daniel Lezcano
@ 2021-03-04 13:55 ` Rafael J. Wysocki
2021-03-04 14:05 ` Daniel Lezcano
0 siblings, 1 reply; 12+ messages in thread
From: Rafael J. Wysocki @ 2021-03-04 13:55 UTC (permalink / raw)
To: Daniel Lezcano, Dmitry Osipenko
Cc: Thierry Reding, Jonathan Hunter, Rafael J. Wysocki,
Anton Bambura, Matt Merhar, Peter Geis, Linux PM, linux-tegra
On Thu, Mar 4, 2021 at 1:30 AM Daniel Lezcano <daniel.lezcano@linaro.org> wrote:
>
> On 02/03/2021 10:54, Dmitry Osipenko wrote:
> > 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>
So do I gather correctly that I am expected to pick up this series?
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH RESEND v2 1/2] cpuidle: tegra: Fix C7 idling state on Tegra114
2021-03-04 13:55 ` Rafael J. Wysocki
@ 2021-03-04 14:05 ` Daniel Lezcano
2021-03-04 14:08 ` Rafael J. Wysocki
0 siblings, 1 reply; 12+ messages in thread
From: Daniel Lezcano @ 2021-03-04 14:05 UTC (permalink / raw)
To: Rafael J. Wysocki, Dmitry Osipenko
Cc: Thierry Reding, Jonathan Hunter, Rafael J. Wysocki,
Anton Bambura, Matt Merhar, Peter Geis, Linux PM, linux-tegra
On 04/03/2021 14:55, Rafael J. Wysocki wrote:
> On Thu, Mar 4, 2021 at 1:30 AM Daniel Lezcano <daniel.lezcano@linaro.org> wrote:
>>
>> On 02/03/2021 10:54, Dmitry Osipenko wrote:
>>> 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>
>
> So do I gather correctly that I am expected to pick up this series?
I had picked the cpuidle related patches in the past. As the traffic
became low, I assumed you directly pick them.
But I can take care of them and send a PR at -rc5 like before,
especially that we have new driver coming. It is not a problem.
Let me know what is you preferred way.
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH RESEND v2 1/2] cpuidle: tegra: Fix C7 idling state on Tegra114
2021-03-04 14:05 ` Daniel Lezcano
@ 2021-03-04 14:08 ` Rafael J. Wysocki
2021-03-04 14:09 ` Daniel Lezcano
0 siblings, 1 reply; 12+ messages in thread
From: Rafael J. Wysocki @ 2021-03-04 14:08 UTC (permalink / raw)
To: Daniel Lezcano
Cc: Rafael J. Wysocki, Dmitry Osipenko, Thierry Reding,
Jonathan Hunter, Rafael J. Wysocki, Anton Bambura, Matt Merhar,
Peter Geis, Linux PM, linux-tegra
On Thu, Mar 4, 2021 at 3:05 PM Daniel Lezcano <daniel.lezcano@linaro.org> wrote:
>
> On 04/03/2021 14:55, Rafael J. Wysocki wrote:
> > On Thu, Mar 4, 2021 at 1:30 AM Daniel Lezcano <daniel.lezcano@linaro.org> wrote:
> >>
> >> On 02/03/2021 10:54, Dmitry Osipenko wrote:
> >>> 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>
> >
> > So do I gather correctly that I am expected to pick up this series?
>
> I had picked the cpuidle related patches in the past. As the traffic
> became low, I assumed you directly pick them.
>
> But I can take care of them and send a PR at -rc5 like before,
> especially that we have new driver coming. It is not a problem.
>
> Let me know what is you preferred way.
If you can take care of ARM-specific cpuidle changes, that'll help.
Thanks!
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH RESEND v2 1/2] cpuidle: tegra: Fix C7 idling state on Tegra114
2021-03-04 14:08 ` Rafael J. Wysocki
@ 2021-03-04 14:09 ` Daniel Lezcano
0 siblings, 0 replies; 12+ messages in thread
From: Daniel Lezcano @ 2021-03-04 14:09 UTC (permalink / raw)
To: Rafael J. Wysocki
Cc: Dmitry Osipenko, Thierry Reding, Jonathan Hunter,
Rafael J. Wysocki, Anton Bambura, Matt Merhar, Peter Geis,
Linux PM, linux-tegra
On 04/03/2021 15:08, Rafael J. Wysocki wrote:
> On Thu, Mar 4, 2021 at 3:05 PM Daniel Lezcano <daniel.lezcano@linaro.org> wrote:
>>
>> On 04/03/2021 14:55, Rafael J. Wysocki wrote:
>>> On Thu, Mar 4, 2021 at 1:30 AM Daniel Lezcano <daniel.lezcano@linaro.org> wrote:
>>>>
>>>> On 02/03/2021 10:54, Dmitry Osipenko wrote:
>>>>> 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>
>>>
>>> So do I gather correctly that I am expected to pick up this series?
>>
>> I had picked the cpuidle related patches in the past. As the traffic
>> became low, I assumed you directly pick them.
>>
>> But I can take care of them and send a PR at -rc5 like before,
>> especially that we have new driver coming. It is not a problem.
>>
>> Let me know what is you preferred way.
>
> If you can take care of ARM-specific cpuidle changes, that'll help.
No problem, thanks
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH RESEND v2 1/2] cpuidle: tegra: Fix C7 idling state on Tegra114
2021-03-02 9:54 [PATCH RESEND v2 1/2] cpuidle: tegra: Fix C7 idling state on Tegra114 Dmitry Osipenko
2021-03-02 9:54 ` [PATCH RESEND v2 2/2] cpuidle: tegra: Remove do_idle firmware call Dmitry Osipenko
2021-03-02 12:36 ` [PATCH RESEND v2 1/2] cpuidle: tegra: Fix C7 idling state on Tegra114 Daniel Lezcano
@ 2021-03-04 14:21 ` Daniel Lezcano
2 siblings, 0 replies; 12+ messages in thread
From: Daniel Lezcano @ 2021-03-04 14:21 UTC (permalink / raw)
To: Dmitry Osipenko, Thierry Reding, Jonathan Hunter,
Rafael J. Wysocki, Anton Bambura, Matt Merhar, Peter Geis
Cc: linux-pm, linux-tegra
On 02/03/2021 10:54, Dmitry Osipenko wrote:
> 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>
Applied, thanks
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH RESEND v2 2/2] cpuidle: tegra: Remove do_idle firmware call
2021-03-02 9:54 ` [PATCH RESEND v2 2/2] cpuidle: tegra: Remove do_idle firmware call Dmitry Osipenko
2021-03-02 12:45 ` Daniel Lezcano
@ 2021-03-04 14:22 ` Daniel Lezcano
1 sibling, 0 replies; 12+ messages in thread
From: Daniel Lezcano @ 2021-03-04 14:22 UTC (permalink / raw)
To: Dmitry Osipenko, Thierry Reding, Jonathan Hunter,
Rafael J. Wysocki, Anton Bambura, Matt Merhar, Peter Geis
Cc: linux-pm, linux-tegra
On 02/03/2021 10:54, Dmitry Osipenko wrote:
> The do_idle firmware call is unused by all Tegra SoCs, hence remove it in
> order to keep driver's code clean.
>
> 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>
> ---
Applied, thanks
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2021-03-04 14:23 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-02 9:54 [PATCH RESEND v2 1/2] cpuidle: tegra: Fix C7 idling state on Tegra114 Dmitry Osipenko
2021-03-02 9:54 ` [PATCH RESEND v2 2/2] cpuidle: tegra: Remove do_idle firmware call Dmitry Osipenko
2021-03-02 12:45 ` Daniel Lezcano
2021-03-02 12:51 ` Dmitry Osipenko
2021-03-02 12:57 ` Daniel Lezcano
2021-03-04 14:22 ` Daniel Lezcano
2021-03-02 12:36 ` [PATCH RESEND v2 1/2] cpuidle: tegra: Fix C7 idling state on Tegra114 Daniel Lezcano
2021-03-04 13:55 ` Rafael J. Wysocki
2021-03-04 14:05 ` Daniel Lezcano
2021-03-04 14:08 ` Rafael J. Wysocki
2021-03-04 14:09 ` Daniel Lezcano
2021-03-04 14:21 ` Daniel Lezcano
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.