[PATCH v2] ARM: cache-l2x0: add resume entry for l2 in secure mode

Barry Song 21cnbao at gmail.com
Thu Sep 29 05:44:38 EDT 2011


2011/9/29 Shawn Guo <shawn.guo at freescale.com>:
> On Sun, Sep 25, 2011 at 08:26:09PM -0700, Barry Song wrote:
>> we save the l2x0 registers at the first initialization, and platform codes
>> can get them to restore l2x0 status after wakeup.
>>
>> Cc: Shawn Guo <shawn.guo at linaro.org>
>> Cc: Lorenzo Pieralisi <lorenzo.pieralisi at arm.com>
>> Signed-off-by: Barry Song <Baohua.Song at csr.com>
>> ---
>>  -v2:
>>  define the structure l2x0_regs to hold all saved registers;
>>  make saved copy of registers non-static so that platform codes can access them;
>>  add asm_offset for l2x0 saved regs(l2x0_regs struct) so that asm codes can use
>>
>
> I'm trying to migrate imx6q to this infrastructure, but seeing some
> facts that might stop me from the effort.  Please help me understand
> these facts are correct.
>
> It seems to me that the only benefit that imx6q gains from the
> infrastructure is the register saving, and I fail to see any benefit
> on the restoring.
>
>  * I still have to save physical base of l2x0 for register restoring.
>  * I do not have the physical address of l2x0_saved_regs, and I have
>   to manage to get it somehow.

well. the phyical address should be added so that mmu-off asm codes can get it.

>
> --
> Regards,
> Shawn

-barry



More information about the linux-arm-kernel mailing list