linux-brain/arch/mips/ralink
Stefan Roese b82eaa2815 MIPS: ralink: Select CONFIG_CPU_MIPSR2_IRQ_VI on MT7620/8
[ Upstream commit 0b15394475 ]

Testing has shown, that when using mainline U-Boot on MT7688 based
boards, the system may hang or crash while mounting the root-fs. The
main issue here is that mainline U-Boot configures EBase to a value
near the end of system memory. And with CONFIG_CPU_MIPSR2_IRQ_VI
disabled, trap_init() will not allocate a new area to place the
exception handler. The original value will be used and the handler
will be copied to this location, which might already be used by some
userspace application.

The MT7688 supports VI - its config3 register is 0x00002420, so VInt
(Bit 5) is set. But without setting CONFIG_CPU_MIPSR2_IRQ_VI this
bit will not be evaluated to result in "cpu_has_vi" being set. This
patch now selects CONFIG_CPU_MIPSR2_IRQ_VI on MT7620/8 which results
trap_init() to allocate some memory for the exception handler.

Please note that this issue was not seen with the Mediatek U-Boot
version, as it does not touch EBase (stays at default of 0x8000.0000).
This is strictly also not correct as the kernel (_text) resides
here.

Signed-off-by: Stefan Roese <sr@denx.de>
[paul.burton@mips.com: s/beeing/being/]
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: John Crispin <blogic@openwrt.org>
Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-02-12 19:44:58 +01:00
..
bootrom.c MIPS: Change my email address 2016-05-13 14:02:18 +02:00
cevt-rt3352.c clocksources: Switch back to the clksrc table 2016-06-28 10:19:35 +02:00
clk.c MIPS: Change my email address 2016-05-13 14:02:18 +02:00
common.h MIPS: Change my email address 2016-05-13 14:02:18 +02:00
early_printk.c MIPS: ralink: Add tty detection 2015-11-11 08:38:03 +01:00
ill_acc.c MIPS: Change my email address 2016-05-13 14:02:18 +02:00
irq-gic.c MIPS: Change my email address 2016-05-13 14:02:18 +02:00
irq.c MIPS: Change my email address 2016-05-13 14:02:18 +02:00
Kconfig MIPS: ralink: Select CONFIG_CPU_MIPSR2_IRQ_VI on MT7620/8 2019-02-12 19:44:58 +01:00
Makefile MIPS: Change my email address 2016-05-13 14:02:18 +02:00
mt7620.c MIPS: ralink: Fix mt7620 nd_sd pinmux 2018-12-08 13:05:06 +01:00
mt7621.c MIPS: Change my email address 2016-05-13 14:02:18 +02:00
of.c MIPS: Change my email address 2016-05-13 14:02:18 +02:00
Platform MIPS: ralink: add MT7621 support 2016-01-20 00:39:20 +01:00
prom.c MIPS: ralink: Cosmetic change to prom_init(). 2017-03-18 19:14:28 +08:00
reset.c MIPS: ralink: Remove ralink_halt() 2018-03-28 18:39:18 +02:00
rt288x.c MIPS: ralink: Remove unused rt*_wdt_reset functions 2017-03-18 19:14:28 +08:00
rt305x.c MIPS: ralink: Remove unused rt*_wdt_reset functions 2017-03-18 19:14:28 +08:00
rt3883.c MIPS: ralink: Fix incorrect assignment on ralink_soc 2017-10-08 10:26:03 +02:00
timer-gic.c MIPS: Change my email address 2016-05-13 14:02:18 +02:00
timer.c MIPS: ralink: Remove unused timer functions 2017-03-18 19:14:28 +08:00