Re: çå: [PATCH v4 20/28] ARM: owl: Implement CPU enable-method for S500
From: Andreas FÃrber
Date: Sat Jul 01 2017 - 15:57:19 EST
Am 01.07.2017 um 06:42 schrieb åç:
> OWL_CPUx_ADDR is the physical address of CPUx wakeup function.
> OWL_CPUx_FLAG is a valid flag of OWL_CPUx_ADDR.
> After CPUxs are wakeuped by SEV instruction, they will check their own OWL_CPUx_FLAG register. If the register vlaue is 0x55aa, CPUx will jump to OWL_CPUx_ADDR to boot up, otherwize go to sleep by WFE.
> So the pen release staff is not necessary, you can remove these code safely.
Thank you for the quick confirmation!
I have just tested a patch, and it appears to work.
Is owl_v7_invalidate_l1 necessary? mach-sunxi (that Arnd pointed to as
example) uses secondary_startup directly, without custom assembler code.
> BTW: CPU2/3 must exit the power gate state before wakeup, and CPU1 is always power on and has no power gate control.
Yes, the S500 SPS was luckily documented in the manual. The power-gating
for CPU2/3 is already implemented:
For S900 however SPS is sadly not documented... If you know who at
Actions Semi could help there, please also take a look at:
SUSE Linux GmbH, Maxfeldstr. 5, 90409 NÃrnberg, Germany
GF: Felix ImendÃrffer, Jane Smithard, Graham Norton
HRB 21284 (AG NÃrnberg)