Revision aa9887608e77b835d51f05a54940380391cd4e21 authored by Anup Patel on 27 September 2020, 05:39:16 UTC, committed by Palmer Dabbelt on 30 September 2020, 18:05:14 UTC
The NoMMU kernel is broken for QEMU virt machine from Linux-5.9-rc6
because clint_time_val is used even before CLINT driver is probed
at following places:
1. rand_initialize() calls get_cycles() which in-turn uses
   clint_time_val
2. boot_init_stack_canary() calls get_cycles() which in-turn
   uses clint_time_val

The issue#1 (above) is fixed by providing custom random_get_entropy()
for RISC-V NoMMU kernel. For issue#2 (above), we remove dependency of
boot_init_stack_canary() on get_cycles() and this is aligned with the
boot_init_stack_canary() implementations of ARM, ARM64 and MIPS kernel.

Fixes: d5be89a8d118 ("RISC-V: Resurrect the MMIO timer implementation for M-mode systems")
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Tested-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
1 parent c14decf
History
File Mode Size
api.rst -rw-r--r-- 11.9 KB
arkfb.rst -rw-r--r-- 2.0 KB
aty128fb.rst -rw-r--r-- 2.2 KB
cirrusfb.rst -rw-r--r-- 2.0 KB
cmap_xfbdev.rst -rw-r--r-- 1.9 KB
deferred_io.rst -rw-r--r-- 3.0 KB
efifb.rst -rw-r--r-- 2.2 KB
ep93xx-fb.rst -rw-r--r-- 4.5 KB
fbcon.rst -rw-r--r-- 12.3 KB
framebuffer.rst -rw-r--r-- 13.9 KB
gxfb.rst -rw-r--r-- 1.3 KB
index.rst -rw-r--r-- 586 bytes
intel810.rst -rw-r--r-- 8.4 KB
intelfb.rst -rw-r--r-- 3.8 KB
internals.rst -rw-r--r-- 2.7 KB
lxfb.rst -rw-r--r-- 1.3 KB
matroxfb.rst -rw-r--r-- 19.7 KB
metronomefb.rst -rw-r--r-- 2.0 KB
modedb.rst -rw-r--r-- 7.5 KB
pvr2fb.rst -rw-r--r-- 2.2 KB
pxafb.rst -rw-r--r-- 4.6 KB
s3fb.rst -rw-r--r-- 2.6 KB
sa1100fb.rst -rw-r--r-- 1.4 KB
sh7760fb.rst -rw-r--r-- 4.3 KB
sisfb.rst -rw-r--r-- 6.5 KB
sm501.rst -rw-r--r-- 316 bytes
sm712fb.rst -rw-r--r-- 858 bytes
sstfb.rst -rw-r--r-- 7.0 KB
tgafb.rst -rw-r--r-- 2.5 KB
tridentfb.rst -rw-r--r-- 2.8 KB
udlfb.rst -rw-r--r-- 7.3 KB
uvesafb.rst -rw-r--r-- 7.2 KB
vesafb.rst -rw-r--r-- 6.6 KB
viafb.modes -rw-r--r-- 30.8 KB
viafb.rst -rw-r--r-- 8.9 KB
vt8623fb.rst -rw-r--r-- 1.9 KB

back to top