Skip to content

Fix standby sequence and add Debugss LPSC#72

Open
ti-scaria wants to merge 3 commits intoTexasInstruments:ti-masterfrom
ti-scaria:stdby_fix
Open

Fix standby sequence and add Debugss LPSC#72
ti-scaria wants to merge 3 commits intoTexasInstruments:ti-masterfrom
ti-scaria:stdby_fix

Conversation

@ti-scaria
Copy link

Fixing the incorrect indexing of the lpsc_value array introduced in the standby flow.
Adding DEUBGSS LPSC in the list of LPSCs to be disabled in the low latency standby sequence to meet the
requirements provided. Refactoring the code for allowing the above change to work.

Due to an earlier implementation the lpsc_value array was
indexed using the lpsc_id. Later, the indexing was changed
to the loop variable which was not reflected in
the restore and standby sequence.

Also updated the magic numbers used in LPSC state change
with defined macros.

Signed-off-by: Scaria Kochidanadu <s-kochidanadu@ti.com>
This commit adds the support to disable the DEBUGSS LPSC
in the low latency standby sequence. The PLL associated
with DEBUGSS should be disabled after the LPSC is disabled,
thus need to reorder the LPSC and PLL changes in the standby
sequence, and in accordance reordering the restore sequence.

Signed-off-by: Scaria Kochidanadu <s-kochidanadu@ti.com>
@ti-scaria
Copy link
Author

Using the kernel : https://github.com/ti-scaria/ti-linux-kernel/tree/s2idle_standby.
This has the idle states required for low latency standby.
Also the changes required in cpuidle-psci.c to allow standby and s2idle to work together.

Earlier it was decided to not bring DDR out of auto
self refresh in the resume sequence of low latency
standby mode. However, this causes a bug in the Deepsleep
LPM in the turning off of the DDR LPSCs. Thus restoring
the original state of DDR in the resume sequence.

Signed-off-by: Scaria Kochidanadu <s-kochidanadu@ti.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant