RISC-V: Illegal instruction
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-riscv (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Focal |
Won't Fix
|
Undecided
|
Unassigned | ||
Hirsute |
Fix Released
|
Undecided
|
Unassigned | ||
linux-riscv-5.11 (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
Hirsute |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When booting the Ubuntu Server image on the SiFive HiFive Unmatched I am getting the following error.
The last known working version was 1012.
The issue is being tracked on the SiFive forums at https:/
```
Starting kernel ...
[ 0.000000] Linux version 5.11.0-1014-generic (buildd@
[ 0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000
[ 0.000000] earlycon: sifive0 at MMIO 0x0000000010010000 (options '')
[ 0.000000] printk: bootconsole [sifive0] enabled
[ 0.000000] efi: UEFI not found.
[ 0.000000] Initial ramdisk at: 0x(____ptrval____) (183422976 bytes)
[ 0.000000] cma: Reserved 32 MiB at 0x00000000fe000000
[ 0.000000] Zone ranges:
[ 0.000000] DMA32 [mem 0x0000000080200
[ 0.000000] Normal [mem 0x0000000100000
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000080200
[ 0.000000] Initmem setup node 0 [mem 0x0000000080200
[ 0.000000] DMA32 zone: 512 pages in unavailable ranges
[ 0.000000] SBI specification v0.2 detected
[ 0.000000] SBI implementation ID=0x1 Version=0x9
[ 0.000000] SBI v0.2 TIME extension detected
[ 0.000000] SBI v0.2 IPI extension detected
[ 0.000000] SBI v0.2 RFENCE extension detected
[ 0.000000] software IO TLB: mapped [mem 0x00000000fa000
[ 0.000000] SBI v0.2 HSM extension detected
[ 0.000000] CPU with hartid=0 is not available
[ 0.000000] CPU with hartid=0 is not available
[ 0.000000] riscv: ISA extensions acdfim
[ 0.000000] riscv: ELF capabilities acdfim
[ 0.000000] percpu: Embedded 26 pages/cpu s69272 r8192 d29032 u106496
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 4128264
[ 0.000000] Kernel command line: root=/dev/nvme0n1p1 ro earlycon
[ 0.000000] Dentry cache hash table entries: 2097152 (order: 12, 16777216 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear)
[ 0.000000] Sorting __ex_table...
[ 0.000000] mem auto-init: stack:off, heap alloc:on, heap free:off
[ 0.000000] Memory: 16165452K/16775168K available (9854K kernel code, 5763K rwdata, 8192K rodata, 2519K init, 997K bss, 576948K reserved, 32768K cma-reserved)
[ 0.000000] random: get_random_u64 called from kmem_cache_
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] ftrace: allocating 38893 entries in 152 pages
[ 0.000000] Oops - illegal instruction [#1]
[ 0.000000] Modules linked in:
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 5.11.0-1014-generic #14-Ubuntu
[ 0.000000] epc: ffffffe00000920e ra : ffffffe000009384 sp : ffffffe001803d30
[ 0.000000] gp : ffffffe001a14240 tp : ffffffe00180f440 t0 : ffffffe07fe38000
[ 0.000000] t1 : ffffffe0019cd338 t2 : 0000000000000000 s0 : ffffffe001803d70
[ 0.000000] s1 : 0000000000000000 a0 : ffffffe0000095aa a1 : 0000000000000001
[ 0.000000] a2 : 0000000000000002 a3 : 0000000000000000 a4 : 0000000000000000
[ 0.000000] a5 : 0000000000000000 a6 : 0000000000000004 a7 : 0000000052464e43
[ 0.000000] s2 : 0000000000000002 s3 : 0000000000000001 s4 : 0000000000000000
[ 0.000000] s5 : 0000000000000000 s6 : 0000000000000000 s7 : 0000000000000000
[ 0.000000] s8 : ffffffe001a170c0 s9 : 0000000000000001 s10: 0000000000000001
[ 0.000000] s11: 00000000fffcc5d0 t3 : 0000000000000068 t4 : 000000000000000b
[ 0.000000] t5 : ffffffe0019cd3e0 t6 : ffffffe001803cd8
[ 0.000000] status: 0000000200000100 badaddr: 000000000513f187 cause: 0000000000000002
[ 0.000000] ---[ end trace f67eb9af4d8d492b ]---
[ 0.000000] Kernel panic - not syncing: Attempted to kill the idle task!
[ 0.000000] ---[ end Kernel panic - not syncing: Attempted to kill the idle task! ]---
```
affects: | charm-nrpe → linux-kernel-headers |
tags: | added: sifive |
tags: | added: rv64 rv64gc |
no longer affects: | linux-kernel-headers |
affects: | linux (Ubuntu) → linux-riscv (Ubuntu) |
affects: | ubuntu → linux-riscv-5.11 (Ubuntu) |
tags: | added: patch |
Changed in linux-riscv (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in linux-riscv-5.11 (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in linux-riscv (Ubuntu Hirsute): | |
status: | New → Fix Committed |
Changed in linux-riscv (Ubuntu): | |
status: | Fix Committed → Confirmed |
Changed in linux-riscv-5.11 (Ubuntu Hirsute): | |
status: | New → Fix Committed |
Changed in linux-riscv-5.11 (Ubuntu): | |
status: | Fix Committed → Confirmed |
Changed in linux-riscv (Ubuntu Focal): | |
status: | New → Won't Fix |
Changed in linux-riscv-5.11 (Ubuntu Focal): | |
status: | New → Fix Released |
Changed in linux-riscv-5.11 (Ubuntu Hirsute): | |
status: | Fix Committed → Invalid |
Changed in linux-riscv (Ubuntu): | |
status: | Confirmed → Fix Released |
This appears to be resolved in 5.11.0-1015-generic