]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - arch/arm/mach-omap2/pm34xx.c
OMAP3: PM: save secure RAM only during init
authorTero Kristo <tero.kristo@nokia.com>
Fri, 12 Dec 2008 09:20:05 +0000 (11:20 +0200)
committerKevin Hilman <khilman@deeprootsystems.com>
Wed, 11 Nov 2009 22:42:25 +0000 (14:42 -0800)
commit9d97140bd0c5da55f174a81dafd2bbef135f5748
treec93788037876eeee65b6da93eadb5e7286a4acf8
parent27d59a4a2def42307349079f2e3538d96934c379
OMAP3: PM: save secure RAM only during init

The function omap3_save_secure_ram() is now called only once during
the initialization of the device and consequent sleep cycles will
re-use the same saved contents for secure RAM. Users who need secure
services should do secure RAM saving before entering off-mode, if a
secure service has been accessed after last save.

There are both latency and reliability issues with saving secure RAM
context in the idle path. The context save uses a hardware resource
which takes an order of hundreds of milliseconds to initialize after a
wake up from off-mode, and also there is no way of checking whether it
is ready from kernel side or not. It just crashes if you use it too
quickly

Additional fix to ensure scratchpad save is done after secure
RAM by Roger Quadros.

Signed-off-by: Tero Kristo <tero.kristo@nokia.com>
Signed-off-by: Roger Quadros <ext-roger.quadros@nokia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-omap2/pm34xx.c