]> git.ipfire.org Git - thirdparty/linux.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)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 8 Aug 2024 16:17:43 +0000 (18:17 +0200)
commit1cb6ab446424649f03c82334634360c2e3043684
tree59f78261b711240d7405e60995fcd479bcf15773
parent8400291e289ee6b2bf9779ff1c83a291501f017b
MIPS: Loongson64: Set timer mode in cpu-probe

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>
arch/mips/kernel/cpu-probe.c