Port-RISCV archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
VisionFive 2 hangs at boot with NVMe
Hi!
I added a new SSD into my VisionFive 2, using the slot at the bottom.
However, now the kernel hangs during boot and eventually panics with a
"softints stuck for 16 seconds". I attached the serial console, including
"show all tstiles" to this mail.
It looks like the hang is on a kernel lock?
Disabling nvme* via userconf fixes it -- but I would like to use the disk.
The USB error message is a red herring, I think. Disabling USB makes no
difference.
Any ideas?
I would probably try a LOCKDEBUG kernel next. Or might this be a hardware
issue?
--
Benny
[ 1.0000000] mpstart
[ 1.0000000] Loaded initial symtab at 0xffffffc000869b90, strtab at 0xffffffc0008f9638, # entries 24494
[ 1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
[ 1.0000000] 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013,
[ 1.0000000] 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023,
[ 1.0000000] 2024, 2025, 2026
[ 1.0000000] The NetBSD Foundation, Inc. All rights reserved.
[ 1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[ 1.0000000] The Regents of the University of California. All rights reserved.
[ 1.0000000] NetBSD 11.99.5 (GENERIC64) #0: Tue Feb 10 09:50:23 UTC 2026
[ 1.0000000] mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/riscv/compile/GENERIC64
[ 1.0000000] total memory = 8181 MB
[ 1.0000000] avail memory = 7913 MB
[ 1.0000000] mainbus0 (root)
[ 1.0000000] simplebus0 at mainbus0: StarFive VisionFive 2 v1.3B
[ 1.0000000] simplebus1 at simplebus0
[ 1.0000000] cpus0 at simplebus0
[ 1.0000000] simplebus2 at simplebus0
[ 1.0000000] cpu0 at cpus0: SiFive 7-Series Processor (E7, S7, U7 series) imp. 4210427
[ 1.0000000] cpu1 at cpus0: SiFive 7-Series Processor (E7, S7, U7 series) imp. 4210427
[ 1.0000000] cpu2 at cpus0: SiFive 7-Series Processor (E7, S7, U7 series) imp. 4210427
[ 1.0000000] cpu3 at cpus0: SiFive 7-Series Processor (E7, S7, U7 series) imp. 4210427
[ 1.0000000] intc0 at cpu0: local interrupt controller
[ 1.0000000] intc1 at cpu1: local interrupt controller
[ 1.0000000] intc2 at cpu2: local interrupt controller
[ 1.0000000] intc3 at cpu3: local interrupt controller
[ 1.0000000] fclock0 at simplebus0: 49152000 Hz fixed clock (tdm_ext)
[ 1.0000000] fclock1 at simplebus0: 12288000 Hz fixed clock (mclk_ext)
[ 1.0000000] fclock2 at simplebus0: 12288000 Hz fixed clock (i2srx_bclk_ext)
[ 1.0000000] fclock3 at simplebus0: 192000 Hz fixed clock (i2srx_lrck_ext)
[ 1.0000000] syscon0 at simplebus1: System Controller Registers
[ 1.0000000] jh7110syscon0 at simplebus1: JH7110 STG system controller
[ 1.0000000] fclock4 at simplebus0: 24000000 Hz fixed clock (osc)
[ 1.0000000] fclock5 at simplebus0: 12288000 Hz fixed clock (i2stx_bclk_ext)
[ 1.0000000] fclock6 at simplebus0: 192000 Hz fixed clock (i2stx_lrck_ext)
[ 1.0000000] fclock7 at simplebus0: 50000000 Hz fixed clock (gmac1_rmii_refin)
[ 1.0000000] fclock8 at simplebus0: 125000000 Hz fixed clock (gmac1_rgmii_rxin)
[ 1.0000000] syscon1 at simplebus1: System Controller Registers
[ 1.0000000] fclock9 at simplebus0: 50000000 Hz fixed clock (gmac0_rmii_refin)
[ 1.0000000] fclock10 at simplebus0: 125000000 Hz fixed clock (gmac0_rgmii_rxin)
[ 1.0000000] fclock11 at simplebus0: 32768 Hz fixed clock (rtc_osc)
[ 1.0000000] fclock12 at simplebus0: 74250000 Hz fixed clock (dvp_clk)
[ 1.0000000] fclock13 at simplebus0: 297000000 Hz fixed clock (hdmitx0_pixelclk)
[ 1.0000000] jh7110clkc0 at simplebus1: JH7110 System Clock and Reset Generator
[ 1.0000000] plic0 at simplebus1: RISC-V PLIC (136 IRQs)
[ 1.0000000] jh7110pinctrl0 at simplebus1: Pin Controller
[ 1.0000000] jh7110clkc1 at simplebus1: JH7110 System-Top-Group Clock and Reset Generator
[ 1.0000000] jh7110clkc2 at simplebus1: JH7110 Always-On Clock and Reset Generator
[ 1.0000000] jh7110pinctrl1 at simplebus1: Pin Controller
[ 1.0000000] jh7110clkc3 at simplebus1: JH7110 Video Output Clock and Reset Generator
[ 1.0000000] jh7110pciephy0 at simplebus1: JH7110 PCIe PHY
[ 1.0000000] jh7110pciephy1 at simplebus1: JH7110 PCIe PHY
[ 1.0000000] ccache0 at simplebus1: L2 cache controller. 2048 KiB/64B 16-way (2048 set).
[ 1.0000000] /opp-table-0 at simplebus0 not configured
[ 1.0000000] dwiic0 at simplebus1: I2C controller
[ 1.0000000] dwiic0: interrupting on plic0 irq 50
[ 1.0000000] iic0 at dwiic0: I2C bus
[ 1.0000000] pmic (x-powers,axp15060) at iic0 addr 0x36 not configured
[ 1.0000000] jh71x0temp0 at simplebus1: JH71x0 temperature sensor
[ 1.0000000] /soc/dma-controller@16050000 at simplebus1 not configured
[ 1.0000000] /soc/phy@10200000 at simplebus1 not configured
[ 1.0000000] /soc/syscon@13030000/clock-controller at syscon0 not configured
[ 1.0000000] /soc/dma-controller@16008000 at simplebus1 not configured
[ 1.0000000] eqos0 at simplebus1: DesignWare EQOS ver 0x52 (0x41)
[ 1.0000000] eqos0: Ethernet address 6c:cf:39:00:81:5a
[ 1.0000000] mcommphy0 at eqos0 phy 0: Motorcomm YT8531 GbE PHY
[ 1.0000000] mcommphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, auto
[ 1.0000000] eqos0: interrupting on plic0 irq 7
[ 1.0000000] eqos1 at simplebus1: DesignWare EQOS ver 0x52 (0x41)
[ 1.0000000] eqos1: Ethernet address 6c:cf:39:00:81:5b
[ 1.0000000] mcommphy1 at eqos1 phy 0: Motorcomm YT8531 GbE PHY
[ 1.0000000] mcommphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, auto
[ 1.0000000] eqos1: interrupting on plic0 irq 78
[ 1.0000000] /soc/clock-controller@19810000 at simplebus1 not configured
[ 1.0000000] /soc/phy@19820000 at simplebus1 not configured
[ 1.0000000] /soc/power-controller@17030000 at simplebus1 not configured
[ 1.0000000] jh7110pcie0 at simplebus1: PCIe
[ 1.0000000] jh7110pcie0: interrupting on plic0 irq 56
[ 1.0000000] pci0 at jh7110pcie0 bus 0
[ 1.0000000] ppb0 at pci0 dev 0 function 0: vendor 1556 product 1111 (rev. 0x02)
[ 1.0000000] ppb0: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x1 @ 5.0GT/s
[ 1.0000000] pci1 at ppb0 bus 1
[ 1.0000000] xhci0 at pci1 dev 0 function 0: vendor 1106 product 3483 (rev. 0x01)
[ 1.0000000] xhci0: interrupting at plic0 irq 56
[ 1.0000000] usb0 at xhci0: USB revision 3.0
[ 1.0000000] usb1 at xhci0: USB revision 2.0
[ 1.0000000] jh7110pcie1 at simplebus1: PCIe
[ 1.0000000] jh7110pcie1: interrupting on plic0 irq 57
[ 1.0000000] pci2 at jh7110pcie1 bus 0
[ 1.0000000] ppb1 at pci2 dev 0 function 0: vendor 1556 product 1111 (rev. 0x02)
[ 1.0000000] ppb1: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x1 @ 5.0GT/s
[ 1.0000000] pci3 at ppb1 bus 1
[ 1.0000000] nvme0 at pci3 dev 0 function 0: vendor 1cc1 product 5766 (rev. 0x01)
[ 1.0000000] nvme0: NVMe 1.4
[ 1.0000000] nvme0: interrupting at plic0 irq 57
[ 1.0000000] nvme0: ADATA LEGEND 710, firmware VC404622, serial 4P3121969100
[ 1.0000000] ld4 at nvme0 nsid 1
[ 1.0000000] ld4: 238 GB, 31130 cyl, 255 head, 63 sec, 512 bytes/sect x 500118192 sectors
[ 1.0000000] /sound at simplebus0 not configured
[ 1.0000000] /soc/pwmdac@100b0000 at simplebus1 not configured
[ 1.0000000] /audio-codec at simplebus0 not configured
[ 1.0000000] /soc/timer@2000000 at simplebus1 not configured
[ 1.0000000] com0 at simplebus1: DesignWare APB UART, no fifo
[ 1.0000000] com0: console
[ 1.0000000] com0: interrupting on plic0 irq 32
[ 1.0000000] dwiic1 at simplebus1: I2C controller
[ 1.0000000] dwiic1: interrupting on plic0 irq 35
[ 1.0000000] iic1 at dwiic1: I2C bus
[ 1.0000000] dwiic2 at simplebus1: I2C controller
[ 1.0000000] dwiic2: interrupting on plic0 irq 37
[ 1.0000000] iic2 at dwiic2: I2C bus
[ 1.0000000] /soc/spi@10060000 at simplebus1 not configured
[ 1.0000000] jh71x0usb0 at simplebus1: USB
[ 1.0000000] dwiic3 at simplebus1: I2C controller
[ 1.0000000] dwiic3: interrupting on plic0 irq 51
[ 1.0000000] iic3 at dwiic3: I2C bus
[ 1.0000000] /soc/pwm@120d0000 at simplebus1 not configured
[ 1.0000000] /soc/spi@13010000 at simplebus1 not configured
[ 1.0000000] /soc/crypto@16000000 at simplebus1 not configured
[ 1.0000000] jh7110trng0 at simplebus1: JH7110 TRNG
[ 1.0000000] jh7110trng0: interrupting on plic0 irq 30
[ 1.0000000] dwcmmc0 at simplebus1: DesignWare SD/MMC
[ 1.0000000] dwcmmc0: interrupting on plic0 irq 74
[ 1.0000000] dwcmmc1 at simplebus1: DesignWare SD/MMC
[ 1.0000000] dwcmmc1: interrupting on plic0 irq 75
[ 1.0000000] /gpio-restart at simplebus0 not configured
[ 1.0000000] /soc/watchdog@13070000 at simplebus1 not configured
[ 1.0000000] xhci1 at simplebus1: cannot switch 'otg' mode to host
[ 1.0000000] /opp-table-0 at simplebus0 not configured
[ 1.0000000] /soc/dma-controller@16050000 at simplebus1 not configured
[ 1.0000000] /soc/phy@10200000 at simplebus1 not configured
[ 1.0000000] /soc/syscon@13030000/clock-controller at syscon0 not configured
[ 1.0000000] /soc/dma-controller@16008000 at simplebus1 not configured
[ 1.0000000] /soc/clock-controller@19810000 at simplebus1 not configured
[ 1.0000000] /soc/phy@19820000 at simplebus1 not configured
[ 1.0000000] /soc/power-controller@17030000 at simplebus1 not configured
[ 1.0000000] /sound at simplebus0 not configured
[ 1.0000000] /soc/pwmdac@100b0000 at simplebus1 not configured
[ 1.0000000] /audio-codec at simplebus0 not configured
[ 1.0000000] /soc/timer@2000000 at simplebus1 not configured
[ 1.0000000] /soc/spi@10060000 at simplebus1 not configured
[ 1.0000000] /soc/pwm@120d0000 at simplebus1 not configured
[ 1.0000000] /soc/spi@13010000 at simplebus1 not configured
[ 1.0000000] /soc/crypto@16000000 at simplebus1 not configured
[ 1.0000000] /gpio-restart at simplebus0 not configured
[ 1.0000000] /soc/watchdog@13070000 at simplebus1 not configured
[ 1.0000000] WARNING: system needs entropy for security; see entropy(7)
[ 1.7799865] cpu_boot_secondary_processors: starting secondary processors
[ 1.7934290] cpu_boot_secondary_processors: secondary processors hatched. 4 running
[ 1.8009637] uhub0 at usb0: NetBSD (0x0000) xHCI root hub (0x0000), class 9/0, rev 3.00/1.00, addr 0
[ 1.8099857] uhub1 at usb1: NetBSD (0x0000) xHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 0
[ 1.8199820] sdmmc0 at dwcmmc0
[ 1.8199820] sdmmc1 at dwcmmc1
[ 1.9499817] ld0 at sdmmc0: <0x45:0x0100:DA2016:0x00:0x06523c01:0x000>
[ 1.9599822] ld0: 15028 MB, 7633 cyl, 64 head, 63 sec, 512 bytes/sect x 30777344 sectors
[ 1.9699815] dk0 at ld0: "EFI", 163840 blocks at 32768, type: msdos
[ 1.9799815] dk1 at ld0: "netbsd-root", 30572544 blocks at 196608, type: ffs
[ 1.9899810] ld0: 8-bit width, 4096 KB cache, 52.000 MHz
[ 7.2599795] uhub1: device problem, disabling port 1
[ 17.0099807] panic: cpu0: softints stuck for 16 seconds
[ 17.0099807] cpu0: Begin traceback...
[ 17.0099807] have_addr: true
[ 17.0099807] addr: ffffffc294d92af0
[ 17.0099807] count: 65535
[ 17.0099807] modif:
[ 17.0099807] trace fp ffffffc294d92af0
[ 17.0099807] fp ffffffc294d92b30 vpanic() at ffffffc00035cb62 netbsd:vpanic+0x140
[ 17.0099807] fp ffffffc294d92b50 panic() at ffffffc00035cc04 netbsd:panic+0x24
[ 17.0099807] fp ffffffc294d92c10 heartbeat() at ffffffc00030a8d2 netbsd:heartbeat+0x2ea
[ 17.0099807] fp ffffffc294d92c50 hardclock() at ffffffc0002f4b04 netbsd:hardclock+0x6a
[ 17.0099807] fp ffffffc294d92c70 riscv_timer_intr() at ffffffc00000e3ac netbsd:riscv_timer_intr+0x4c
[ 17.0099807] fp ffffffc294d92ce0 intc_intr_handler() at ffffffc00001ec02 netbsd:intc_intr_handler+0xb4
[ 17.0099807] tf ffffffc294d92ce0 exception_kernexit() at ffffffc00000f784 netbsd:cpu_exception_handler+0x98
[ 17.0099807] ---- trapframe 0xffffffc294d92ce0 (288 bytes) ----
[ 17.0099807] Trapframe @ 0xffffffc294d92ce0 (cause=9 (interrupt), status=0x120, pc=0xffffffc000310ad6, va=0):
[ 17.0099807] ra =0xffffffc000310ada sp =0xffffffc294d92e00 gp =0xffffffc00096ae00
[ 17.0099807] tp = 0 t0 = 0x5 t1 = 0x5 t2 = 0x222
[ 17.0099807] s0 =0xffffffc294d92ee0 s1 = 0x1 a0 = 0 a1 = 0x222
[ 17.0099807] a2 = 0 a3 =0xffffffc00081bbc0 a4 = 0 a5 = 0
[ 17.0099807] a6 =0xffffffe23fb514c0 a7 =0xffffffffffffffff s2 =0xffffffc00081bbc0 s3 =0xffffffc00095e8c0
[ 17.0099807] s4 =0xffffffe04015c500 s5 = 0x1 s6 = 0x52 s7 =0xffffffc00000f664
[ 17.0099807] s8 =0xffffffc00095e8c0 s9 =0xffffffc000310890 s10= 0 s11=0xffffffc0009612c0
[ 17.0099807] t3 =0x1ec98ca99e6f096d t4 =0x3dd46ff4df1e3e99 t5 =0xed5268260ce3cb99 t6 =0x4d8c5d7ef3ca11b9
[ 17.0099807] ------------------------------------------------
[ 17.0099807] fp ffffffc294d92ee0 _kernel_lock() at ffffffc000310ad6 netbsd:_kernel_lock+0x128
[ 17.0099807] fp 0000000000000000 lwp_trampoline() at ffffffc00000f660 netbsd:lwp_trampoline+0x4
[ 17.0099807] cpu0: End traceback...
[ 17.0099807] Trapframe @ 0xffffffc294d929d0 (cause=3 (breakpoint), status=0x100, pc=0xffffffc000000628, va=0):
[ 17.0099807] ra =0xffffffc00035cb66 sp =0xffffffc294d92af0 gp =0xffffffc00096ae00
[ 17.0099807] tp = 0x30000000000000 t0 = 0x7 t1 =0xffffffbfffffff1a t2 = 0x222
[ 17.0099807] s0 =0xffffffc294d92b30 s1 =0xffffffc0006c09e0 a0 = 0x6 a1 = 0x2
[ 17.0099807] a2 = 0 a3 =0xffffffc00081bbc0 a4 =0xffffffc00081bbc0 a5 = 0x1
[ 17.0099807] a6 =0xfffffffffffffffe a7 = 0x5 s2 =0xffffffc0009a0578 s3 =0xffffffc294d92b58
[ 17.0099807] s4 = 0x104 s5 =0xffffffc000995618 s6 = 0 s7 = 0x9
[ 17.0099807] s8 = 0x1 s9 =0xffffffc000310890 s10= 0 s11=0xffffffc0009612c0
[ 17.0099807] t3 =0xfffffffffffffffe t4 = 0x1 t5 = 0x4 t6 =0x4d8c5d7ef3ca11b9
[ 17.0099807] kernel: breakpoint
Stopped in pid 0.113 (system) at netbsd:clear_bss+0x10: c.ebreak
db{1}> show all tstiles
PID LID COMMAND WAITING-FOR TYPE WAIT-CHANNEL
0 116 system 0 cv ffffffe04014b090
0 115 system 0 cv ffffffe040126890
0 114 system 0 cv ffffffe23eafa978
0 105 system 0 cv ffffffe040143130
0 104 system 0 cv netbsd:xc_low_pri+0x8
0 103 system 0 cv netbsd:usb_taskq+0x58
0 102 system 0 cv netbsd:usb_taskq+0x18
0 101 system 0 cv netbsd:cpu_info_store+0x1
8d0
0 30 system 0 cv netbsd:cpu_info_store+0x1
090
0 24 system 0 cv netbsd:cpu_info_store+0x8
50
0 18 system 0 cv netbsd:sysmon_task_queue_
cv
0 17 system 0 cv ffffffe23fb72948
0 16 system 0 cv ffffffe23fb72808
0 15 system 0 cv netbsd:pendfree_thread_cv
0 14 system 0 cv ffffffe23fb726c8
0 13 system 0 cv ffffffe23fb72588
0 12 system 0 cv ffffffe23fb72448
0 11 system 0 cv ffffffe23fb72308
0 10 system 0 cv ffffffe23fb721c8
0 9 system 0 cv ffffffe23ffb9728
0 8 system 0 cv netbsd:module_thread_cv
0 0 system 0 cv netbsd:xc_low_pri+0x8
Home |
Main Index |
Thread Index |
Old Index