From mboxrd@z Thu Jan 1 00:00:00 1970 From: marc.zyngier@arm.com (Marc Zyngier) Date: Tue, 8 May 2018 09:06:26 +0100 Subject: [PATCH v9 06/12] ARM: smp: Add initialization of CNTVOFF In-Reply-To: <20180504190545.5114-7-mylene.josserand@bootlin.com> References: <20180504190545.5114-1-mylene.josserand@bootlin.com> <20180504190545.5114-7-mylene.josserand@bootlin.com> Message-ID: <0a377a75-d99c-b00c-ec96-bf5a7daf721a@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 04/05/18 20:05, Myl?ne Josserand wrote: > The CNTVOFF register from arch timer is uninitialized. > It should be done by the bootloader but it is currently not the case, > even for boot CPU because this SoC is booting in secure mode. > It leads to an random offset value meaning that each CPU will have a > different time, which isn't working very well. > > Add assembly code used for boot CPU and secondary CPU cores to make > sure that the CNTVOFF register is initialized. Because this code can > be used by different platforms, add this assembly file in ARM's common > folder. > > Signed-off-by: Myl?ne Josserand > Reviewed-by: Geert Uytterhoeven > Tested-by: Geert Uytterhoeven Reviewed-by: Marc Zyngier M. -- Jazz is not dead. It just smells funny...