Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3850252c authored by Aparna Das's avatar Aparna Das
Browse files

jtagv8: do not lock os double lock in debug save path



Locking the OS Double Lock in Jtag Debug save sequence and
also subsequently unlocking it in restore sequence cause
issues when A57 cores are power collapsed. Provide a temporary
fix by not locking this register during Jtag Debug save path.

Change-Id: I870e593024bd2cabd4eee2bee1f1869f439a134a
Signed-off-by: default avatarAparna Das <adas@codeaurora.org>
parent 5bd130f8
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -396,9 +396,6 @@ static inline void dbg_save_state(int cpu)
		dbg.state[i++] =  (uint32_t)dbg_readl(OSDTRRX_EL1);
		dbg.state[i++] =  (uint32_t)dbg_readl(OSDTRTX_EL1);

		/* Set the OS double lock */
		isb();
		dbg_write(0x1, OSDLR_EL1);
		isb();
		break;
	default:
@@ -418,6 +415,7 @@ static inline void dbg_restore_state(int cpu)
		/* Set OS lock. Lock will already be set after power collapse
		 * but this write is included to ensure it is set.
		 */
		isb();
		dbg_write(0x1, OSLAR_EL1);
		isb();