forked from Minki/linux
02e75d6488
Prior to this change, {save,restore}_cpu_arch_register() collaborated to maintain the value of the CPU diagnostic register across power cycles. This was required to maintain any CPU errata workaround enable bits in that register. However, now that the Tegra reset vector code always enables all required workarounds, there is no need to save and restore the diagnostic register; it is always explicitly programmed in the required manner. Hence, remove the save/restore logic. This has the advantage that the kernel always directly controls the value of this register every boot, rather than relying on a bootloader or other kernel code having previously written the correct value into it. This makes CPU0 (which was previously saved/restored) and CPUn (which should have been set up by the reset vector) be controlled in exactly the same way, which is easier to debug/find/... In particular, when converting Tegra to a multi-platform kernel, the CPU0 diagnostic register value initially comes from the bootloader. Most Tegra bootloaders don't yet enable all required CPU bug workarounds. The previous commit updates the kernel to do so on any CPU power cycle. However, the save/restore code ends up over-writing the value with the old bootloader-driven value instead of the now more-likely-to-be-correct kernel value! Even irrespective of multi-platform conversion, this change limits the kernel's exposure to any WARs the bootloader didn't enable for CPU0: on the very first LP2 transition (CPU power-saving which power-cycles the CPU), the correct value will be enabled. Signed-off-by: Stephen Warren <swarren@nvidia.com> |
||
---|---|---|
.. | ||
include/mach | ||
apbio.c | ||
apbio.h | ||
board-dt-tegra20.c | ||
board-dt-tegra30.c | ||
board-dt-tegra114.c | ||
board-harmony-pcie.c | ||
board-paz00.c | ||
board-paz00.h | ||
board.h | ||
common.c | ||
common.h | ||
cpu-tegra.c | ||
cpuidle-tegra20.c | ||
cpuidle-tegra30.c | ||
cpuidle-tegra114.c | ||
cpuidle.c | ||
cpuidle.h | ||
flowctrl.c | ||
flowctrl.h | ||
fuse.c | ||
fuse.h | ||
gpio-names.h | ||
headsmp.S | ||
hotplug.c | ||
io.c | ||
iomap.h | ||
irammap.h | ||
irq.c | ||
irq.h | ||
Kconfig | ||
Makefile | ||
Makefile.boot | ||
pcie.c | ||
platsmp.c | ||
pm.c | ||
pm.h | ||
pmc.c | ||
pmc.h | ||
powergate.c | ||
reset-handler.S | ||
reset.c | ||
reset.h | ||
sleep-tegra20.S | ||
sleep-tegra30.S | ||
sleep.h | ||
sleep.S | ||
tegra2_emc.c | ||
tegra2_emc.h | ||
tegra20_speedo.c | ||
tegra30_speedo.c |