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
index.rst -rw-r--r-- 333 bytes
leds-blinkm.rst -rw-r--r-- 2.0 KB
leds-class-flash.rst -rw-r--r-- 3.2 KB
leds-class-multicolor.rst -rw-r--r-- 3.0 KB
leds-class.rst -rw-r--r-- 7.6 KB
leds-lm3556.rst -rw-r--r-- 3.0 KB
leds-lp3944.rst -rw-r--r-- 1.5 KB
leds-lp5521.rst -rw-r--r-- 2.9 KB
leds-lp5523.rst -rw-r--r-- 3.4 KB
leds-lp5562.rst -rw-r--r-- 3.6 KB
leds-lp55xx.rst -rw-r--r-- 6.7 KB
leds-mlxcpld.rst -rw-r--r-- 2.4 KB
ledtrig-oneshot.rst -rw-r--r-- 1.5 KB
ledtrig-transient.rst -rw-r--r-- 7.3 KB
ledtrig-usbport.rst -rw-r--r-- 1.4 KB
uleds.rst -rw-r--r-- 1.2 KB

back to top