EFI booting crashes

Atish Patra atishp at atishpatra.org
Mon Jan 4 15:46:03 EST 2021


On Mon, Jan 4, 2021 at 5:29 AM Andreas Schwab <schwab at suse.de> wrote:
>
> Has anyone sucessfully booted 5.10 via EFI?  When I try that, I get this
> crash:
>

I just tested them with 5.11-rc2 with bootefi command from U-Boot on
Qemu. I booted both busybox and a Fedora image.

[root at fedora-riscv ~]# cat /sys/kernel/debug/efi_page_tables
---[ UEFI runtime start ]---
0x0000000020000000-0x0000000020001000    0x00000000be730000         4K
PTE     D A . . . W R V
0x0000000020014000-0x0000000020017000    0x00000000be734000        12K
PTE     D A . . . W R V
0x0000000020028000-0x000000002002c000    0x00000000be738000        16K
PTE     D A . . . W R V
0x000000002003a000-0x000000002003b000    0x00000000bff6a000         4K
PTE     D A . . X W R V
---[ UEFI runtime end ]---

The panic seems to have been caused by invalid runtime services mapping.
Can you give more details on the platform and UEFI firmware (U-Boot/EDK2) used ?
If you can share the opensuse image, I can try that as well.

> [    7.677382] Unable to handle kernel paging request at virtual address 00000000200a2388
> [    7.678710] Oops [#1]
> [    7.678873] Modules linked in:
> [    7.679242] CPU: 0 PID: 7 Comm: kworker/u2:0 Not tainted 5.10.3-1-default #1 openSUSE Tumbleweed
> [    7.679954] Workqueue: efi_rts_wq efi_call_rts
> [    7.680296] epc: 000000002002c33c ra : 000000002002c496 sp : ffffffe07eacfd10
> [    7.680656]  gp : ffffffe001367ab8 tp : ffffffe07eac0000 t0 : 00000000000002ea
> [    7.681031]  t1 : ffffffe07ea08c6c t2 : ffffffe000a025f4 s0 : ffffffe07ea9fd80
> [    7.681400]  s1 : 00000000200a2338 a0 : ffffffe07ea9fd98 a1 : ffffffe000c15080
> [    7.681756]  a2 : 0000000000000000 a3 : ffffffe07ea9fd80 a4 : ffffffe07ea9fd78
> [    7.682023]  a5 : 0000000000000000 a6 : ffffffe000c15080 a7 : 0000000000045b96
> [    7.682380]  s2 : 0000000000000000 s3 : 0000000000000000 s4 : 0000000000000000
> [    7.682795]  s5 : ffffffe07ea9fd80 s6 : ffffffe07ea9fd78 s7 : 0000000000000022
> [    7.683216]  s8 : ffffffe00140c698 s9 : ffffffe00003d580 s10: ffffffe00003d580
> [    7.683630]  s11: ffffffe07ea08c00 t3 : 0000000000000000 t4 : 000000000000010a
> [    7.684205]  t5 : 0009be2b8189352a t6 : 00000000000bafbf
> [    7.684543] status: 0000000000000120 badaddr: 00000000200a2388 cause: 000000000000000d
> [    7.685557] ---[ end trace 7579eddbb881c1ff ]---
>
> Andreas.
>
> --
> Andreas Schwab, SUSE Labs, schwab at suse.de
> GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
> "And now for something completely different."
>
> _______________________________________________
> linux-riscv mailing list
> linux-riscv at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-riscv



--
Regards,
Atish



More information about the linux-riscv mailing list