[PATCH] OMAP3: run the ASM sleep code from DDR
From: paul@pwsan.com (Paul Walmsley)
Date: 2011-07-13 08:14:57
Also in:
linux-omap
From: paul@pwsan.com (Paul Walmsley)
Date: 2011-07-13 08:14:57
Also in:
linux-omap
On Tue, 12 Jul 2011, Pavel Machek wrote:
On Wed 2011-06-29 18:40:23, jean.pihet at newoldbits.com wrote:quoted
From: Jean Pihet <redacted> Most of the ASM sleep code (in arch/arm/mach-omap2/sleep34xx.S) is copied to internal SRAM at boot and after wake-up from CORE OFF mode. However only a small part of the code really needs to run from internal SRAM. This fix lets most of the ASM idle code run from the DDR in order to minimize the SRAM usage and the overhead in the code copy.So... what do you plan to use sram for? Because I don't think the speedup is worth the complexity...
The SDRAM may not be accessible yet when the chip isn't waking up from off-mode, so SRAM is the only option. The comments & code in the patch surrounding the "wait_sdrc_ok" label refer to this issue - albeit, perhaps telegraphically. - Paul