Commit 65fee01
MIPS: Loongson: Fix cpu_probe_loongson() again
Commit 7db5e9e ("MIPS: loongson64: fix FTLB configuration")
move decode_configs() from the beginning of cpu_probe_loongson() to the
end in order to fix FTLB configuration. However, it breaks the CPUCFG
decoding because decode_configs() use "c->options = xxxx" rather than
"c->options |= xxxx", all information get from CPUCFG by decode_cpucfg()
is lost.
This causes error when creating a KVM guest on Loongson-3A4000:
Exception Code: 4 not handled @ PC: 0000000087ad5981, inst: 0xcb7a1898 BadVaddr: 0x0 Status: 0x0
Fix this by moving the c->cputype setting to the beginning and moving
decode_configs() after that.
Fixes: 7db5e9e ("MIPS: loongson64: fix FTLB configuration")
Cc: stable@vger.kernel.org
Cc: Huang Pei <huangpei@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>1 parent e47084e commit 65fee01
1 file changed
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1677 | 1677 | | |
1678 | 1678 | | |
1679 | 1679 | | |
| 1680 | + | |
| 1681 | + | |
1680 | 1682 | | |
| 1683 | + | |
1681 | 1684 | | |
1682 | 1685 | | |
1683 | 1686 | | |
| |||
1687 | 1690 | | |
1688 | 1691 | | |
1689 | 1692 | | |
1690 | | - | |
1691 | 1693 | | |
1692 | 1694 | | |
1693 | 1695 | | |
| |||
1700 | 1702 | | |
1701 | 1703 | | |
1702 | 1704 | | |
1703 | | - | |
1704 | 1705 | | |
1705 | 1706 | | |
1706 | 1707 | | |
1707 | 1708 | | |
1708 | 1709 | | |
1709 | 1710 | | |
1710 | | - | |
1711 | 1711 | | |
1712 | 1712 | | |
1713 | 1713 | | |
| |||
1727 | 1727 | | |
1728 | 1728 | | |
1729 | 1729 | | |
1730 | | - | |
1731 | 1730 | | |
1732 | 1731 | | |
1733 | 1732 | | |
| |||
1737 | 1736 | | |
1738 | 1737 | | |
1739 | 1738 | | |
1740 | | - | |
1741 | | - | |
1742 | 1739 | | |
1743 | 1740 | | |
1744 | 1741 | | |
| |||
0 commit comments