]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
MIPS: Loongson64: Set timer mode in cpu-probe
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Tue, 23 Jul 2024 09:15:44 +0000 (17:15 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Aug 2024 15:36:08 +0000 (17:36 +0200)
commit8cbcb6d03d68c07c01c15b5dd6a60004cf9e85ea
treee784ed83a9bf910ee1a18d3118cf7e872c929072
parent6c323c3b8089b0affd0249cf9feb6e6595897535
MIPS: Loongson64: Set timer mode in cpu-probe

commit 1cb6ab446424649f03c82334634360c2e3043684 upstream.

Loongson64 C and G processors have EXTIMER feature which
is conflicting with CP0 counter.

Although the processor resets in EXTIMER disabled & INTIMER
enabled mode, which is compatible with MIPS CP0 compare, firmware
may attempt to enable EXTIMER and interfere CP0 compare.

Set timer mode back to MIPS compatible mode to fix booting on
systems with such firmware before we have an actual driver for
EXTIMER.

Cc: stable@vger.kernel.org
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/mips/kernel/cpu-probe.c