MIPS: loongson64: fix FTLB configuration
authorHuang Pei <huangpei@loongson.cn>
Thu, 25 Nov 2021 10:59:49 +0000 (18:59 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Dec 2021 08:19:07 +0000 (09:19 +0100)
commita6a5d853f1e6b731d5c4709001f71b4a35c31f1b
treee821fa93ae7ff6951305a7f12b292f4f2a8b0154
parent5e823dbee23cc06712d6d39dc7bb38711f407ffc
MIPS: loongson64: fix FTLB configuration

[ Upstream commit 7db5e9e9e5e6c10d7d26f8df7f8fd8841cb15ee7 ]

It turns out that 'decode_configs' -> 'set_ftlb_enable' is called under
c->cputype unset, which leaves FTLB disabled on BOTH 3A2000 and 3A3000

Fix it by calling "decode_configs" after c->cputype is initialized

Fixes: da1bd29742b1 ("MIPS: Loongson64: Probe CPU features via CPUCFG")
Signed-off-by: Huang Pei <huangpei@loongson.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/mips/kernel/cpu-probe.c