[Kernel-packages] [Bug 1934548] Re: RISC-V: Illegal instruction

2021-08-18 Thread Dimitri John Ledkov
** Also affects: linux-riscv (Ubuntu Focal)
   Importance: Undecided
   Status: New

** Also affects: linux-riscv-5.11 (Ubuntu Focal)
   Importance: Undecided
   Status: New

** 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

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-riscv-5.11 in Ubuntu.
https://bugs.launchpad.net/bugs/1934548

Title:
  RISC-V: Illegal instruction

Status in linux-riscv package in Ubuntu:
  Fix Released
Status in linux-riscv-5.11 package in Ubuntu:
  Fix Released
Status in linux-riscv source package in Focal:
  Won't Fix
Status in linux-riscv-5.11 source package in Focal:
  Fix Released
Status in linux-riscv source package in Hirsute:
  Fix Released
Status in linux-riscv-5.11 source package in Hirsute:
  Invalid

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://forums.sifive.com/t/u-boot-says-unhandled-exception-illegal-instruction/4898

  ```
  Starting kernel ...

  [0.00] Linux version 5.11.0-1014-generic 
(buildd@riscv64-qemu-lcy01-084) (gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0, GNU ld 
(GNU Binutils for Ubuntu) 2.36.1) #14-Ubuntu SMP Wed Jun 30 17:56:50 UTC 2021 
(Ubuntu 5.11.0-1014.14-generic 5.11.22)
  [0.00] OF: fdt: Ignoring memory range 0x8000 - 0x8020
  [0.00] earlycon: sifive0 at MMIO 0x1001 (options '')
  [0.00] printk: bootconsole [sifive0] enabled
  [0.00] efi: UEFI not found.
  [0.00] Initial ramdisk at: 0x(ptrval) (183422976 bytes)
  [0.00] cma: Reserved 32 MiB at 0xfe00
  [0.00] Zone ranges:
  [0.00]   DMA32[mem 0x8020-0x]
  [0.00]   Normal   [mem 0x0001-0x00047fff]
  [0.00] Movable zone start for each node
  [0.00] Early memory node ranges
  [0.00]   node   0: [mem 0x8020-0x00047fff]
  [0.00] Initmem setup node 0 [mem 
0x8020-0x00047fff]
  [0.00]   DMA32 zone: 512 pages in unavailable ranges
  [0.00] SBI specification v0.2 detected
  [0.00] SBI implementation ID=0x1 Version=0x9
  [0.00] SBI v0.2 TIME extension detected
  [0.00] SBI v0.2 IPI extension detected
  [0.00] SBI v0.2 RFENCE extension detected
  [0.00] software IO TLB: mapped [mem 
0xfa00-0xfe00] (64MB)
  [0.00] SBI v0.2 HSM extension detected
  [0.00] CPU with hartid=0 is not available
  [0.00] CPU with hartid=0 is not available
  [0.00] riscv: ISA extensions acdfim
  [0.00] riscv: ELF capabilities acdfim
  [0.00] percpu: Embedded 26 pages/cpu s69272 r8192 d29032 u106496
  [0.00] Built 1 zonelists, mobility grouping on.  Total pages: 4128264
  [0.00] Kernel command line: root=/dev/nvme0n1p1 ro earlycon
  [0.00] Dentry cache hash table entries: 2097152 (order: 12, 16777216 
bytes, linear)
  [0.00] Inode-cache hash table entries: 1048576 (order: 11, 8388608 
bytes, linear)
  [0.00] Sorting __ex_table...
  [0.00] mem auto-init: stack:off, heap alloc:on, heap free:off
  [0.00] Memory: 16165452K/16775168K available (9854K kernel code, 
5763K rwdata, 8192K rodata, 2519K init, 997K bss, 576948K reserved, 32768K 
cma-reserved)
  [0.00] random: get_random_u64 called from kmem_cache_open+0x36/0x338 
with crng_init=0
  [0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
  [0.00] ftrace: allocating 38893 entries in 152 pages
  [0.00] Oops - illegal instruction [#1]
  [0.00] Modules linked in:
  [0.00] CPU: 0 PID: 0 Comm: swapper Not tainted 5.11.0-1014-generic 
#14-Ubuntu
  [0.00] epc: ffe0920e ra : ffe09384 sp : 
ffe001803d30
  [0.00]  gp : ffe001a14240 tp : ffe00180f440 t0 : 
ffe07fe38000
  [0.00]  t1 : ffe0019cd338 t2 :  s0 : 
ffe001803d70
  [0.00]  s1 :  a0 : ffe095aa a1 : 
0001
  [0.00]  a2 : 0002 a3 :  a4 : 

  [0.00]  a5 :  a6 : 0004 a7 : 
52464e43
  [0.00]  s2 : 0002 s3 : 0001 s4 : 

  [0.00]  s5 :  s6 :  s7 : 

  [0.00]  s8 : ffe001a170c0 s9 : 0001 s10: 
0001
  [

[Kernel-packages] [Bug 1934548] Re: RISC-V: Illegal instruction

2021-08-16 Thread Launchpad Bug Tracker
This bug was fixed in the package linux-riscv-5.11 -
5.11.0-1017.18~20.04.1

---
linux-riscv-5.11 (5.11.0-1017.18~20.04.1) focal; urgency=medium

  * focal/linux-riscv-5.11: 5.11.0-1017.18~20.04.1 -proposed tracker
(LP: #1939588)

  * Packaging resync (LP: #1786013)
- [Packaging] update variants

  [ Ubuntu: 5.11.0-1017.18 ]

  * hirsute/linux-riscv: 5.11.0-1017.18 -proposed tracker (LP: #1939589)
  * RISC-V: Illegal instruction (LP: #1934548)
- SAUCE: RISC-V: prevent sbi_send_cpumask_ipi race with ftrace
  * hirsute/linux: 5.11.0-31.33 -proposed tracker (LP: #1939553)
  * REGRESSION: shiftfs lets sendfile fail with EINVAL (LP: #1939301)
- SAUCE: shiftfs: fix sendfile() invocations

  [ Ubuntu: 5.11.0-1016.17 ]

  * hirsute/linux-riscv: 5.11.0-1016.17 -proposed tracker (LP: #1936501)
  * Packaging resync (LP: #1786013)
- update dkms package versions
  * large_dir in ext4 broken (LP: #1933074)
- SAUCE: ext4: fix directory index node split corruption
  * Add l2tp.sh in net from ubuntu_kernel_selftests back (LP: #1934293)
- Revert "UBUNTU: SAUCE: selftests/net -- disable l2tp.sh test"
  * icmp_redirect.sh in net from ubuntu_kernel_selftests failed on F-OEM-5.6 /
F-OEM-5.10 / F-OEM-5.13 / F / G / H (LP: #1880645)
- selftests: icmp_redirect: support expected failures
  * Mute/mic LEDs no function on some HP platfroms (LP: #1934878)
- ALSA: hda/realtek: fix mute/micmute LEDs for HP ProBook 450 G8
- ALSA: hda/realtek: fix mute/micmute LEDs for HP ProBook 445 G8
- ALSA: hda/realtek: fix mute/micmute LEDs for HP ProBook 630 G8
  * [SRU][OEM-5.10/H] Fix HDMI output issue on Intel TGL GPU (LP: #1934864)
- drm/i915: Fix HAS_LSPCON macro for platforms between GEN9 and GEN10
  * mute/micmute LEDs no function on HP EliteBook 830 G8 Notebook PC
(LP: #1934239)
- ALSA: hda/realtek: fix mute/micmute LEDs for HP EliteBook 830 G8 Notebook 
PC
  * ubuntu-host driver lacks lseek ops (LP: #1934110)
- ubuntu-host: add generic lseek op
  * ubuntu_kernel_selftests ftrace fails on arm64 F / aws-5.8 / amd64 F
azure-5.8 (LP: #1927749)
- selftests/ftrace: fix event-no-pid on 1-core machine
  * Hirsute update: upstream stable patchset 2021-06-29 (LP: #1934012)
- proc: Track /proc/$pid/attr/ opener mm_struct
- ASoC: max98088: fix ni clock divider calculation
- ASoC: amd: fix for pcm_read() error
- spi: Fix spi device unregister flow
- spi: spi-zynq-qspi: Fix stack violation bug
- bpf: Forbid trampoline attach for functions with variable arguments
- net/nfc/rawsock.c: fix a permission check bug
- usb: cdns3: Fix runtime PM imbalance on error
- ASoC: Intel: bytcr_rt5640: Add quirk for the Glavey TM800A550L tablet
- ASoC: Intel: bytcr_rt5640: Add quirk for the Lenovo Miix 3-830 tablet
- vfio-ccw: Reset FSM state to IDLE inside FSM
- vfio-ccw: Serialize FSM IDLE state with I/O completion
- ASoC: sti-sas: add missing MODULE_DEVICE_TABLE
- spi: sprd: Add missing MODULE_DEVICE_TABLE
- usb: chipidea: udc: assign interrupt number to USB gadget structure
- isdn: mISDN: netjet: Fix crash in nj_probe:
- bonding: init notify_work earlier to avoid uninitialized use
- netlink: disable IRQs for netlink_lock_table()
- net: mdiobus: get rid of a BUG_ON()
- cgroup: disable controllers at parse time
- wq: handle VM suspension in stall detection
- net/qla3xxx: fix schedule while atomic in ql_sem_spinlock
- RDS tcp loopback connection can hang
- net:sfc: fix non-freed irq in legacy irq mode
- scsi: bnx2fc: Return failure if io_req is already in ABTS processing
- scsi: vmw_pvscsi: Set correct residual data length
- scsi: hisi_sas: Drop free_irq() of devm_request_irq() allocated irq
- scsi: target: qla2xxx: Wait for stop_phase1 at WWN removal
- net: macb: ensure the device is available before accessing GEMGXL control
  registers
- net: appletalk: cops: Fix data race in cops_probe1
- net: dsa: microchip: enable phy errata workaround on 9567
- nvme-fabrics: decode host pathing error for connect
- MIPS: Fix kernel hang under FUNCTION_GRAPH_TRACER and PREEMPT_TRACER
- dm verity: fix require_signatures module_param permissions
- bnx2x: Fix missing error code in bnx2x_iov_init_one()
- nvme-tcp: remove incorrect Kconfig dep in BLK_DEV_NVME
- nvmet: fix false keep-alive timeout when a controller is torn down
- powerpc/fsl: set fsl,i2c-erratum-a004447 flag for P2041 i2c controllers
- powerpc/fsl: set fsl,i2c-erratum-a004447 flag for P1010 i2c controllers
- spi: Don't have controller clean up spi device before driver unbind
- spi: Cleanup on failure of initial setup
- i2c: mpc: Make use of i2c_recover_bus()
- i2c: mpc: implement erratum A-004447 workaround
- ALSA: seq: Fix race of snd_seq_timer_open()
- ALSA: firewire-lib: fix the context to call snd_pcm_stop_xrun()
- spi: bcm2835: Fix out-of-bounds acces

[Kernel-packages] [Bug 1934548] Re: RISC-V: Illegal instruction

2021-08-16 Thread Launchpad Bug Tracker
This bug was fixed in the package linux-riscv - 5.11.0-1017.18

---
linux-riscv (5.11.0-1017.18) hirsute; urgency=medium

  * hirsute/linux-riscv: 5.11.0-1017.18 -proposed tracker (LP: #1939589)

  * RISC-V: Illegal instruction (LP: #1934548)
- SAUCE: RISC-V: prevent sbi_send_cpumask_ipi race with ftrace

  [ Ubuntu: 5.11.0-31.33 ]

  * hirsute/linux: 5.11.0-31.33 -proposed tracker (LP: #1939553)
  * REGRESSION: shiftfs lets sendfile fail with EINVAL (LP: #1939301)
- SAUCE: shiftfs: fix sendfile() invocations

linux-riscv (5.11.0-1016.17) hirsute; urgency=medium

  * hirsute/linux-riscv: 5.11.0-1016.17 -proposed tracker (LP: #1936501)

  [ Ubuntu: 5.11.0-26.28 ]

  * Packaging resync (LP: #1786013)
- update dkms package versions
  * large_dir in ext4 broken (LP: #1933074)
- SAUCE: ext4: fix directory index node split corruption
  * Add l2tp.sh in net from ubuntu_kernel_selftests back (LP: #1934293)
- Revert "UBUNTU: SAUCE: selftests/net -- disable l2tp.sh test"
  * icmp_redirect.sh in net from ubuntu_kernel_selftests failed on F-OEM-5.6 /
F-OEM-5.10 / F-OEM-5.13 / F / G / H (LP: #1880645)
- selftests: icmp_redirect: support expected failures
  * Mute/mic LEDs no function on some HP platfroms (LP: #1934878)
- ALSA: hda/realtek: fix mute/micmute LEDs for HP ProBook 450 G8
- ALSA: hda/realtek: fix mute/micmute LEDs for HP ProBook 445 G8
- ALSA: hda/realtek: fix mute/micmute LEDs for HP ProBook 630 G8
  * [SRU][OEM-5.10/H] Fix HDMI output issue on Intel TGL GPU (LP: #1934864)
- drm/i915: Fix HAS_LSPCON macro for platforms between GEN9 and GEN10
  * mute/micmute LEDs no function on HP EliteBook 830 G8 Notebook PC
(LP: #1934239)
- ALSA: hda/realtek: fix mute/micmute LEDs for HP EliteBook 830 G8 Notebook 
PC
  * ubuntu-host driver lacks lseek ops (LP: #1934110)
- ubuntu-host: add generic lseek op
  * ubuntu_kernel_selftests ftrace fails on arm64 F / aws-5.8 / amd64 F
azure-5.8 (LP: #1927749)
- selftests/ftrace: fix event-no-pid on 1-core machine
  * Hirsute update: upstream stable patchset 2021-06-29 (LP: #1934012)
- proc: Track /proc/$pid/attr/ opener mm_struct
- ASoC: max98088: fix ni clock divider calculation
- ASoC: amd: fix for pcm_read() error
- spi: Fix spi device unregister flow
- spi: spi-zynq-qspi: Fix stack violation bug
- bpf: Forbid trampoline attach for functions with variable arguments
- net/nfc/rawsock.c: fix a permission check bug
- usb: cdns3: Fix runtime PM imbalance on error
- ASoC: Intel: bytcr_rt5640: Add quirk for the Glavey TM800A550L tablet
- ASoC: Intel: bytcr_rt5640: Add quirk for the Lenovo Miix 3-830 tablet
- vfio-ccw: Reset FSM state to IDLE inside FSM
- vfio-ccw: Serialize FSM IDLE state with I/O completion
- ASoC: sti-sas: add missing MODULE_DEVICE_TABLE
- spi: sprd: Add missing MODULE_DEVICE_TABLE
- usb: chipidea: udc: assign interrupt number to USB gadget structure
- isdn: mISDN: netjet: Fix crash in nj_probe:
- bonding: init notify_work earlier to avoid uninitialized use
- netlink: disable IRQs for netlink_lock_table()
- net: mdiobus: get rid of a BUG_ON()
- cgroup: disable controllers at parse time
- wq: handle VM suspension in stall detection
- net/qla3xxx: fix schedule while atomic in ql_sem_spinlock
- RDS tcp loopback connection can hang
- net:sfc: fix non-freed irq in legacy irq mode
- scsi: bnx2fc: Return failure if io_req is already in ABTS processing
- scsi: vmw_pvscsi: Set correct residual data length
- scsi: hisi_sas: Drop free_irq() of devm_request_irq() allocated irq
- scsi: target: qla2xxx: Wait for stop_phase1 at WWN removal
- net: macb: ensure the device is available before accessing GEMGXL control
  registers
- net: appletalk: cops: Fix data race in cops_probe1
- net: dsa: microchip: enable phy errata workaround on 9567
- nvme-fabrics: decode host pathing error for connect
- MIPS: Fix kernel hang under FUNCTION_GRAPH_TRACER and PREEMPT_TRACER
- dm verity: fix require_signatures module_param permissions
- bnx2x: Fix missing error code in bnx2x_iov_init_one()
- nvme-tcp: remove incorrect Kconfig dep in BLK_DEV_NVME
- nvmet: fix false keep-alive timeout when a controller is torn down
- powerpc/fsl: set fsl,i2c-erratum-a004447 flag for P2041 i2c controllers
- powerpc/fsl: set fsl,i2c-erratum-a004447 flag for P1010 i2c controllers
- spi: Don't have controller clean up spi device before driver unbind
- spi: Cleanup on failure of initial setup
- i2c: mpc: Make use of i2c_recover_bus()
- i2c: mpc: implement erratum A-004447 workaround
- ALSA: seq: Fix race of snd_seq_timer_open()
- ALSA: firewire-lib: fix the context to call snd_pcm_stop_xrun()
- spi: bcm2835: Fix out-of-bounds access with more than 4 slaves
- Revert "ACPI: sleep: Put the FACS table after using it"
- drm: Fix use-after-free read in drm_g

[Kernel-packages] [Bug 1934548] Re: RISC-V: Illegal instruction

2021-08-13 Thread William Wilson
The 1017 kernel from the kernel team PPA is reliably booting on my
hardware.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-riscv in Ubuntu.
https://bugs.launchpad.net/bugs/1934548

Title:
  RISC-V: Illegal instruction

Status in linux-riscv package in Ubuntu:
  Confirmed
Status in linux-riscv-5.11 package in Ubuntu:
  Confirmed
Status in linux-riscv source package in Hirsute:
  Fix Committed
Status in linux-riscv-5.11 source package in Hirsute:
  Fix Committed

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://forums.sifive.com/t/u-boot-says-unhandled-exception-illegal-instruction/4898

  ```
  Starting kernel ...

  [0.00] Linux version 5.11.0-1014-generic 
(buildd@riscv64-qemu-lcy01-084) (gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0, GNU ld 
(GNU Binutils for Ubuntu) 2.36.1) #14-Ubuntu SMP Wed Jun 30 17:56:50 UTC 2021 
(Ubuntu 5.11.0-1014.14-generic 5.11.22)
  [0.00] OF: fdt: Ignoring memory range 0x8000 - 0x8020
  [0.00] earlycon: sifive0 at MMIO 0x1001 (options '')
  [0.00] printk: bootconsole [sifive0] enabled
  [0.00] efi: UEFI not found.
  [0.00] Initial ramdisk at: 0x(ptrval) (183422976 bytes)
  [0.00] cma: Reserved 32 MiB at 0xfe00
  [0.00] Zone ranges:
  [0.00]   DMA32[mem 0x8020-0x]
  [0.00]   Normal   [mem 0x0001-0x00047fff]
  [0.00] Movable zone start for each node
  [0.00] Early memory node ranges
  [0.00]   node   0: [mem 0x8020-0x00047fff]
  [0.00] Initmem setup node 0 [mem 
0x8020-0x00047fff]
  [0.00]   DMA32 zone: 512 pages in unavailable ranges
  [0.00] SBI specification v0.2 detected
  [0.00] SBI implementation ID=0x1 Version=0x9
  [0.00] SBI v0.2 TIME extension detected
  [0.00] SBI v0.2 IPI extension detected
  [0.00] SBI v0.2 RFENCE extension detected
  [0.00] software IO TLB: mapped [mem 
0xfa00-0xfe00] (64MB)
  [0.00] SBI v0.2 HSM extension detected
  [0.00] CPU with hartid=0 is not available
  [0.00] CPU with hartid=0 is not available
  [0.00] riscv: ISA extensions acdfim
  [0.00] riscv: ELF capabilities acdfim
  [0.00] percpu: Embedded 26 pages/cpu s69272 r8192 d29032 u106496
  [0.00] Built 1 zonelists, mobility grouping on.  Total pages: 4128264
  [0.00] Kernel command line: root=/dev/nvme0n1p1 ro earlycon
  [0.00] Dentry cache hash table entries: 2097152 (order: 12, 16777216 
bytes, linear)
  [0.00] Inode-cache hash table entries: 1048576 (order: 11, 8388608 
bytes, linear)
  [0.00] Sorting __ex_table...
  [0.00] mem auto-init: stack:off, heap alloc:on, heap free:off
  [0.00] Memory: 16165452K/16775168K available (9854K kernel code, 
5763K rwdata, 8192K rodata, 2519K init, 997K bss, 576948K reserved, 32768K 
cma-reserved)
  [0.00] random: get_random_u64 called from kmem_cache_open+0x36/0x338 
with crng_init=0
  [0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
  [0.00] ftrace: allocating 38893 entries in 152 pages
  [0.00] Oops - illegal instruction [#1]
  [0.00] Modules linked in:
  [0.00] CPU: 0 PID: 0 Comm: swapper Not tainted 5.11.0-1014-generic 
#14-Ubuntu
  [0.00] epc: ffe0920e ra : ffe09384 sp : 
ffe001803d30
  [0.00]  gp : ffe001a14240 tp : ffe00180f440 t0 : 
ffe07fe38000
  [0.00]  t1 : ffe0019cd338 t2 :  s0 : 
ffe001803d70
  [0.00]  s1 :  a0 : ffe095aa a1 : 
0001
  [0.00]  a2 : 0002 a3 :  a4 : 

  [0.00]  a5 :  a6 : 0004 a7 : 
52464e43
  [0.00]  s2 : 0002 s3 : 0001 s4 : 

  [0.00]  s5 :  s6 :  s7 : 

  [0.00]  s8 : ffe001a170c0 s9 : 0001 s10: 
0001
  [0.00]  s11: fffcc5d0 t3 : 0068 t4 : 
000b
  [0.00]  t5 : ffe0019cd3e0 t6 : ffe001803cd8
  [0.00] status: 00020100 badaddr: 0513f187 cause: 
0002
  [0.00] ---[ end trace f67eb9af4d8d492b ]---
  [0.00] Kernel panic - not syncing: Attempted to kill the idle task!
  [0.00] ---[ end Kernel panic - not syncing: Attempted to kill the 
idle task! ]---
  ```

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linu

[Kernel-packages] [Bug 1934548] Re: RISC-V: Illegal instruction

2021-08-13 Thread Dimitri John Ledkov
Focal

ubuntu@ubuntu:~$ dmesg | grep gcc
[0.00] Linux version 5.11.0-1017-generic 
(buildd@riscv64-qemu-lcy01-062) (gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0, 
GNU ld (GNU Binutils for Ubuntu) 2.34) #18~20.04.1-Ubuntu SMP Thu Aug 12 
00:38:00 UTC 2021 (Ubuntu 5.11.0-1017.18~20.04.1-generic 5.11.22)

ubuntu@ubuntu:~$ systemctl is-system-running 
running

Tested from the kernel team's ppa on focal, on unmatched. All is good.

** Tags added: verification-done-focal

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-riscv in Ubuntu.
https://bugs.launchpad.net/bugs/1934548

Title:
  RISC-V: Illegal instruction

Status in linux-riscv package in Ubuntu:
  Confirmed
Status in linux-riscv-5.11 package in Ubuntu:
  Confirmed
Status in linux-riscv source package in Hirsute:
  Fix Committed
Status in linux-riscv-5.11 source package in Hirsute:
  Fix Committed

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://forums.sifive.com/t/u-boot-says-unhandled-exception-illegal-instruction/4898

  ```
  Starting kernel ...

  [0.00] Linux version 5.11.0-1014-generic 
(buildd@riscv64-qemu-lcy01-084) (gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0, GNU ld 
(GNU Binutils for Ubuntu) 2.36.1) #14-Ubuntu SMP Wed Jun 30 17:56:50 UTC 2021 
(Ubuntu 5.11.0-1014.14-generic 5.11.22)
  [0.00] OF: fdt: Ignoring memory range 0x8000 - 0x8020
  [0.00] earlycon: sifive0 at MMIO 0x1001 (options '')
  [0.00] printk: bootconsole [sifive0] enabled
  [0.00] efi: UEFI not found.
  [0.00] Initial ramdisk at: 0x(ptrval) (183422976 bytes)
  [0.00] cma: Reserved 32 MiB at 0xfe00
  [0.00] Zone ranges:
  [0.00]   DMA32[mem 0x8020-0x]
  [0.00]   Normal   [mem 0x0001-0x00047fff]
  [0.00] Movable zone start for each node
  [0.00] Early memory node ranges
  [0.00]   node   0: [mem 0x8020-0x00047fff]
  [0.00] Initmem setup node 0 [mem 
0x8020-0x00047fff]
  [0.00]   DMA32 zone: 512 pages in unavailable ranges
  [0.00] SBI specification v0.2 detected
  [0.00] SBI implementation ID=0x1 Version=0x9
  [0.00] SBI v0.2 TIME extension detected
  [0.00] SBI v0.2 IPI extension detected
  [0.00] SBI v0.2 RFENCE extension detected
  [0.00] software IO TLB: mapped [mem 
0xfa00-0xfe00] (64MB)
  [0.00] SBI v0.2 HSM extension detected
  [0.00] CPU with hartid=0 is not available
  [0.00] CPU with hartid=0 is not available
  [0.00] riscv: ISA extensions acdfim
  [0.00] riscv: ELF capabilities acdfim
  [0.00] percpu: Embedded 26 pages/cpu s69272 r8192 d29032 u106496
  [0.00] Built 1 zonelists, mobility grouping on.  Total pages: 4128264
  [0.00] Kernel command line: root=/dev/nvme0n1p1 ro earlycon
  [0.00] Dentry cache hash table entries: 2097152 (order: 12, 16777216 
bytes, linear)
  [0.00] Inode-cache hash table entries: 1048576 (order: 11, 8388608 
bytes, linear)
  [0.00] Sorting __ex_table...
  [0.00] mem auto-init: stack:off, heap alloc:on, heap free:off
  [0.00] Memory: 16165452K/16775168K available (9854K kernel code, 
5763K rwdata, 8192K rodata, 2519K init, 997K bss, 576948K reserved, 32768K 
cma-reserved)
  [0.00] random: get_random_u64 called from kmem_cache_open+0x36/0x338 
with crng_init=0
  [0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
  [0.00] ftrace: allocating 38893 entries in 152 pages
  [0.00] Oops - illegal instruction [#1]
  [0.00] Modules linked in:
  [0.00] CPU: 0 PID: 0 Comm: swapper Not tainted 5.11.0-1014-generic 
#14-Ubuntu
  [0.00] epc: ffe0920e ra : ffe09384 sp : 
ffe001803d30
  [0.00]  gp : ffe001a14240 tp : ffe00180f440 t0 : 
ffe07fe38000
  [0.00]  t1 : ffe0019cd338 t2 :  s0 : 
ffe001803d70
  [0.00]  s1 :  a0 : ffe095aa a1 : 
0001
  [0.00]  a2 : 0002 a3 :  a4 : 

  [0.00]  a5 :  a6 : 0004 a7 : 
52464e43
  [0.00]  s2 : 0002 s3 : 0001 s4 : 

  [0.00]  s5 :  s6 :  s7 : 

  [0.00]  s8 : ffe001a170c0 s9 : 0001 s10: 
0001
  [0.00]  s11: fffcc5d0 t3 : 0068 t4 : 
000b
  [0.00]  t5 : ffe0019cd3e0 t6 : ffe001803cd8
  [0.00]

[Kernel-packages] [Bug 1934548] Re: RISC-V: Illegal instruction

2021-08-13 Thread Dimitri John Ledkov
Hirsute:
$ uname -a
Linux ubuntu 5.11.0-1017-generic #18-Ubuntu SMP Wed Aug 11 18:02:14 UTC 2021 
riscv64 riscv64 riscv64 GNU/Linux

$ systemctl is-system-running
running

$ sudo dmesg | grep gcc
[0.00] Linux version 5.11.0-1017-generic 
(buildd@riscv64-qemu-lcy01-065) (gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0, GNU ld 
(GNU Binutils for Ubuntu) 2.36.1) #18-Ubuntu SMP Wed Aug 11 18:02:14 UTC 2021 
(Ubuntu 5.11.0-1017.18-generic 5.11.22)

(based on gcc version it is hirsute build of this abi)

System booted fine.

** Tags added: verification-done-hirsute

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-riscv in Ubuntu.
https://bugs.launchpad.net/bugs/1934548

Title:
  RISC-V: Illegal instruction

Status in linux-riscv package in Ubuntu:
  Confirmed
Status in linux-riscv-5.11 package in Ubuntu:
  Confirmed
Status in linux-riscv source package in Hirsute:
  Fix Committed
Status in linux-riscv-5.11 source package in Hirsute:
  Fix Committed

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://forums.sifive.com/t/u-boot-says-unhandled-exception-illegal-instruction/4898

  ```
  Starting kernel ...

  [0.00] Linux version 5.11.0-1014-generic 
(buildd@riscv64-qemu-lcy01-084) (gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0, GNU ld 
(GNU Binutils for Ubuntu) 2.36.1) #14-Ubuntu SMP Wed Jun 30 17:56:50 UTC 2021 
(Ubuntu 5.11.0-1014.14-generic 5.11.22)
  [0.00] OF: fdt: Ignoring memory range 0x8000 - 0x8020
  [0.00] earlycon: sifive0 at MMIO 0x1001 (options '')
  [0.00] printk: bootconsole [sifive0] enabled
  [0.00] efi: UEFI not found.
  [0.00] Initial ramdisk at: 0x(ptrval) (183422976 bytes)
  [0.00] cma: Reserved 32 MiB at 0xfe00
  [0.00] Zone ranges:
  [0.00]   DMA32[mem 0x8020-0x]
  [0.00]   Normal   [mem 0x0001-0x00047fff]
  [0.00] Movable zone start for each node
  [0.00] Early memory node ranges
  [0.00]   node   0: [mem 0x8020-0x00047fff]
  [0.00] Initmem setup node 0 [mem 
0x8020-0x00047fff]
  [0.00]   DMA32 zone: 512 pages in unavailable ranges
  [0.00] SBI specification v0.2 detected
  [0.00] SBI implementation ID=0x1 Version=0x9
  [0.00] SBI v0.2 TIME extension detected
  [0.00] SBI v0.2 IPI extension detected
  [0.00] SBI v0.2 RFENCE extension detected
  [0.00] software IO TLB: mapped [mem 
0xfa00-0xfe00] (64MB)
  [0.00] SBI v0.2 HSM extension detected
  [0.00] CPU with hartid=0 is not available
  [0.00] CPU with hartid=0 is not available
  [0.00] riscv: ISA extensions acdfim
  [0.00] riscv: ELF capabilities acdfim
  [0.00] percpu: Embedded 26 pages/cpu s69272 r8192 d29032 u106496
  [0.00] Built 1 zonelists, mobility grouping on.  Total pages: 4128264
  [0.00] Kernel command line: root=/dev/nvme0n1p1 ro earlycon
  [0.00] Dentry cache hash table entries: 2097152 (order: 12, 16777216 
bytes, linear)
  [0.00] Inode-cache hash table entries: 1048576 (order: 11, 8388608 
bytes, linear)
  [0.00] Sorting __ex_table...
  [0.00] mem auto-init: stack:off, heap alloc:on, heap free:off
  [0.00] Memory: 16165452K/16775168K available (9854K kernel code, 
5763K rwdata, 8192K rodata, 2519K init, 997K bss, 576948K reserved, 32768K 
cma-reserved)
  [0.00] random: get_random_u64 called from kmem_cache_open+0x36/0x338 
with crng_init=0
  [0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
  [0.00] ftrace: allocating 38893 entries in 152 pages
  [0.00] Oops - illegal instruction [#1]
  [0.00] Modules linked in:
  [0.00] CPU: 0 PID: 0 Comm: swapper Not tainted 5.11.0-1014-generic 
#14-Ubuntu
  [0.00] epc: ffe0920e ra : ffe09384 sp : 
ffe001803d30
  [0.00]  gp : ffe001a14240 tp : ffe00180f440 t0 : 
ffe07fe38000
  [0.00]  t1 : ffe0019cd338 t2 :  s0 : 
ffe001803d70
  [0.00]  s1 :  a0 : ffe095aa a1 : 
0001
  [0.00]  a2 : 0002 a3 :  a4 : 

  [0.00]  a5 :  a6 : 0004 a7 : 
52464e43
  [0.00]  s2 : 0002 s3 : 0001 s4 : 

  [0.00]  s5 :  s6 :  s7 : 

  [0.00]  s8 : ffe001a170c0 s9 : 0001 s10: 
0001
  [0.00]  s11: fffcc5d0 t3 : 0068 t4 : 
000

[Kernel-packages] [Bug 1934548] Re: RISC-V: Illegal instruction

2021-08-11 Thread Dimitri John Ledkov
** Changed in: linux-riscv (Ubuntu)
   Status: In Progress => Fix Committed

** Changed in: linux-riscv-5.11 (Ubuntu)
   Status: In Progress => Fix Committed

** Also affects: linux-riscv (Ubuntu Hirsute)
   Importance: Undecided
   Status: New

** Also affects: linux-riscv-5.11 (Ubuntu Hirsute)
   Importance: Undecided
   Status: New

** 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

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-riscv in Ubuntu.
https://bugs.launchpad.net/bugs/1934548

Title:
  RISC-V: Illegal instruction

Status in linux-riscv package in Ubuntu:
  Confirmed
Status in linux-riscv-5.11 package in Ubuntu:
  Confirmed
Status in linux-riscv source package in Hirsute:
  Fix Committed
Status in linux-riscv-5.11 source package in Hirsute:
  Fix Committed

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://forums.sifive.com/t/u-boot-says-unhandled-exception-illegal-instruction/4898

  ```
  Starting kernel ...

  [0.00] Linux version 5.11.0-1014-generic 
(buildd@riscv64-qemu-lcy01-084) (gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0, GNU ld 
(GNU Binutils for Ubuntu) 2.36.1) #14-Ubuntu SMP Wed Jun 30 17:56:50 UTC 2021 
(Ubuntu 5.11.0-1014.14-generic 5.11.22)
  [0.00] OF: fdt: Ignoring memory range 0x8000 - 0x8020
  [0.00] earlycon: sifive0 at MMIO 0x1001 (options '')
  [0.00] printk: bootconsole [sifive0] enabled
  [0.00] efi: UEFI not found.
  [0.00] Initial ramdisk at: 0x(ptrval) (183422976 bytes)
  [0.00] cma: Reserved 32 MiB at 0xfe00
  [0.00] Zone ranges:
  [0.00]   DMA32[mem 0x8020-0x]
  [0.00]   Normal   [mem 0x0001-0x00047fff]
  [0.00] Movable zone start for each node
  [0.00] Early memory node ranges
  [0.00]   node   0: [mem 0x8020-0x00047fff]
  [0.00] Initmem setup node 0 [mem 
0x8020-0x00047fff]
  [0.00]   DMA32 zone: 512 pages in unavailable ranges
  [0.00] SBI specification v0.2 detected
  [0.00] SBI implementation ID=0x1 Version=0x9
  [0.00] SBI v0.2 TIME extension detected
  [0.00] SBI v0.2 IPI extension detected
  [0.00] SBI v0.2 RFENCE extension detected
  [0.00] software IO TLB: mapped [mem 
0xfa00-0xfe00] (64MB)
  [0.00] SBI v0.2 HSM extension detected
  [0.00] CPU with hartid=0 is not available
  [0.00] CPU with hartid=0 is not available
  [0.00] riscv: ISA extensions acdfim
  [0.00] riscv: ELF capabilities acdfim
  [0.00] percpu: Embedded 26 pages/cpu s69272 r8192 d29032 u106496
  [0.00] Built 1 zonelists, mobility grouping on.  Total pages: 4128264
  [0.00] Kernel command line: root=/dev/nvme0n1p1 ro earlycon
  [0.00] Dentry cache hash table entries: 2097152 (order: 12, 16777216 
bytes, linear)
  [0.00] Inode-cache hash table entries: 1048576 (order: 11, 8388608 
bytes, linear)
  [0.00] Sorting __ex_table...
  [0.00] mem auto-init: stack:off, heap alloc:on, heap free:off
  [0.00] Memory: 16165452K/16775168K available (9854K kernel code, 
5763K rwdata, 8192K rodata, 2519K init, 997K bss, 576948K reserved, 32768K 
cma-reserved)
  [0.00] random: get_random_u64 called from kmem_cache_open+0x36/0x338 
with crng_init=0
  [0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
  [0.00] ftrace: allocating 38893 entries in 152 pages
  [0.00] Oops - illegal instruction [#1]
  [0.00] Modules linked in:
  [0.00] CPU: 0 PID: 0 Comm: swapper Not tainted 5.11.0-1014-generic 
#14-Ubuntu
  [0.00] epc: ffe0920e ra : ffe09384 sp : 
ffe001803d30
  [0.00]  gp : ffe001a14240 tp : ffe00180f440 t0 : 
ffe07fe38000
  [0.00]  t1 : ffe0019cd338 t2 :  s0 : 
ffe001803d70
  [0.00]  s1 :  a0 : ffe095aa a1 : 
0001
  [0.00]  a2 : 0002 a3 :  a4 : 

  [0.00]  a5 :  a6 : 0004 a7 : 
52464e43
  [0.00]  s2 : 0002 s3 : 0001 s4 : 

  [0.00]  s5 :  s6 :  s7 : 

  [0.00]  s8 : ffe001a170c0 s9 

[Kernel-packages] [Bug 1934548] Re: RISC-V: Illegal instruction

2021-08-11 Thread Dimitri John Ledkov
@cascardo it works

https://lists.ubuntu.com/archives/kernel-team/2021-August/123090.html

** Changed in: linux-riscv-5.11 (Ubuntu)
   Status: Confirmed => In Progress

** Changed in: linux-riscv (Ubuntu)
   Status: Confirmed => In Progress

** Changed in: linux-riscv-5.11 (Ubuntu)
   Importance: Undecided => High

** Changed in: linux-riscv (Ubuntu)
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-riscv in Ubuntu.
https://bugs.launchpad.net/bugs/1934548

Title:
  RISC-V: Illegal instruction

Status in linux-riscv package in Ubuntu:
  In Progress
Status in linux-riscv-5.11 package in Ubuntu:
  In Progress

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://forums.sifive.com/t/u-boot-says-unhandled-exception-illegal-instruction/4898

  ```
  Starting kernel ...

  [0.00] Linux version 5.11.0-1014-generic 
(buildd@riscv64-qemu-lcy01-084) (gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0, GNU ld 
(GNU Binutils for Ubuntu) 2.36.1) #14-Ubuntu SMP Wed Jun 30 17:56:50 UTC 2021 
(Ubuntu 5.11.0-1014.14-generic 5.11.22)
  [0.00] OF: fdt: Ignoring memory range 0x8000 - 0x8020
  [0.00] earlycon: sifive0 at MMIO 0x1001 (options '')
  [0.00] printk: bootconsole [sifive0] enabled
  [0.00] efi: UEFI not found.
  [0.00] Initial ramdisk at: 0x(ptrval) (183422976 bytes)
  [0.00] cma: Reserved 32 MiB at 0xfe00
  [0.00] Zone ranges:
  [0.00]   DMA32[mem 0x8020-0x]
  [0.00]   Normal   [mem 0x0001-0x00047fff]
  [0.00] Movable zone start for each node
  [0.00] Early memory node ranges
  [0.00]   node   0: [mem 0x8020-0x00047fff]
  [0.00] Initmem setup node 0 [mem 
0x8020-0x00047fff]
  [0.00]   DMA32 zone: 512 pages in unavailable ranges
  [0.00] SBI specification v0.2 detected
  [0.00] SBI implementation ID=0x1 Version=0x9
  [0.00] SBI v0.2 TIME extension detected
  [0.00] SBI v0.2 IPI extension detected
  [0.00] SBI v0.2 RFENCE extension detected
  [0.00] software IO TLB: mapped [mem 
0xfa00-0xfe00] (64MB)
  [0.00] SBI v0.2 HSM extension detected
  [0.00] CPU with hartid=0 is not available
  [0.00] CPU with hartid=0 is not available
  [0.00] riscv: ISA extensions acdfim
  [0.00] riscv: ELF capabilities acdfim
  [0.00] percpu: Embedded 26 pages/cpu s69272 r8192 d29032 u106496
  [0.00] Built 1 zonelists, mobility grouping on.  Total pages: 4128264
  [0.00] Kernel command line: root=/dev/nvme0n1p1 ro earlycon
  [0.00] Dentry cache hash table entries: 2097152 (order: 12, 16777216 
bytes, linear)
  [0.00] Inode-cache hash table entries: 1048576 (order: 11, 8388608 
bytes, linear)
  [0.00] Sorting __ex_table...
  [0.00] mem auto-init: stack:off, heap alloc:on, heap free:off
  [0.00] Memory: 16165452K/16775168K available (9854K kernel code, 
5763K rwdata, 8192K rodata, 2519K init, 997K bss, 576948K reserved, 32768K 
cma-reserved)
  [0.00] random: get_random_u64 called from kmem_cache_open+0x36/0x338 
with crng_init=0
  [0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
  [0.00] ftrace: allocating 38893 entries in 152 pages
  [0.00] Oops - illegal instruction [#1]
  [0.00] Modules linked in:
  [0.00] CPU: 0 PID: 0 Comm: swapper Not tainted 5.11.0-1014-generic 
#14-Ubuntu
  [0.00] epc: ffe0920e ra : ffe09384 sp : 
ffe001803d30
  [0.00]  gp : ffe001a14240 tp : ffe00180f440 t0 : 
ffe07fe38000
  [0.00]  t1 : ffe0019cd338 t2 :  s0 : 
ffe001803d70
  [0.00]  s1 :  a0 : ffe095aa a1 : 
0001
  [0.00]  a2 : 0002 a3 :  a4 : 

  [0.00]  a5 :  a6 : 0004 a7 : 
52464e43
  [0.00]  s2 : 0002 s3 : 0001 s4 : 

  [0.00]  s5 :  s6 :  s7 : 

  [0.00]  s8 : ffe001a170c0 s9 : 0001 s10: 
0001
  [0.00]  s11: fffcc5d0 t3 : 0068 t4 : 
000b
  [0.00]  t5 : ffe0019cd3e0 t6 : ffe001803cd8
  [0.00] status: 00020100 badaddr: 0513f187 cause: 
0002
  [0.00] ---[ end trace f67eb9af4d8d492b ]---
  [0.00] Kernel panic - not syncing: Attempted to kill the idle task!
  [   

[Kernel-packages] [Bug 1934548] Re: RISC-V: Illegal instruction

2021-08-10 Thread Ubuntu Foundations Team Bug Bot
** Tags added: patch

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-riscv in Ubuntu.
https://bugs.launchpad.net/bugs/1934548

Title:
  RISC-V: Illegal instruction

Status in linux-riscv package in Ubuntu:
  Confirmed
Status in linux-riscv-5.11 package in Ubuntu:
  Confirmed

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://forums.sifive.com/t/u-boot-says-unhandled-exception-illegal-instruction/4898

  ```
  Starting kernel ...

  [0.00] Linux version 5.11.0-1014-generic 
(buildd@riscv64-qemu-lcy01-084) (gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0, GNU ld 
(GNU Binutils for Ubuntu) 2.36.1) #14-Ubuntu SMP Wed Jun 30 17:56:50 UTC 2021 
(Ubuntu 5.11.0-1014.14-generic 5.11.22)
  [0.00] OF: fdt: Ignoring memory range 0x8000 - 0x8020
  [0.00] earlycon: sifive0 at MMIO 0x1001 (options '')
  [0.00] printk: bootconsole [sifive0] enabled
  [0.00] efi: UEFI not found.
  [0.00] Initial ramdisk at: 0x(ptrval) (183422976 bytes)
  [0.00] cma: Reserved 32 MiB at 0xfe00
  [0.00] Zone ranges:
  [0.00]   DMA32[mem 0x8020-0x]
  [0.00]   Normal   [mem 0x0001-0x00047fff]
  [0.00] Movable zone start for each node
  [0.00] Early memory node ranges
  [0.00]   node   0: [mem 0x8020-0x00047fff]
  [0.00] Initmem setup node 0 [mem 
0x8020-0x00047fff]
  [0.00]   DMA32 zone: 512 pages in unavailable ranges
  [0.00] SBI specification v0.2 detected
  [0.00] SBI implementation ID=0x1 Version=0x9
  [0.00] SBI v0.2 TIME extension detected
  [0.00] SBI v0.2 IPI extension detected
  [0.00] SBI v0.2 RFENCE extension detected
  [0.00] software IO TLB: mapped [mem 
0xfa00-0xfe00] (64MB)
  [0.00] SBI v0.2 HSM extension detected
  [0.00] CPU with hartid=0 is not available
  [0.00] CPU with hartid=0 is not available
  [0.00] riscv: ISA extensions acdfim
  [0.00] riscv: ELF capabilities acdfim
  [0.00] percpu: Embedded 26 pages/cpu s69272 r8192 d29032 u106496
  [0.00] Built 1 zonelists, mobility grouping on.  Total pages: 4128264
  [0.00] Kernel command line: root=/dev/nvme0n1p1 ro earlycon
  [0.00] Dentry cache hash table entries: 2097152 (order: 12, 16777216 
bytes, linear)
  [0.00] Inode-cache hash table entries: 1048576 (order: 11, 8388608 
bytes, linear)
  [0.00] Sorting __ex_table...
  [0.00] mem auto-init: stack:off, heap alloc:on, heap free:off
  [0.00] Memory: 16165452K/16775168K available (9854K kernel code, 
5763K rwdata, 8192K rodata, 2519K init, 997K bss, 576948K reserved, 32768K 
cma-reserved)
  [0.00] random: get_random_u64 called from kmem_cache_open+0x36/0x338 
with crng_init=0
  [0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
  [0.00] ftrace: allocating 38893 entries in 152 pages
  [0.00] Oops - illegal instruction [#1]
  [0.00] Modules linked in:
  [0.00] CPU: 0 PID: 0 Comm: swapper Not tainted 5.11.0-1014-generic 
#14-Ubuntu
  [0.00] epc: ffe0920e ra : ffe09384 sp : 
ffe001803d30
  [0.00]  gp : ffe001a14240 tp : ffe00180f440 t0 : 
ffe07fe38000
  [0.00]  t1 : ffe0019cd338 t2 :  s0 : 
ffe001803d70
  [0.00]  s1 :  a0 : ffe095aa a1 : 
0001
  [0.00]  a2 : 0002 a3 :  a4 : 

  [0.00]  a5 :  a6 : 0004 a7 : 
52464e43
  [0.00]  s2 : 0002 s3 : 0001 s4 : 

  [0.00]  s5 :  s6 :  s7 : 

  [0.00]  s8 : ffe001a170c0 s9 : 0001 s10: 
0001
  [0.00]  s11: fffcc5d0 t3 : 0068 t4 : 
000b
  [0.00]  t5 : ffe0019cd3e0 t6 : ffe001803cd8
  [0.00] status: 00020100 badaddr: 0513f187 cause: 
0002
  [0.00] ---[ end trace f67eb9af4d8d492b ]---
  [0.00] Kernel panic - not syncing: Attempted to kill the idle task!
  [0.00] ---[ end Kernel panic - not syncing: Attempted to kill the 
idle task! ]---
  ```

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-riscv/+bug/1934548/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-pa

[Kernel-packages] [Bug 1934548] Re: RISC-V: Illegal instruction

2021-08-10 Thread Thadeu Lima de Souza Cascardo
Hey, @xnox.

Can you try the attached patch and see if that works out? It's possible
that other functions need to be marked notrace.

Cascardo.

** Patch added: "fix for hirsute:linux-riscv"
   
https://bugs.launchpad.net/ubuntu/+source/linux-riscv-5.11/+bug/1934548/+attachment/5517152/+files/0001-UBUNTU-SAUCE-RISC-V-prevent-sbi_send_cpumask_ipi-rac.patch

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-riscv in Ubuntu.
https://bugs.launchpad.net/bugs/1934548

Title:
  RISC-V: Illegal instruction

Status in linux-riscv package in Ubuntu:
  Confirmed
Status in linux-riscv-5.11 package in Ubuntu:
  Confirmed

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://forums.sifive.com/t/u-boot-says-unhandled-exception-illegal-instruction/4898

  ```
  Starting kernel ...

  [0.00] Linux version 5.11.0-1014-generic 
(buildd@riscv64-qemu-lcy01-084) (gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0, GNU ld 
(GNU Binutils for Ubuntu) 2.36.1) #14-Ubuntu SMP Wed Jun 30 17:56:50 UTC 2021 
(Ubuntu 5.11.0-1014.14-generic 5.11.22)
  [0.00] OF: fdt: Ignoring memory range 0x8000 - 0x8020
  [0.00] earlycon: sifive0 at MMIO 0x1001 (options '')
  [0.00] printk: bootconsole [sifive0] enabled
  [0.00] efi: UEFI not found.
  [0.00] Initial ramdisk at: 0x(ptrval) (183422976 bytes)
  [0.00] cma: Reserved 32 MiB at 0xfe00
  [0.00] Zone ranges:
  [0.00]   DMA32[mem 0x8020-0x]
  [0.00]   Normal   [mem 0x0001-0x00047fff]
  [0.00] Movable zone start for each node
  [0.00] Early memory node ranges
  [0.00]   node   0: [mem 0x8020-0x00047fff]
  [0.00] Initmem setup node 0 [mem 
0x8020-0x00047fff]
  [0.00]   DMA32 zone: 512 pages in unavailable ranges
  [0.00] SBI specification v0.2 detected
  [0.00] SBI implementation ID=0x1 Version=0x9
  [0.00] SBI v0.2 TIME extension detected
  [0.00] SBI v0.2 IPI extension detected
  [0.00] SBI v0.2 RFENCE extension detected
  [0.00] software IO TLB: mapped [mem 
0xfa00-0xfe00] (64MB)
  [0.00] SBI v0.2 HSM extension detected
  [0.00] CPU with hartid=0 is not available
  [0.00] CPU with hartid=0 is not available
  [0.00] riscv: ISA extensions acdfim
  [0.00] riscv: ELF capabilities acdfim
  [0.00] percpu: Embedded 26 pages/cpu s69272 r8192 d29032 u106496
  [0.00] Built 1 zonelists, mobility grouping on.  Total pages: 4128264
  [0.00] Kernel command line: root=/dev/nvme0n1p1 ro earlycon
  [0.00] Dentry cache hash table entries: 2097152 (order: 12, 16777216 
bytes, linear)
  [0.00] Inode-cache hash table entries: 1048576 (order: 11, 8388608 
bytes, linear)
  [0.00] Sorting __ex_table...
  [0.00] mem auto-init: stack:off, heap alloc:on, heap free:off
  [0.00] Memory: 16165452K/16775168K available (9854K kernel code, 
5763K rwdata, 8192K rodata, 2519K init, 997K bss, 576948K reserved, 32768K 
cma-reserved)
  [0.00] random: get_random_u64 called from kmem_cache_open+0x36/0x338 
with crng_init=0
  [0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
  [0.00] ftrace: allocating 38893 entries in 152 pages
  [0.00] Oops - illegal instruction [#1]
  [0.00] Modules linked in:
  [0.00] CPU: 0 PID: 0 Comm: swapper Not tainted 5.11.0-1014-generic 
#14-Ubuntu
  [0.00] epc: ffe0920e ra : ffe09384 sp : 
ffe001803d30
  [0.00]  gp : ffe001a14240 tp : ffe00180f440 t0 : 
ffe07fe38000
  [0.00]  t1 : ffe0019cd338 t2 :  s0 : 
ffe001803d70
  [0.00]  s1 :  a0 : ffe095aa a1 : 
0001
  [0.00]  a2 : 0002 a3 :  a4 : 

  [0.00]  a5 :  a6 : 0004 a7 : 
52464e43
  [0.00]  s2 : 0002 s3 : 0001 s4 : 

  [0.00]  s5 :  s6 :  s7 : 

  [0.00]  s8 : ffe001a170c0 s9 : 0001 s10: 
0001
  [0.00]  s11: fffcc5d0 t3 : 0068 t4 : 
000b
  [0.00]  t5 : ffe0019cd3e0 t6 : ffe001803cd8
  [0.00] status: 00020100 badaddr: 0513f187 cause: 
0002
  [0.00] ---[ end trace f67eb9af4d8d492b ]---
  [0.00] Kernel panic - not syncing: Attempted to kill the idle task!
  [0.00] ---[ end Kernel panic - not s

[Kernel-packages] [Bug 1934548] Re: RISC-V: Illegal instruction

2021-08-10 Thread Thadeu Lima de Souza Cascardo
The alternative theory here is that this is always breaking at
sbi_send_cpumask_ipi, which is being patched at:

ffe091e2:   f097auipc   ra,0xf
ffe091e6:   dfe080e7jalr-514(ra) # 
ffe07fe0 

I even found ffe091e2 as one of the addresses being patched
(look at __start_mcount_loc). And it happens that the patching code will
end up calling flush_icache_range (which is really flush_icache_all).
That, in turn, will end up doing some form of IPI.

So, possibly there is a race involved here, where the IPI code is being
executed after it is patched, but before icache is flushed. It's hard to
think that this segment lies inside a cache boundary, but there is
certainly something else necessary for the sync here.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-riscv in Ubuntu.
https://bugs.launchpad.net/bugs/1934548

Title:
  RISC-V: Illegal instruction

Status in linux-riscv package in Ubuntu:
  Confirmed
Status in linux-riscv-5.11 package in Ubuntu:
  Confirmed

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://forums.sifive.com/t/u-boot-says-unhandled-exception-illegal-instruction/4898

  ```
  Starting kernel ...

  [0.00] Linux version 5.11.0-1014-generic 
(buildd@riscv64-qemu-lcy01-084) (gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0, GNU ld 
(GNU Binutils for Ubuntu) 2.36.1) #14-Ubuntu SMP Wed Jun 30 17:56:50 UTC 2021 
(Ubuntu 5.11.0-1014.14-generic 5.11.22)
  [0.00] OF: fdt: Ignoring memory range 0x8000 - 0x8020
  [0.00] earlycon: sifive0 at MMIO 0x1001 (options '')
  [0.00] printk: bootconsole [sifive0] enabled
  [0.00] efi: UEFI not found.
  [0.00] Initial ramdisk at: 0x(ptrval) (183422976 bytes)
  [0.00] cma: Reserved 32 MiB at 0xfe00
  [0.00] Zone ranges:
  [0.00]   DMA32[mem 0x8020-0x]
  [0.00]   Normal   [mem 0x0001-0x00047fff]
  [0.00] Movable zone start for each node
  [0.00] Early memory node ranges
  [0.00]   node   0: [mem 0x8020-0x00047fff]
  [0.00] Initmem setup node 0 [mem 
0x8020-0x00047fff]
  [0.00]   DMA32 zone: 512 pages in unavailable ranges
  [0.00] SBI specification v0.2 detected
  [0.00] SBI implementation ID=0x1 Version=0x9
  [0.00] SBI v0.2 TIME extension detected
  [0.00] SBI v0.2 IPI extension detected
  [0.00] SBI v0.2 RFENCE extension detected
  [0.00] software IO TLB: mapped [mem 
0xfa00-0xfe00] (64MB)
  [0.00] SBI v0.2 HSM extension detected
  [0.00] CPU with hartid=0 is not available
  [0.00] CPU with hartid=0 is not available
  [0.00] riscv: ISA extensions acdfim
  [0.00] riscv: ELF capabilities acdfim
  [0.00] percpu: Embedded 26 pages/cpu s69272 r8192 d29032 u106496
  [0.00] Built 1 zonelists, mobility grouping on.  Total pages: 4128264
  [0.00] Kernel command line: root=/dev/nvme0n1p1 ro earlycon
  [0.00] Dentry cache hash table entries: 2097152 (order: 12, 16777216 
bytes, linear)
  [0.00] Inode-cache hash table entries: 1048576 (order: 11, 8388608 
bytes, linear)
  [0.00] Sorting __ex_table...
  [0.00] mem auto-init: stack:off, heap alloc:on, heap free:off
  [0.00] Memory: 16165452K/16775168K available (9854K kernel code, 
5763K rwdata, 8192K rodata, 2519K init, 997K bss, 576948K reserved, 32768K 
cma-reserved)
  [0.00] random: get_random_u64 called from kmem_cache_open+0x36/0x338 
with crng_init=0
  [0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
  [0.00] ftrace: allocating 38893 entries in 152 pages
  [0.00] Oops - illegal instruction [#1]
  [0.00] Modules linked in:
  [0.00] CPU: 0 PID: 0 Comm: swapper Not tainted 5.11.0-1014-generic 
#14-Ubuntu
  [0.00] epc: ffe0920e ra : ffe09384 sp : 
ffe001803d30
  [0.00]  gp : ffe001a14240 tp : ffe00180f440 t0 : 
ffe07fe38000
  [0.00]  t1 : ffe0019cd338 t2 :  s0 : 
ffe001803d70
  [0.00]  s1 :  a0 : ffe095aa a1 : 
0001
  [0.00]  a2 : 0002 a3 :  a4 : 

  [0.00]  a5 :  a6 : 0004 a7 : 
52464e43
  [0.00]  s2 : 0002 s3 : 0001 s4 : 

  [0.00]  s5 :  s6 :  s7 : 

  [0.00]  s8 : ffe001a170c0 s9 : 0001 s10

[Kernel-packages] [Bug 1934548] Re: RISC-V: Illegal instruction

2021-08-10 Thread Thadeu Lima de Souza Cascardo
Looking at the crashing address (by doing objdump on the vmlinux from
the ddeb), it lands on the middle of an instruction.

ffe09204:   99c080e7jalr-1636(ra) # 
ffe06b9c 
ffe09208:   0180e797auipc   a5,0x180e
ffe0920c:   f187b783ld  a5,-232(a5) # 
ffe001817120 <__sbi_send_ipi>
ffe09210:   fd040513addia0,s0,-48
ffe09214:   9782jalra5
ffe09216:   fd843703ld  a4,-40(s0)

Perhaps, the patching done by ftrace is causing this.

There is afc76b8b80112189b6f11e67e19cf58301944814 ("riscv: Using
PATCHABLE_FUNCTION_ENTRY instead of MCOUNT"), which doesn't refer to any
bug that is fixed, but changes the way patches are applied. So, perhaps,
this would help fix the issue. Possibly worth the try until this is
properly debugged. I can't test it, otherwise, so @xnox, would you be
able to try this upstream commit?

Cascardo.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-riscv in Ubuntu.
https://bugs.launchpad.net/bugs/1934548

Title:
  RISC-V: Illegal instruction

Status in linux-riscv package in Ubuntu:
  Confirmed
Status in linux-riscv-5.11 package in Ubuntu:
  Confirmed

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://forums.sifive.com/t/u-boot-says-unhandled-exception-illegal-instruction/4898

  ```
  Starting kernel ...

  [0.00] Linux version 5.11.0-1014-generic 
(buildd@riscv64-qemu-lcy01-084) (gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0, GNU ld 
(GNU Binutils for Ubuntu) 2.36.1) #14-Ubuntu SMP Wed Jun 30 17:56:50 UTC 2021 
(Ubuntu 5.11.0-1014.14-generic 5.11.22)
  [0.00] OF: fdt: Ignoring memory range 0x8000 - 0x8020
  [0.00] earlycon: sifive0 at MMIO 0x1001 (options '')
  [0.00] printk: bootconsole [sifive0] enabled
  [0.00] efi: UEFI not found.
  [0.00] Initial ramdisk at: 0x(ptrval) (183422976 bytes)
  [0.00] cma: Reserved 32 MiB at 0xfe00
  [0.00] Zone ranges:
  [0.00]   DMA32[mem 0x8020-0x]
  [0.00]   Normal   [mem 0x0001-0x00047fff]
  [0.00] Movable zone start for each node
  [0.00] Early memory node ranges
  [0.00]   node   0: [mem 0x8020-0x00047fff]
  [0.00] Initmem setup node 0 [mem 
0x8020-0x00047fff]
  [0.00]   DMA32 zone: 512 pages in unavailable ranges
  [0.00] SBI specification v0.2 detected
  [0.00] SBI implementation ID=0x1 Version=0x9
  [0.00] SBI v0.2 TIME extension detected
  [0.00] SBI v0.2 IPI extension detected
  [0.00] SBI v0.2 RFENCE extension detected
  [0.00] software IO TLB: mapped [mem 
0xfa00-0xfe00] (64MB)
  [0.00] SBI v0.2 HSM extension detected
  [0.00] CPU with hartid=0 is not available
  [0.00] CPU with hartid=0 is not available
  [0.00] riscv: ISA extensions acdfim
  [0.00] riscv: ELF capabilities acdfim
  [0.00] percpu: Embedded 26 pages/cpu s69272 r8192 d29032 u106496
  [0.00] Built 1 zonelists, mobility grouping on.  Total pages: 4128264
  [0.00] Kernel command line: root=/dev/nvme0n1p1 ro earlycon
  [0.00] Dentry cache hash table entries: 2097152 (order: 12, 16777216 
bytes, linear)
  [0.00] Inode-cache hash table entries: 1048576 (order: 11, 8388608 
bytes, linear)
  [0.00] Sorting __ex_table...
  [0.00] mem auto-init: stack:off, heap alloc:on, heap free:off
  [0.00] Memory: 16165452K/16775168K available (9854K kernel code, 
5763K rwdata, 8192K rodata, 2519K init, 997K bss, 576948K reserved, 32768K 
cma-reserved)
  [0.00] random: get_random_u64 called from kmem_cache_open+0x36/0x338 
with crng_init=0
  [0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
  [0.00] ftrace: allocating 38893 entries in 152 pages
  [0.00] Oops - illegal instruction [#1]
  [0.00] Modules linked in:
  [0.00] CPU: 0 PID: 0 Comm: swapper Not tainted 5.11.0-1014-generic 
#14-Ubuntu
  [0.00] epc: ffe0920e ra : ffe09384 sp : 
ffe001803d30
  [0.00]  gp : ffe001a14240 tp : ffe00180f440 t0 : 
ffe07fe38000
  [0.00]  t1 : ffe0019cd338 t2 :  s0 : 
ffe001803d70
  [0.00]  s1 :  a0 : ffe095aa a1 : 
0001
  [0.00]  a2 : 0002 a3 :  a4 : 

  [0.00]  a5 :  a6 : 0004 a7 : 
52464e43
  [

[Kernel-packages] [Bug 1934548] Re: RISC-V: Illegal instruction

2021-08-10 Thread Dimitri John Ledkov
https://people.canonical.com/~xnox/lp1934548/

findings published at above location. I am giving up at this point and
need to handover to someone else.

Is there a way to attach gdb over jtag to unmatched board whilst it is 
attempting to boot?
Is there a way to analyze the vmlinuz image to figure out what is supposed to 
be at the crashing addresses?

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-riscv in Ubuntu.
https://bugs.launchpad.net/bugs/1934548

Title:
  RISC-V: Illegal instruction

Status in linux-riscv package in Ubuntu:
  Confirmed
Status in linux-riscv-5.11 package in Ubuntu:
  Confirmed

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://forums.sifive.com/t/u-boot-says-unhandled-exception-illegal-instruction/4898

  ```
  Starting kernel ...

  [0.00] Linux version 5.11.0-1014-generic 
(buildd@riscv64-qemu-lcy01-084) (gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0, GNU ld 
(GNU Binutils for Ubuntu) 2.36.1) #14-Ubuntu SMP Wed Jun 30 17:56:50 UTC 2021 
(Ubuntu 5.11.0-1014.14-generic 5.11.22)
  [0.00] OF: fdt: Ignoring memory range 0x8000 - 0x8020
  [0.00] earlycon: sifive0 at MMIO 0x1001 (options '')
  [0.00] printk: bootconsole [sifive0] enabled
  [0.00] efi: UEFI not found.
  [0.00] Initial ramdisk at: 0x(ptrval) (183422976 bytes)
  [0.00] cma: Reserved 32 MiB at 0xfe00
  [0.00] Zone ranges:
  [0.00]   DMA32[mem 0x8020-0x]
  [0.00]   Normal   [mem 0x0001-0x00047fff]
  [0.00] Movable zone start for each node
  [0.00] Early memory node ranges
  [0.00]   node   0: [mem 0x8020-0x00047fff]
  [0.00] Initmem setup node 0 [mem 
0x8020-0x00047fff]
  [0.00]   DMA32 zone: 512 pages in unavailable ranges
  [0.00] SBI specification v0.2 detected
  [0.00] SBI implementation ID=0x1 Version=0x9
  [0.00] SBI v0.2 TIME extension detected
  [0.00] SBI v0.2 IPI extension detected
  [0.00] SBI v0.2 RFENCE extension detected
  [0.00] software IO TLB: mapped [mem 
0xfa00-0xfe00] (64MB)
  [0.00] SBI v0.2 HSM extension detected
  [0.00] CPU with hartid=0 is not available
  [0.00] CPU with hartid=0 is not available
  [0.00] riscv: ISA extensions acdfim
  [0.00] riscv: ELF capabilities acdfim
  [0.00] percpu: Embedded 26 pages/cpu s69272 r8192 d29032 u106496
  [0.00] Built 1 zonelists, mobility grouping on.  Total pages: 4128264
  [0.00] Kernel command line: root=/dev/nvme0n1p1 ro earlycon
  [0.00] Dentry cache hash table entries: 2097152 (order: 12, 16777216 
bytes, linear)
  [0.00] Inode-cache hash table entries: 1048576 (order: 11, 8388608 
bytes, linear)
  [0.00] Sorting __ex_table...
  [0.00] mem auto-init: stack:off, heap alloc:on, heap free:off
  [0.00] Memory: 16165452K/16775168K available (9854K kernel code, 
5763K rwdata, 8192K rodata, 2519K init, 997K bss, 576948K reserved, 32768K 
cma-reserved)
  [0.00] random: get_random_u64 called from kmem_cache_open+0x36/0x338 
with crng_init=0
  [0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
  [0.00] ftrace: allocating 38893 entries in 152 pages
  [0.00] Oops - illegal instruction [#1]
  [0.00] Modules linked in:
  [0.00] CPU: 0 PID: 0 Comm: swapper Not tainted 5.11.0-1014-generic 
#14-Ubuntu
  [0.00] epc: ffe0920e ra : ffe09384 sp : 
ffe001803d30
  [0.00]  gp : ffe001a14240 tp : ffe00180f440 t0 : 
ffe07fe38000
  [0.00]  t1 : ffe0019cd338 t2 :  s0 : 
ffe001803d70
  [0.00]  s1 :  a0 : ffe095aa a1 : 
0001
  [0.00]  a2 : 0002 a3 :  a4 : 

  [0.00]  a5 :  a6 : 0004 a7 : 
52464e43
  [0.00]  s2 : 0002 s3 : 0001 s4 : 

  [0.00]  s5 :  s6 :  s7 : 

  [0.00]  s8 : ffe001a170c0 s9 : 0001 s10: 
0001
  [0.00]  s11: fffcc5d0 t3 : 0068 t4 : 
000b
  [0.00]  t5 : ffe0019cd3e0 t6 : ffe001803cd8
  [0.00] status: 00020100 badaddr: 0513f187 cause: 
0002
  [0.00] ---[ end trace f67eb9af4d8d492b ]---
  [0.00] Kernel panic - not syncing: Attempted to kill the idle task!
  [0.00] ---[ end Kernel panic - not synci

[Kernel-packages] [Bug 1934548] Re: RISC-V: Illegal instruction

2021-08-09 Thread Dimitri John Ledkov
added more pr_info calls inside ftrace_update_code.. and things boot
now for me. =

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-riscv in Ubuntu.
https://bugs.launchpad.net/bugs/1934548

Title:
  RISC-V: Illegal instruction

Status in linux-riscv package in Ubuntu:
  Confirmed
Status in linux-riscv-5.11 package in Ubuntu:
  Confirmed

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://forums.sifive.com/t/u-boot-says-unhandled-exception-illegal-instruction/4898

  ```
  Starting kernel ...

  [0.00] Linux version 5.11.0-1014-generic 
(buildd@riscv64-qemu-lcy01-084) (gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0, GNU ld 
(GNU Binutils for Ubuntu) 2.36.1) #14-Ubuntu SMP Wed Jun 30 17:56:50 UTC 2021 
(Ubuntu 5.11.0-1014.14-generic 5.11.22)
  [0.00] OF: fdt: Ignoring memory range 0x8000 - 0x8020
  [0.00] earlycon: sifive0 at MMIO 0x1001 (options '')
  [0.00] printk: bootconsole [sifive0] enabled
  [0.00] efi: UEFI not found.
  [0.00] Initial ramdisk at: 0x(ptrval) (183422976 bytes)
  [0.00] cma: Reserved 32 MiB at 0xfe00
  [0.00] Zone ranges:
  [0.00]   DMA32[mem 0x8020-0x]
  [0.00]   Normal   [mem 0x0001-0x00047fff]
  [0.00] Movable zone start for each node
  [0.00] Early memory node ranges
  [0.00]   node   0: [mem 0x8020-0x00047fff]
  [0.00] Initmem setup node 0 [mem 
0x8020-0x00047fff]
  [0.00]   DMA32 zone: 512 pages in unavailable ranges
  [0.00] SBI specification v0.2 detected
  [0.00] SBI implementation ID=0x1 Version=0x9
  [0.00] SBI v0.2 TIME extension detected
  [0.00] SBI v0.2 IPI extension detected
  [0.00] SBI v0.2 RFENCE extension detected
  [0.00] software IO TLB: mapped [mem 
0xfa00-0xfe00] (64MB)
  [0.00] SBI v0.2 HSM extension detected
  [0.00] CPU with hartid=0 is not available
  [0.00] CPU with hartid=0 is not available
  [0.00] riscv: ISA extensions acdfim
  [0.00] riscv: ELF capabilities acdfim
  [0.00] percpu: Embedded 26 pages/cpu s69272 r8192 d29032 u106496
  [0.00] Built 1 zonelists, mobility grouping on.  Total pages: 4128264
  [0.00] Kernel command line: root=/dev/nvme0n1p1 ro earlycon
  [0.00] Dentry cache hash table entries: 2097152 (order: 12, 16777216 
bytes, linear)
  [0.00] Inode-cache hash table entries: 1048576 (order: 11, 8388608 
bytes, linear)
  [0.00] Sorting __ex_table...
  [0.00] mem auto-init: stack:off, heap alloc:on, heap free:off
  [0.00] Memory: 16165452K/16775168K available (9854K kernel code, 
5763K rwdata, 8192K rodata, 2519K init, 997K bss, 576948K reserved, 32768K 
cma-reserved)
  [0.00] random: get_random_u64 called from kmem_cache_open+0x36/0x338 
with crng_init=0
  [0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
  [0.00] ftrace: allocating 38893 entries in 152 pages
  [0.00] Oops - illegal instruction [#1]
  [0.00] Modules linked in:
  [0.00] CPU: 0 PID: 0 Comm: swapper Not tainted 5.11.0-1014-generic 
#14-Ubuntu
  [0.00] epc: ffe0920e ra : ffe09384 sp : 
ffe001803d30
  [0.00]  gp : ffe001a14240 tp : ffe00180f440 t0 : 
ffe07fe38000
  [0.00]  t1 : ffe0019cd338 t2 :  s0 : 
ffe001803d70
  [0.00]  s1 :  a0 : ffe095aa a1 : 
0001
  [0.00]  a2 : 0002 a3 :  a4 : 

  [0.00]  a5 :  a6 : 0004 a7 : 
52464e43
  [0.00]  s2 : 0002 s3 : 0001 s4 : 

  [0.00]  s5 :  s6 :  s7 : 

  [0.00]  s8 : ffe001a170c0 s9 : 0001 s10: 
0001
  [0.00]  s11: fffcc5d0 t3 : 0068 t4 : 
000b
  [0.00]  t5 : ffe0019cd3e0 t6 : ffe001803cd8
  [0.00] status: 00020100 badaddr: 0513f187 cause: 
0002
  [0.00] ---[ end trace f67eb9af4d8d492b ]---
  [0.00] Kernel panic - not syncing: Attempted to kill the idle task!
  [0.00] ---[ end Kernel panic - not syncing: Attempted to kill the 
idle task! ]---
  ```

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-riscv/+bug/1934548/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-p

[Kernel-packages] [Bug 1934548] Re: RISC-V: Illegal instruction

2021-08-09 Thread Dimitri John Ledkov
[0.00] XNOX kernel/trace/ftrace.c(6255) ftrace_process_locs:
[0.00] XNOX kernel/trace/ftrace.c(6272) ftrace_process_locs:
[0.00] Oops - illegal instruction [#1]
[0.00] Modules linked in:
[0.00] CPU: 0 PID: 0 Comm: swapper Not tainted 5.11.0-1015-generic 
#16~20.04.1
[0.00] epc: ffe0920e ra : ffe09384 sp : ffe001603d30

if (!mod)
local_irq_save(flags);
pr_info("XNOX %s(%d) %s:\n", __FILE__, __LINE__, __func__);
ftrace_update_code(mod, start_pg);

So it is blowing up in ftrace_update_code i think

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-riscv in Ubuntu.
https://bugs.launchpad.net/bugs/1934548

Title:
  RISC-V: Illegal instruction

Status in linux-riscv package in Ubuntu:
  Confirmed
Status in linux-riscv-5.11 package in Ubuntu:
  Confirmed

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://forums.sifive.com/t/u-boot-says-unhandled-exception-illegal-instruction/4898

  ```
  Starting kernel ...

  [0.00] Linux version 5.11.0-1014-generic 
(buildd@riscv64-qemu-lcy01-084) (gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0, GNU ld 
(GNU Binutils for Ubuntu) 2.36.1) #14-Ubuntu SMP Wed Jun 30 17:56:50 UTC 2021 
(Ubuntu 5.11.0-1014.14-generic 5.11.22)
  [0.00] OF: fdt: Ignoring memory range 0x8000 - 0x8020
  [0.00] earlycon: sifive0 at MMIO 0x1001 (options '')
  [0.00] printk: bootconsole [sifive0] enabled
  [0.00] efi: UEFI not found.
  [0.00] Initial ramdisk at: 0x(ptrval) (183422976 bytes)
  [0.00] cma: Reserved 32 MiB at 0xfe00
  [0.00] Zone ranges:
  [0.00]   DMA32[mem 0x8020-0x]
  [0.00]   Normal   [mem 0x0001-0x00047fff]
  [0.00] Movable zone start for each node
  [0.00] Early memory node ranges
  [0.00]   node   0: [mem 0x8020-0x00047fff]
  [0.00] Initmem setup node 0 [mem 
0x8020-0x00047fff]
  [0.00]   DMA32 zone: 512 pages in unavailable ranges
  [0.00] SBI specification v0.2 detected
  [0.00] SBI implementation ID=0x1 Version=0x9
  [0.00] SBI v0.2 TIME extension detected
  [0.00] SBI v0.2 IPI extension detected
  [0.00] SBI v0.2 RFENCE extension detected
  [0.00] software IO TLB: mapped [mem 
0xfa00-0xfe00] (64MB)
  [0.00] SBI v0.2 HSM extension detected
  [0.00] CPU with hartid=0 is not available
  [0.00] CPU with hartid=0 is not available
  [0.00] riscv: ISA extensions acdfim
  [0.00] riscv: ELF capabilities acdfim
  [0.00] percpu: Embedded 26 pages/cpu s69272 r8192 d29032 u106496
  [0.00] Built 1 zonelists, mobility grouping on.  Total pages: 4128264
  [0.00] Kernel command line: root=/dev/nvme0n1p1 ro earlycon
  [0.00] Dentry cache hash table entries: 2097152 (order: 12, 16777216 
bytes, linear)
  [0.00] Inode-cache hash table entries: 1048576 (order: 11, 8388608 
bytes, linear)
  [0.00] Sorting __ex_table...
  [0.00] mem auto-init: stack:off, heap alloc:on, heap free:off
  [0.00] Memory: 16165452K/16775168K available (9854K kernel code, 
5763K rwdata, 8192K rodata, 2519K init, 997K bss, 576948K reserved, 32768K 
cma-reserved)
  [0.00] random: get_random_u64 called from kmem_cache_open+0x36/0x338 
with crng_init=0
  [0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
  [0.00] ftrace: allocating 38893 entries in 152 pages
  [0.00] Oops - illegal instruction [#1]
  [0.00] Modules linked in:
  [0.00] CPU: 0 PID: 0 Comm: swapper Not tainted 5.11.0-1014-generic 
#14-Ubuntu
  [0.00] epc: ffe0920e ra : ffe09384 sp : 
ffe001803d30
  [0.00]  gp : ffe001a14240 tp : ffe00180f440 t0 : 
ffe07fe38000
  [0.00]  t1 : ffe0019cd338 t2 :  s0 : 
ffe001803d70
  [0.00]  s1 :  a0 : ffe095aa a1 : 
0001
  [0.00]  a2 : 0002 a3 :  a4 : 

  [0.00]  a5 :  a6 : 0004 a7 : 
52464e43
  [0.00]  s2 : 0002 s3 : 0001 s4 : 

  [0.00]  s5 :  s6 :  s7 : 

  [0.00]  s8 : ffe001a170c0 s9 : 0001 s10: 
0001
  [0.00]  s11: fffcc5d0 t3 : 0068 t4 : 
000b
  [0.00]  t5 : ffe0019cd3e0 t6 : ffe001803cd8
  [0.00] stat

[Kernel-packages] [Bug 1934548] Re: RISC-V: Illegal instruction

2021-08-09 Thread William Wilson
I've downloaded the daily build from August 9, and have reproduced this
5 times out of 5 boot attempts. Attached is my serial output:

https://paste.ubuntu.com/p/gfpb8tmk9h/

I have the board revision ending in 3A0

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-riscv in Ubuntu.
https://bugs.launchpad.net/bugs/1934548

Title:
  RISC-V: Illegal instruction

Status in linux-riscv package in Ubuntu:
  Confirmed
Status in linux-riscv-5.11 package in Ubuntu:
  Confirmed

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://forums.sifive.com/t/u-boot-says-unhandled-exception-illegal-instruction/4898

  ```
  Starting kernel ...

  [0.00] Linux version 5.11.0-1014-generic 
(buildd@riscv64-qemu-lcy01-084) (gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0, GNU ld 
(GNU Binutils for Ubuntu) 2.36.1) #14-Ubuntu SMP Wed Jun 30 17:56:50 UTC 2021 
(Ubuntu 5.11.0-1014.14-generic 5.11.22)
  [0.00] OF: fdt: Ignoring memory range 0x8000 - 0x8020
  [0.00] earlycon: sifive0 at MMIO 0x1001 (options '')
  [0.00] printk: bootconsole [sifive0] enabled
  [0.00] efi: UEFI not found.
  [0.00] Initial ramdisk at: 0x(ptrval) (183422976 bytes)
  [0.00] cma: Reserved 32 MiB at 0xfe00
  [0.00] Zone ranges:
  [0.00]   DMA32[mem 0x8020-0x]
  [0.00]   Normal   [mem 0x0001-0x00047fff]
  [0.00] Movable zone start for each node
  [0.00] Early memory node ranges
  [0.00]   node   0: [mem 0x8020-0x00047fff]
  [0.00] Initmem setup node 0 [mem 
0x8020-0x00047fff]
  [0.00]   DMA32 zone: 512 pages in unavailable ranges
  [0.00] SBI specification v0.2 detected
  [0.00] SBI implementation ID=0x1 Version=0x9
  [0.00] SBI v0.2 TIME extension detected
  [0.00] SBI v0.2 IPI extension detected
  [0.00] SBI v0.2 RFENCE extension detected
  [0.00] software IO TLB: mapped [mem 
0xfa00-0xfe00] (64MB)
  [0.00] SBI v0.2 HSM extension detected
  [0.00] CPU with hartid=0 is not available
  [0.00] CPU with hartid=0 is not available
  [0.00] riscv: ISA extensions acdfim
  [0.00] riscv: ELF capabilities acdfim
  [0.00] percpu: Embedded 26 pages/cpu s69272 r8192 d29032 u106496
  [0.00] Built 1 zonelists, mobility grouping on.  Total pages: 4128264
  [0.00] Kernel command line: root=/dev/nvme0n1p1 ro earlycon
  [0.00] Dentry cache hash table entries: 2097152 (order: 12, 16777216 
bytes, linear)
  [0.00] Inode-cache hash table entries: 1048576 (order: 11, 8388608 
bytes, linear)
  [0.00] Sorting __ex_table...
  [0.00] mem auto-init: stack:off, heap alloc:on, heap free:off
  [0.00] Memory: 16165452K/16775168K available (9854K kernel code, 
5763K rwdata, 8192K rodata, 2519K init, 997K bss, 576948K reserved, 32768K 
cma-reserved)
  [0.00] random: get_random_u64 called from kmem_cache_open+0x36/0x338 
with crng_init=0
  [0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
  [0.00] ftrace: allocating 38893 entries in 152 pages
  [0.00] Oops - illegal instruction [#1]
  [0.00] Modules linked in:
  [0.00] CPU: 0 PID: 0 Comm: swapper Not tainted 5.11.0-1014-generic 
#14-Ubuntu
  [0.00] epc: ffe0920e ra : ffe09384 sp : 
ffe001803d30
  [0.00]  gp : ffe001a14240 tp : ffe00180f440 t0 : 
ffe07fe38000
  [0.00]  t1 : ffe0019cd338 t2 :  s0 : 
ffe001803d70
  [0.00]  s1 :  a0 : ffe095aa a1 : 
0001
  [0.00]  a2 : 0002 a3 :  a4 : 

  [0.00]  a5 :  a6 : 0004 a7 : 
52464e43
  [0.00]  s2 : 0002 s3 : 0001 s4 : 

  [0.00]  s5 :  s6 :  s7 : 

  [0.00]  s8 : ffe001a170c0 s9 : 0001 s10: 
0001
  [0.00]  s11: fffcc5d0 t3 : 0068 t4 : 
000b
  [0.00]  t5 : ffe0019cd3e0 t6 : ffe001803cd8
  [0.00] status: 00020100 badaddr: 0513f187 cause: 
0002
  [0.00] ---[ end trace f67eb9af4d8d492b ]---
  [0.00] Kernel panic - not syncing: Attempted to kill the idle task!
  [0.00] ---[ end Kernel panic - not syncing: Attempted to kill the 
idle task! ]---
  ```

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/l

[Kernel-packages] [Bug 1934548] Re: RISC-V: Illegal instruction

2021-08-09 Thread Paul Larson
That's the image I'm using, and it's reproducible every single time for
me

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-riscv in Ubuntu.
https://bugs.launchpad.net/bugs/1934548

Title:
  RISC-V: Illegal instruction

Status in linux-riscv package in Ubuntu:
  Confirmed
Status in linux-riscv-5.11 package in Ubuntu:
  Confirmed

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://forums.sifive.com/t/u-boot-says-unhandled-exception-illegal-instruction/4898

  ```
  Starting kernel ...

  [0.00] Linux version 5.11.0-1014-generic 
(buildd@riscv64-qemu-lcy01-084) (gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0, GNU ld 
(GNU Binutils for Ubuntu) 2.36.1) #14-Ubuntu SMP Wed Jun 30 17:56:50 UTC 2021 
(Ubuntu 5.11.0-1014.14-generic 5.11.22)
  [0.00] OF: fdt: Ignoring memory range 0x8000 - 0x8020
  [0.00] earlycon: sifive0 at MMIO 0x1001 (options '')
  [0.00] printk: bootconsole [sifive0] enabled
  [0.00] efi: UEFI not found.
  [0.00] Initial ramdisk at: 0x(ptrval) (183422976 bytes)
  [0.00] cma: Reserved 32 MiB at 0xfe00
  [0.00] Zone ranges:
  [0.00]   DMA32[mem 0x8020-0x]
  [0.00]   Normal   [mem 0x0001-0x00047fff]
  [0.00] Movable zone start for each node
  [0.00] Early memory node ranges
  [0.00]   node   0: [mem 0x8020-0x00047fff]
  [0.00] Initmem setup node 0 [mem 
0x8020-0x00047fff]
  [0.00]   DMA32 zone: 512 pages in unavailable ranges
  [0.00] SBI specification v0.2 detected
  [0.00] SBI implementation ID=0x1 Version=0x9
  [0.00] SBI v0.2 TIME extension detected
  [0.00] SBI v0.2 IPI extension detected
  [0.00] SBI v0.2 RFENCE extension detected
  [0.00] software IO TLB: mapped [mem 
0xfa00-0xfe00] (64MB)
  [0.00] SBI v0.2 HSM extension detected
  [0.00] CPU with hartid=0 is not available
  [0.00] CPU with hartid=0 is not available
  [0.00] riscv: ISA extensions acdfim
  [0.00] riscv: ELF capabilities acdfim
  [0.00] percpu: Embedded 26 pages/cpu s69272 r8192 d29032 u106496
  [0.00] Built 1 zonelists, mobility grouping on.  Total pages: 4128264
  [0.00] Kernel command line: root=/dev/nvme0n1p1 ro earlycon
  [0.00] Dentry cache hash table entries: 2097152 (order: 12, 16777216 
bytes, linear)
  [0.00] Inode-cache hash table entries: 1048576 (order: 11, 8388608 
bytes, linear)
  [0.00] Sorting __ex_table...
  [0.00] mem auto-init: stack:off, heap alloc:on, heap free:off
  [0.00] Memory: 16165452K/16775168K available (9854K kernel code, 
5763K rwdata, 8192K rodata, 2519K init, 997K bss, 576948K reserved, 32768K 
cma-reserved)
  [0.00] random: get_random_u64 called from kmem_cache_open+0x36/0x338 
with crng_init=0
  [0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
  [0.00] ftrace: allocating 38893 entries in 152 pages
  [0.00] Oops - illegal instruction [#1]
  [0.00] Modules linked in:
  [0.00] CPU: 0 PID: 0 Comm: swapper Not tainted 5.11.0-1014-generic 
#14-Ubuntu
  [0.00] epc: ffe0920e ra : ffe09384 sp : 
ffe001803d30
  [0.00]  gp : ffe001a14240 tp : ffe00180f440 t0 : 
ffe07fe38000
  [0.00]  t1 : ffe0019cd338 t2 :  s0 : 
ffe001803d70
  [0.00]  s1 :  a0 : ffe095aa a1 : 
0001
  [0.00]  a2 : 0002 a3 :  a4 : 

  [0.00]  a5 :  a6 : 0004 a7 : 
52464e43
  [0.00]  s2 : 0002 s3 : 0001 s4 : 

  [0.00]  s5 :  s6 :  s7 : 

  [0.00]  s8 : ffe001a170c0 s9 : 0001 s10: 
0001
  [0.00]  s11: fffcc5d0 t3 : 0068 t4 : 
000b
  [0.00]  t5 : ffe0019cd3e0 t6 : ffe001803cd8
  [0.00] status: 00020100 badaddr: 0513f187 cause: 
0002
  [0.00] ---[ end trace f67eb9af4d8d492b ]---
  [0.00] Kernel panic - not syncing: Attempted to kill the idle task!
  [0.00] ---[ end Kernel panic - not syncing: Attempted to kill the 
idle task! ]---
  ```

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-riscv/+bug/1934548/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launch

[Kernel-packages] [Bug 1934548] Re: RISC-V: Illegal instruction

2021-08-09 Thread Dimitri John Ledkov
I am failing to reliably reproduce this issue.
At first I have experienced this too. When I tried to bisect it and install 
multiple kernel abis they are all booting fine.

So I was able to fail booting 1014 1015 1016 abis. And then they started
to boot fine.

I wonder if there is some requirements in terms of cold boot; hard
reset; soft boot. Or if the SD-card is like busted, and comes back to
life if one writes the kernel image to a different location based on
wear leveling.

At the moment we are preparing for point release of Ubuntu 20.04 with
unmatched support. It currently has the 1015 abi too.

If you can, it would be nice if people can test Unmatched image from
https://cdimage.ubuntu.com/ubuntu-server/focal/daily-
preinstalled/pending/ and report if it is working for them or not.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-riscv in Ubuntu.
https://bugs.launchpad.net/bugs/1934548

Title:
  RISC-V: Illegal instruction

Status in linux-riscv package in Ubuntu:
  Confirmed
Status in linux-riscv-5.11 package in Ubuntu:
  Confirmed

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://forums.sifive.com/t/u-boot-says-unhandled-exception-illegal-instruction/4898

  ```
  Starting kernel ...

  [0.00] Linux version 5.11.0-1014-generic 
(buildd@riscv64-qemu-lcy01-084) (gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0, GNU ld 
(GNU Binutils for Ubuntu) 2.36.1) #14-Ubuntu SMP Wed Jun 30 17:56:50 UTC 2021 
(Ubuntu 5.11.0-1014.14-generic 5.11.22)
  [0.00] OF: fdt: Ignoring memory range 0x8000 - 0x8020
  [0.00] earlycon: sifive0 at MMIO 0x1001 (options '')
  [0.00] printk: bootconsole [sifive0] enabled
  [0.00] efi: UEFI not found.
  [0.00] Initial ramdisk at: 0x(ptrval) (183422976 bytes)
  [0.00] cma: Reserved 32 MiB at 0xfe00
  [0.00] Zone ranges:
  [0.00]   DMA32[mem 0x8020-0x]
  [0.00]   Normal   [mem 0x0001-0x00047fff]
  [0.00] Movable zone start for each node
  [0.00] Early memory node ranges
  [0.00]   node   0: [mem 0x8020-0x00047fff]
  [0.00] Initmem setup node 0 [mem 
0x8020-0x00047fff]
  [0.00]   DMA32 zone: 512 pages in unavailable ranges
  [0.00] SBI specification v0.2 detected
  [0.00] SBI implementation ID=0x1 Version=0x9
  [0.00] SBI v0.2 TIME extension detected
  [0.00] SBI v0.2 IPI extension detected
  [0.00] SBI v0.2 RFENCE extension detected
  [0.00] software IO TLB: mapped [mem 
0xfa00-0xfe00] (64MB)
  [0.00] SBI v0.2 HSM extension detected
  [0.00] CPU with hartid=0 is not available
  [0.00] CPU with hartid=0 is not available
  [0.00] riscv: ISA extensions acdfim
  [0.00] riscv: ELF capabilities acdfim
  [0.00] percpu: Embedded 26 pages/cpu s69272 r8192 d29032 u106496
  [0.00] Built 1 zonelists, mobility grouping on.  Total pages: 4128264
  [0.00] Kernel command line: root=/dev/nvme0n1p1 ro earlycon
  [0.00] Dentry cache hash table entries: 2097152 (order: 12, 16777216 
bytes, linear)
  [0.00] Inode-cache hash table entries: 1048576 (order: 11, 8388608 
bytes, linear)
  [0.00] Sorting __ex_table...
  [0.00] mem auto-init: stack:off, heap alloc:on, heap free:off
  [0.00] Memory: 16165452K/16775168K available (9854K kernel code, 
5763K rwdata, 8192K rodata, 2519K init, 997K bss, 576948K reserved, 32768K 
cma-reserved)
  [0.00] random: get_random_u64 called from kmem_cache_open+0x36/0x338 
with crng_init=0
  [0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
  [0.00] ftrace: allocating 38893 entries in 152 pages
  [0.00] Oops - illegal instruction [#1]
  [0.00] Modules linked in:
  [0.00] CPU: 0 PID: 0 Comm: swapper Not tainted 5.11.0-1014-generic 
#14-Ubuntu
  [0.00] epc: ffe0920e ra : ffe09384 sp : 
ffe001803d30
  [0.00]  gp : ffe001a14240 tp : ffe00180f440 t0 : 
ffe07fe38000
  [0.00]  t1 : ffe0019cd338 t2 :  s0 : 
ffe001803d70
  [0.00]  s1 :  a0 : ffe095aa a1 : 
0001
  [0.00]  a2 : 0002 a3 :  a4 : 

  [0.00]  a5 :  a6 : 0004 a7 : 
52464e43
  [0.00]  s2 : 0002 s3 : 0001 s4 : 

  [0.00]  s5 :  s6 :  s7 : 

  [0.00]  s8 : ffe001a170c0 s9 : 0001 s

[Kernel-packages] [Bug 1934548] Re: RISC-V: Illegal instruction

2021-08-06 Thread Dimitri John Ledkov
** Package changed: ubuntu => linux-riscv-5.11 (Ubuntu)

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-riscv in Ubuntu.
https://bugs.launchpad.net/bugs/1934548

Title:
  RISC-V: Illegal instruction

Status in linux-riscv package in Ubuntu:
  Confirmed
Status in linux-riscv-5.11 package in Ubuntu:
  Confirmed

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://forums.sifive.com/t/u-boot-says-unhandled-exception-illegal-instruction/4898

  ```
  Starting kernel ...

  [0.00] Linux version 5.11.0-1014-generic 
(buildd@riscv64-qemu-lcy01-084) (gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0, GNU ld 
(GNU Binutils for Ubuntu) 2.36.1) #14-Ubuntu SMP Wed Jun 30 17:56:50 UTC 2021 
(Ubuntu 5.11.0-1014.14-generic 5.11.22)
  [0.00] OF: fdt: Ignoring memory range 0x8000 - 0x8020
  [0.00] earlycon: sifive0 at MMIO 0x1001 (options '')
  [0.00] printk: bootconsole [sifive0] enabled
  [0.00] efi: UEFI not found.
  [0.00] Initial ramdisk at: 0x(ptrval) (183422976 bytes)
  [0.00] cma: Reserved 32 MiB at 0xfe00
  [0.00] Zone ranges:
  [0.00]   DMA32[mem 0x8020-0x]
  [0.00]   Normal   [mem 0x0001-0x00047fff]
  [0.00] Movable zone start for each node
  [0.00] Early memory node ranges
  [0.00]   node   0: [mem 0x8020-0x00047fff]
  [0.00] Initmem setup node 0 [mem 
0x8020-0x00047fff]
  [0.00]   DMA32 zone: 512 pages in unavailable ranges
  [0.00] SBI specification v0.2 detected
  [0.00] SBI implementation ID=0x1 Version=0x9
  [0.00] SBI v0.2 TIME extension detected
  [0.00] SBI v0.2 IPI extension detected
  [0.00] SBI v0.2 RFENCE extension detected
  [0.00] software IO TLB: mapped [mem 
0xfa00-0xfe00] (64MB)
  [0.00] SBI v0.2 HSM extension detected
  [0.00] CPU with hartid=0 is not available
  [0.00] CPU with hartid=0 is not available
  [0.00] riscv: ISA extensions acdfim
  [0.00] riscv: ELF capabilities acdfim
  [0.00] percpu: Embedded 26 pages/cpu s69272 r8192 d29032 u106496
  [0.00] Built 1 zonelists, mobility grouping on.  Total pages: 4128264
  [0.00] Kernel command line: root=/dev/nvme0n1p1 ro earlycon
  [0.00] Dentry cache hash table entries: 2097152 (order: 12, 16777216 
bytes, linear)
  [0.00] Inode-cache hash table entries: 1048576 (order: 11, 8388608 
bytes, linear)
  [0.00] Sorting __ex_table...
  [0.00] mem auto-init: stack:off, heap alloc:on, heap free:off
  [0.00] Memory: 16165452K/16775168K available (9854K kernel code, 
5763K rwdata, 8192K rodata, 2519K init, 997K bss, 576948K reserved, 32768K 
cma-reserved)
  [0.00] random: get_random_u64 called from kmem_cache_open+0x36/0x338 
with crng_init=0
  [0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
  [0.00] ftrace: allocating 38893 entries in 152 pages
  [0.00] Oops - illegal instruction [#1]
  [0.00] Modules linked in:
  [0.00] CPU: 0 PID: 0 Comm: swapper Not tainted 5.11.0-1014-generic 
#14-Ubuntu
  [0.00] epc: ffe0920e ra : ffe09384 sp : 
ffe001803d30
  [0.00]  gp : ffe001a14240 tp : ffe00180f440 t0 : 
ffe07fe38000
  [0.00]  t1 : ffe0019cd338 t2 :  s0 : 
ffe001803d70
  [0.00]  s1 :  a0 : ffe095aa a1 : 
0001
  [0.00]  a2 : 0002 a3 :  a4 : 

  [0.00]  a5 :  a6 : 0004 a7 : 
52464e43
  [0.00]  s2 : 0002 s3 : 0001 s4 : 

  [0.00]  s5 :  s6 :  s7 : 

  [0.00]  s8 : ffe001a170c0 s9 : 0001 s10: 
0001
  [0.00]  s11: fffcc5d0 t3 : 0068 t4 : 
000b
  [0.00]  t5 : ffe0019cd3e0 t6 : ffe001803cd8
  [0.00] status: 00020100 badaddr: 0513f187 cause: 
0002
  [0.00] ---[ end trace f67eb9af4d8d492b ]---
  [0.00] Kernel panic - not syncing: Attempted to kill the idle task!
  [0.00] ---[ end Kernel panic - not syncing: Attempted to kill the 
idle task! ]---
  ```

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-riscv/+bug/1934548/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe

[Kernel-packages] [Bug 1934548] Re: RISC-V: Illegal instruction

2021-07-22 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: linux-riscv (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-riscv in Ubuntu.
https://bugs.launchpad.net/bugs/1934548

Title:
  RISC-V: Illegal instruction

Status in Ubuntu:
  Confirmed
Status in linux-riscv package in Ubuntu:
  Confirmed

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://forums.sifive.com/t/u-boot-says-unhandled-exception-illegal-instruction/4898

  ```
  Starting kernel ...

  [0.00] Linux version 5.11.0-1014-generic 
(buildd@riscv64-qemu-lcy01-084) (gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0, GNU ld 
(GNU Binutils for Ubuntu) 2.36.1) #14-Ubuntu SMP Wed Jun 30 17:56:50 UTC 2021 
(Ubuntu 5.11.0-1014.14-generic 5.11.22)
  [0.00] OF: fdt: Ignoring memory range 0x8000 - 0x8020
  [0.00] earlycon: sifive0 at MMIO 0x1001 (options '')
  [0.00] printk: bootconsole [sifive0] enabled
  [0.00] efi: UEFI not found.
  [0.00] Initial ramdisk at: 0x(ptrval) (183422976 bytes)
  [0.00] cma: Reserved 32 MiB at 0xfe00
  [0.00] Zone ranges:
  [0.00]   DMA32[mem 0x8020-0x]
  [0.00]   Normal   [mem 0x0001-0x00047fff]
  [0.00] Movable zone start for each node
  [0.00] Early memory node ranges
  [0.00]   node   0: [mem 0x8020-0x00047fff]
  [0.00] Initmem setup node 0 [mem 
0x8020-0x00047fff]
  [0.00]   DMA32 zone: 512 pages in unavailable ranges
  [0.00] SBI specification v0.2 detected
  [0.00] SBI implementation ID=0x1 Version=0x9
  [0.00] SBI v0.2 TIME extension detected
  [0.00] SBI v0.2 IPI extension detected
  [0.00] SBI v0.2 RFENCE extension detected
  [0.00] software IO TLB: mapped [mem 
0xfa00-0xfe00] (64MB)
  [0.00] SBI v0.2 HSM extension detected
  [0.00] CPU with hartid=0 is not available
  [0.00] CPU with hartid=0 is not available
  [0.00] riscv: ISA extensions acdfim
  [0.00] riscv: ELF capabilities acdfim
  [0.00] percpu: Embedded 26 pages/cpu s69272 r8192 d29032 u106496
  [0.00] Built 1 zonelists, mobility grouping on.  Total pages: 4128264
  [0.00] Kernel command line: root=/dev/nvme0n1p1 ro earlycon
  [0.00] Dentry cache hash table entries: 2097152 (order: 12, 16777216 
bytes, linear)
  [0.00] Inode-cache hash table entries: 1048576 (order: 11, 8388608 
bytes, linear)
  [0.00] Sorting __ex_table...
  [0.00] mem auto-init: stack:off, heap alloc:on, heap free:off
  [0.00] Memory: 16165452K/16775168K available (9854K kernel code, 
5763K rwdata, 8192K rodata, 2519K init, 997K bss, 576948K reserved, 32768K 
cma-reserved)
  [0.00] random: get_random_u64 called from kmem_cache_open+0x36/0x338 
with crng_init=0
  [0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
  [0.00] ftrace: allocating 38893 entries in 152 pages
  [0.00] Oops - illegal instruction [#1]
  [0.00] Modules linked in:
  [0.00] CPU: 0 PID: 0 Comm: swapper Not tainted 5.11.0-1014-generic 
#14-Ubuntu
  [0.00] epc: ffe0920e ra : ffe09384 sp : 
ffe001803d30
  [0.00]  gp : ffe001a14240 tp : ffe00180f440 t0 : 
ffe07fe38000
  [0.00]  t1 : ffe0019cd338 t2 :  s0 : 
ffe001803d70
  [0.00]  s1 :  a0 : ffe095aa a1 : 
0001
  [0.00]  a2 : 0002 a3 :  a4 : 

  [0.00]  a5 :  a6 : 0004 a7 : 
52464e43
  [0.00]  s2 : 0002 s3 : 0001 s4 : 

  [0.00]  s5 :  s6 :  s7 : 

  [0.00]  s8 : ffe001a170c0 s9 : 0001 s10: 
0001
  [0.00]  s11: fffcc5d0 t3 : 0068 t4 : 
000b
  [0.00]  t5 : ffe0019cd3e0 t6 : ffe001803cd8
  [0.00] status: 00020100 badaddr: 0513f187 cause: 
0002
  [0.00] ---[ end trace f67eb9af4d8d492b ]---
  [0.00] Kernel panic - not syncing: Attempted to kill the idle task!
  [0.00] ---[ end Kernel panic - not syncing: Attempted to kill the 
idle task! ]---
  ```

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1934548/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packa

[Kernel-packages] [Bug 1934548] Re: RISC-V: Illegal instruction

2021-07-22 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: ubuntu
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-riscv in Ubuntu.
https://bugs.launchpad.net/bugs/1934548

Title:
  RISC-V: Illegal instruction

Status in Ubuntu:
  Confirmed
Status in linux-riscv package in Ubuntu:
  Confirmed

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://forums.sifive.com/t/u-boot-says-unhandled-exception-illegal-instruction/4898

  ```
  Starting kernel ...

  [0.00] Linux version 5.11.0-1014-generic 
(buildd@riscv64-qemu-lcy01-084) (gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0, GNU ld 
(GNU Binutils for Ubuntu) 2.36.1) #14-Ubuntu SMP Wed Jun 30 17:56:50 UTC 2021 
(Ubuntu 5.11.0-1014.14-generic 5.11.22)
  [0.00] OF: fdt: Ignoring memory range 0x8000 - 0x8020
  [0.00] earlycon: sifive0 at MMIO 0x1001 (options '')
  [0.00] printk: bootconsole [sifive0] enabled
  [0.00] efi: UEFI not found.
  [0.00] Initial ramdisk at: 0x(ptrval) (183422976 bytes)
  [0.00] cma: Reserved 32 MiB at 0xfe00
  [0.00] Zone ranges:
  [0.00]   DMA32[mem 0x8020-0x]
  [0.00]   Normal   [mem 0x0001-0x00047fff]
  [0.00] Movable zone start for each node
  [0.00] Early memory node ranges
  [0.00]   node   0: [mem 0x8020-0x00047fff]
  [0.00] Initmem setup node 0 [mem 
0x8020-0x00047fff]
  [0.00]   DMA32 zone: 512 pages in unavailable ranges
  [0.00] SBI specification v0.2 detected
  [0.00] SBI implementation ID=0x1 Version=0x9
  [0.00] SBI v0.2 TIME extension detected
  [0.00] SBI v0.2 IPI extension detected
  [0.00] SBI v0.2 RFENCE extension detected
  [0.00] software IO TLB: mapped [mem 
0xfa00-0xfe00] (64MB)
  [0.00] SBI v0.2 HSM extension detected
  [0.00] CPU with hartid=0 is not available
  [0.00] CPU with hartid=0 is not available
  [0.00] riscv: ISA extensions acdfim
  [0.00] riscv: ELF capabilities acdfim
  [0.00] percpu: Embedded 26 pages/cpu s69272 r8192 d29032 u106496
  [0.00] Built 1 zonelists, mobility grouping on.  Total pages: 4128264
  [0.00] Kernel command line: root=/dev/nvme0n1p1 ro earlycon
  [0.00] Dentry cache hash table entries: 2097152 (order: 12, 16777216 
bytes, linear)
  [0.00] Inode-cache hash table entries: 1048576 (order: 11, 8388608 
bytes, linear)
  [0.00] Sorting __ex_table...
  [0.00] mem auto-init: stack:off, heap alloc:on, heap free:off
  [0.00] Memory: 16165452K/16775168K available (9854K kernel code, 
5763K rwdata, 8192K rodata, 2519K init, 997K bss, 576948K reserved, 32768K 
cma-reserved)
  [0.00] random: get_random_u64 called from kmem_cache_open+0x36/0x338 
with crng_init=0
  [0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
  [0.00] ftrace: allocating 38893 entries in 152 pages
  [0.00] Oops - illegal instruction [#1]
  [0.00] Modules linked in:
  [0.00] CPU: 0 PID: 0 Comm: swapper Not tainted 5.11.0-1014-generic 
#14-Ubuntu
  [0.00] epc: ffe0920e ra : ffe09384 sp : 
ffe001803d30
  [0.00]  gp : ffe001a14240 tp : ffe00180f440 t0 : 
ffe07fe38000
  [0.00]  t1 : ffe0019cd338 t2 :  s0 : 
ffe001803d70
  [0.00]  s1 :  a0 : ffe095aa a1 : 
0001
  [0.00]  a2 : 0002 a3 :  a4 : 

  [0.00]  a5 :  a6 : 0004 a7 : 
52464e43
  [0.00]  s2 : 0002 s3 : 0001 s4 : 

  [0.00]  s5 :  s6 :  s7 : 

  [0.00]  s8 : ffe001a170c0 s9 : 0001 s10: 
0001
  [0.00]  s11: fffcc5d0 t3 : 0068 t4 : 
000b
  [0.00]  t5 : ffe0019cd3e0 t6 : ffe001803cd8
  [0.00] status: 00020100 badaddr: 0513f187 cause: 
0002
  [0.00] ---[ end trace f67eb9af4d8d492b ]---
  [0.00] Kernel panic - not syncing: Attempted to kill the idle task!
  [0.00] ---[ end Kernel panic - not syncing: Attempted to kill the 
idle task! ]---
  ```

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1934548/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.laun

[Kernel-packages] [Bug 1934548] Re: RISC-V: Illegal instruction

2021-07-22 Thread Pierce Andjelkovic
This appears to be resolved in 5.11.0-1015-generic

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-riscv in Ubuntu.
https://bugs.launchpad.net/bugs/1934548

Title:
  RISC-V: Illegal instruction

Status in Ubuntu:
  New
Status in linux-riscv package in Ubuntu:
  New

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://forums.sifive.com/t/u-boot-says-unhandled-exception-illegal-instruction/4898

  ```
  Starting kernel ...

  [0.00] Linux version 5.11.0-1014-generic 
(buildd@riscv64-qemu-lcy01-084) (gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0, GNU ld 
(GNU Binutils for Ubuntu) 2.36.1) #14-Ubuntu SMP Wed Jun 30 17:56:50 UTC 2021 
(Ubuntu 5.11.0-1014.14-generic 5.11.22)
  [0.00] OF: fdt: Ignoring memory range 0x8000 - 0x8020
  [0.00] earlycon: sifive0 at MMIO 0x1001 (options '')
  [0.00] printk: bootconsole [sifive0] enabled
  [0.00] efi: UEFI not found.
  [0.00] Initial ramdisk at: 0x(ptrval) (183422976 bytes)
  [0.00] cma: Reserved 32 MiB at 0xfe00
  [0.00] Zone ranges:
  [0.00]   DMA32[mem 0x8020-0x]
  [0.00]   Normal   [mem 0x0001-0x00047fff]
  [0.00] Movable zone start for each node
  [0.00] Early memory node ranges
  [0.00]   node   0: [mem 0x8020-0x00047fff]
  [0.00] Initmem setup node 0 [mem 
0x8020-0x00047fff]
  [0.00]   DMA32 zone: 512 pages in unavailable ranges
  [0.00] SBI specification v0.2 detected
  [0.00] SBI implementation ID=0x1 Version=0x9
  [0.00] SBI v0.2 TIME extension detected
  [0.00] SBI v0.2 IPI extension detected
  [0.00] SBI v0.2 RFENCE extension detected
  [0.00] software IO TLB: mapped [mem 
0xfa00-0xfe00] (64MB)
  [0.00] SBI v0.2 HSM extension detected
  [0.00] CPU with hartid=0 is not available
  [0.00] CPU with hartid=0 is not available
  [0.00] riscv: ISA extensions acdfim
  [0.00] riscv: ELF capabilities acdfim
  [0.00] percpu: Embedded 26 pages/cpu s69272 r8192 d29032 u106496
  [0.00] Built 1 zonelists, mobility grouping on.  Total pages: 4128264
  [0.00] Kernel command line: root=/dev/nvme0n1p1 ro earlycon
  [0.00] Dentry cache hash table entries: 2097152 (order: 12, 16777216 
bytes, linear)
  [0.00] Inode-cache hash table entries: 1048576 (order: 11, 8388608 
bytes, linear)
  [0.00] Sorting __ex_table...
  [0.00] mem auto-init: stack:off, heap alloc:on, heap free:off
  [0.00] Memory: 16165452K/16775168K available (9854K kernel code, 
5763K rwdata, 8192K rodata, 2519K init, 997K bss, 576948K reserved, 32768K 
cma-reserved)
  [0.00] random: get_random_u64 called from kmem_cache_open+0x36/0x338 
with crng_init=0
  [0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
  [0.00] ftrace: allocating 38893 entries in 152 pages
  [0.00] Oops - illegal instruction [#1]
  [0.00] Modules linked in:
  [0.00] CPU: 0 PID: 0 Comm: swapper Not tainted 5.11.0-1014-generic 
#14-Ubuntu
  [0.00] epc: ffe0920e ra : ffe09384 sp : 
ffe001803d30
  [0.00]  gp : ffe001a14240 tp : ffe00180f440 t0 : 
ffe07fe38000
  [0.00]  t1 : ffe0019cd338 t2 :  s0 : 
ffe001803d70
  [0.00]  s1 :  a0 : ffe095aa a1 : 
0001
  [0.00]  a2 : 0002 a3 :  a4 : 

  [0.00]  a5 :  a6 : 0004 a7 : 
52464e43
  [0.00]  s2 : 0002 s3 : 0001 s4 : 

  [0.00]  s5 :  s6 :  s7 : 

  [0.00]  s8 : ffe001a170c0 s9 : 0001 s10: 
0001
  [0.00]  s11: fffcc5d0 t3 : 0068 t4 : 
000b
  [0.00]  t5 : ffe0019cd3e0 t6 : ffe001803cd8
  [0.00] status: 00020100 badaddr: 0513f187 cause: 
0002
  [0.00] ---[ end trace f67eb9af4d8d492b ]---
  [0.00] Kernel panic - not syncing: Attempted to kill the idle task!
  [0.00] ---[ end Kernel panic - not syncing: Attempted to kill the 
idle task! ]---
  ```

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1934548/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://h

[Kernel-packages] [Bug 1934548] Re: RISC-V: Illegal instruction

2021-07-02 Thread Jessica Clarke
** Package changed: linux (Ubuntu) => linux-riscv (Ubuntu)

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-riscv in Ubuntu.
https://bugs.launchpad.net/bugs/1934548

Title:
  RISC-V: Illegal instruction

Status in Ubuntu:
  New
Status in linux-riscv package in Ubuntu:
  New

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://forums.sifive.com/t/u-boot-says-unhandled-exception-illegal-instruction/4898

  ```
  Starting kernel ...

  [0.00] Linux version 5.11.0-1014-generic 
(buildd@riscv64-qemu-lcy01-084) (gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0, GNU ld 
(GNU Binutils for Ubuntu) 2.36.1) #14-Ubuntu SMP Wed Jun 30 17:56:50 UTC 2021 
(Ubuntu 5.11.0-1014.14-generic 5.11.22)
  [0.00] OF: fdt: Ignoring memory range 0x8000 - 0x8020
  [0.00] earlycon: sifive0 at MMIO 0x1001 (options '')
  [0.00] printk: bootconsole [sifive0] enabled
  [0.00] efi: UEFI not found.
  [0.00] Initial ramdisk at: 0x(ptrval) (183422976 bytes)
  [0.00] cma: Reserved 32 MiB at 0xfe00
  [0.00] Zone ranges:
  [0.00]   DMA32[mem 0x8020-0x]
  [0.00]   Normal   [mem 0x0001-0x00047fff]
  [0.00] Movable zone start for each node
  [0.00] Early memory node ranges
  [0.00]   node   0: [mem 0x8020-0x00047fff]
  [0.00] Initmem setup node 0 [mem 
0x8020-0x00047fff]
  [0.00]   DMA32 zone: 512 pages in unavailable ranges
  [0.00] SBI specification v0.2 detected
  [0.00] SBI implementation ID=0x1 Version=0x9
  [0.00] SBI v0.2 TIME extension detected
  [0.00] SBI v0.2 IPI extension detected
  [0.00] SBI v0.2 RFENCE extension detected
  [0.00] software IO TLB: mapped [mem 
0xfa00-0xfe00] (64MB)
  [0.00] SBI v0.2 HSM extension detected
  [0.00] CPU with hartid=0 is not available
  [0.00] CPU with hartid=0 is not available
  [0.00] riscv: ISA extensions acdfim
  [0.00] riscv: ELF capabilities acdfim
  [0.00] percpu: Embedded 26 pages/cpu s69272 r8192 d29032 u106496
  [0.00] Built 1 zonelists, mobility grouping on.  Total pages: 4128264
  [0.00] Kernel command line: root=/dev/nvme0n1p1 ro earlycon
  [0.00] Dentry cache hash table entries: 2097152 (order: 12, 16777216 
bytes, linear)
  [0.00] Inode-cache hash table entries: 1048576 (order: 11, 8388608 
bytes, linear)
  [0.00] Sorting __ex_table...
  [0.00] mem auto-init: stack:off, heap alloc:on, heap free:off
  [0.00] Memory: 16165452K/16775168K available (9854K kernel code, 
5763K rwdata, 8192K rodata, 2519K init, 997K bss, 576948K reserved, 32768K 
cma-reserved)
  [0.00] random: get_random_u64 called from kmem_cache_open+0x36/0x338 
with crng_init=0
  [0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
  [0.00] ftrace: allocating 38893 entries in 152 pages
  [0.00] Oops - illegal instruction [#1]
  [0.00] Modules linked in:
  [0.00] CPU: 0 PID: 0 Comm: swapper Not tainted 5.11.0-1014-generic 
#14-Ubuntu
  [0.00] epc: ffe0920e ra : ffe09384 sp : 
ffe001803d30
  [0.00]  gp : ffe001a14240 tp : ffe00180f440 t0 : 
ffe07fe38000
  [0.00]  t1 : ffe0019cd338 t2 :  s0 : 
ffe001803d70
  [0.00]  s1 :  a0 : ffe095aa a1 : 
0001
  [0.00]  a2 : 0002 a3 :  a4 : 

  [0.00]  a5 :  a6 : 0004 a7 : 
52464e43
  [0.00]  s2 : 0002 s3 : 0001 s4 : 

  [0.00]  s5 :  s6 :  s7 : 

  [0.00]  s8 : ffe001a170c0 s9 : 0001 s10: 
0001
  [0.00]  s11: fffcc5d0 t3 : 0068 t4 : 
000b
  [0.00]  t5 : ffe0019cd3e0 t6 : ffe001803cd8
  [0.00] status: 00020100 badaddr: 0513f187 cause: 
0002
  [0.00] ---[ end trace f67eb9af4d8d492b ]---
  [0.00] Kernel panic - not syncing: Attempted to kill the idle task!
  [0.00] ---[ end Kernel panic - not syncing: Attempted to kill the 
idle task! ]---
  ```

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1934548/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : ht

[Kernel-packages] [Bug 1934548] Re: RISC-V: Illegal instruction

2021-07-02 Thread Pierce Andjelkovic
** Project changed: charm-nrpe => linux-kernel-headers

** Also affects: ubuntu
   Importance: Undecided
   Status: New

** Tags added: sifive

** Tags added: rv64 rv64gc

** Also affects: linux (Ubuntu)
   Importance: Undecided
   Status: New

** No longer affects: linux-kernel-headers

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1934548

Title:
  RISC-V: Illegal instruction

Status in Ubuntu:
  New
Status in linux package in Ubuntu:
  New

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://forums.sifive.com/t/u-boot-says-unhandled-exception-illegal-instruction/4898

  ```
  Starting kernel ...

  [0.00] Linux version 5.11.0-1014-generic 
(buildd@riscv64-qemu-lcy01-084) (gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0, GNU ld 
(GNU Binutils for Ubuntu) 2.36.1) #14-Ubuntu SMP Wed Jun 30 17:56:50 UTC 2021 
(Ubuntu 5.11.0-1014.14-generic 5.11.22)
  [0.00] OF: fdt: Ignoring memory range 0x8000 - 0x8020
  [0.00] earlycon: sifive0 at MMIO 0x1001 (options '')
  [0.00] printk: bootconsole [sifive0] enabled
  [0.00] efi: UEFI not found.
  [0.00] Initial ramdisk at: 0x(ptrval) (183422976 bytes)
  [0.00] cma: Reserved 32 MiB at 0xfe00
  [0.00] Zone ranges:
  [0.00]   DMA32[mem 0x8020-0x]
  [0.00]   Normal   [mem 0x0001-0x00047fff]
  [0.00] Movable zone start for each node
  [0.00] Early memory node ranges
  [0.00]   node   0: [mem 0x8020-0x00047fff]
  [0.00] Initmem setup node 0 [mem 
0x8020-0x00047fff]
  [0.00]   DMA32 zone: 512 pages in unavailable ranges
  [0.00] SBI specification v0.2 detected
  [0.00] SBI implementation ID=0x1 Version=0x9
  [0.00] SBI v0.2 TIME extension detected
  [0.00] SBI v0.2 IPI extension detected
  [0.00] SBI v0.2 RFENCE extension detected
  [0.00] software IO TLB: mapped [mem 
0xfa00-0xfe00] (64MB)
  [0.00] SBI v0.2 HSM extension detected
  [0.00] CPU with hartid=0 is not available
  [0.00] CPU with hartid=0 is not available
  [0.00] riscv: ISA extensions acdfim
  [0.00] riscv: ELF capabilities acdfim
  [0.00] percpu: Embedded 26 pages/cpu s69272 r8192 d29032 u106496
  [0.00] Built 1 zonelists, mobility grouping on.  Total pages: 4128264
  [0.00] Kernel command line: root=/dev/nvme0n1p1 ro earlycon
  [0.00] Dentry cache hash table entries: 2097152 (order: 12, 16777216 
bytes, linear)
  [0.00] Inode-cache hash table entries: 1048576 (order: 11, 8388608 
bytes, linear)
  [0.00] Sorting __ex_table...
  [0.00] mem auto-init: stack:off, heap alloc:on, heap free:off
  [0.00] Memory: 16165452K/16775168K available (9854K kernel code, 
5763K rwdata, 8192K rodata, 2519K init, 997K bss, 576948K reserved, 32768K 
cma-reserved)
  [0.00] random: get_random_u64 called from kmem_cache_open+0x36/0x338 
with crng_init=0
  [0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
  [0.00] ftrace: allocating 38893 entries in 152 pages
  [0.00] Oops - illegal instruction [#1]
  [0.00] Modules linked in:
  [0.00] CPU: 0 PID: 0 Comm: swapper Not tainted 5.11.0-1014-generic 
#14-Ubuntu
  [0.00] epc: ffe0920e ra : ffe09384 sp : 
ffe001803d30
  [0.00]  gp : ffe001a14240 tp : ffe00180f440 t0 : 
ffe07fe38000
  [0.00]  t1 : ffe0019cd338 t2 :  s0 : 
ffe001803d70
  [0.00]  s1 :  a0 : ffe095aa a1 : 
0001
  [0.00]  a2 : 0002 a3 :  a4 : 

  [0.00]  a5 :  a6 : 0004 a7 : 
52464e43
  [0.00]  s2 : 0002 s3 : 0001 s4 : 

  [0.00]  s5 :  s6 :  s7 : 

  [0.00]  s8 : ffe001a170c0 s9 : 0001 s10: 
0001
  [0.00]  s11: fffcc5d0 t3 : 0068 t4 : 
000b
  [0.00]  t5 : ffe0019cd3e0 t6 : ffe001803cd8
  [0.00] status: 00020100 badaddr: 0513f187 cause: 
0002
  [0.00] ---[ end trace f67eb9af4d8d492b ]---
  [0.00] Kernel panic - not syncing: Attempted to kill the idle task!
  [0.00] ---[ end Kernel panic - not syncing: Attempted to kill the 
idle task! ]---
  ```

To manage notifications about this bug go to:
https://bugs.l