linux-riscv.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* openSBI 1.7 causes v6.16-rc boot to hang on VisionFive 2
@ 2025-07-08  9:53 Andreas Schwab
  0 siblings, 0 replies; 7+ messages in thread
From: Andreas Schwab @ 2025-07-08  9:53 UTC (permalink / raw)
  To: linux-riscv

openSBI 1.7 implements the FWFT extension, and thus enables the use of
misaligned access exception delegation in v6.16-rc.  This causes the
boot to hang on the VisionFive 2 v1.2a.

[    0.000000][    T0] Booting Linux on hartid 3
[    0.000000][    T0] Linux version 6.16.0-rc4-2.g79f1960-default (geeko@buildhost) (gcc (SUSE Linux) 15.1.1 20250626, GNU ld (GNU Binutils; openSUSE Tumbleweed) 2.43.1.20241209-8) #1 SMP PREEMPT_DYNAMIC Thu Jul  3 03:01:03 UTC 2025 (79f1960)
[    0.000000][    T0] Machine model: StarFive VisionFive 2 v1.2A
[    0.000000][    T0] SBI specification v3.0 detected
[    0.000000][    T0] SBI implementation ID=0x1 Version=0x10007
[    0.000000][    T0] SBI TIME extension detected
[    0.000000][    T0] SBI IPI extension detected
[    0.000000][    T0] SBI RFENCE extension detected
[    0.000000][    T0] SBI SRST extension detected
[    0.000000][    T0] SBI DBCN extension detected
[    0.000000][    T0] SBI FWFT extension detected
[    0.000000][    T0] printk: debug: ignoring loglevel setting.
[    0.000000][    T0] efi: EFI v2.11 by Das U-Boot
[    0.000000][    T0] efi: RTPROP=0xfe6cc040 SMBIOS 3.0=0xff72b000 INITRD=0xfe6a9040 RNG=0xfe6a8040 MEMRESERVE=0xfe6a7040 
[    0.000000][    T0] random: crng init done
[    0.000000][    T0] Reserved memory: created CMA memory pool at 0x0000000070000000, size 512 MiB
[    0.000000][    T0] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000][    T0] OF: reserved mem: 0x0000000070000000..0x000000008fffffff (524288 KiB) map reusable linux,cma
[    0.000000][    T0] earlycon: uart0 at MMIO32 0x0000000010000000 (options '115200n8')
[    0.000000][    T0] printk: legacy bootconsole [uart0] enabled
[    0.000000][    T0] OF: reserved mem: 0x0000000040040000..0x000000004005ffff (128 KiB) nomap non-reusable mmode_resv0@40040000
[    0.000000][    T0] OF: reserved mem: 0x0000000040000000..0x000000004003ffff (256 KiB) nomap non-reusable mmode_resv1@40000000
[    0.000000][    T0] NUMA: Faking a node at [mem 0x0000000040000000-0x000000013fffffff]
[    0.000000][    T0] NODE_DATA(0) allocated [mem 0x13fdb30c0-0x13fdb587f]
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   DMA32    [mem 0x0000000040000000-0x00000000ffffffff]
[    0.000000][    T0]   Normal   [mem 0x0000000100000000-0x000000013fffffff]
[    0.000000][    T0]   Device   empty
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000040000000-0x000000004005ffff]
[    0.000000][    T0]   node   0: [mem 0x0000000040060000-0x00000000fe6cbfff]
[    0.000000][    T0]   node   0: [mem 0x00000000fe6cc000-0x00000000fe6ccfff]
[    0.000000][    T0]   node   0: [mem 0x00000000fe6cd000-0x00000000fe6cdfff]
[    0.000000][    T0]   node   0: [mem 0x00000000fe6ce000-0x00000000fe6effff]
[    0.000000][    T0]   node   0: [mem 0x00000000fe6f0000-0x00000000ff72afff]
[    0.000000][    T0]   node   0: [mem 0x00000000ff72b000-0x00000000ff72bfff]
[    0.000000][    T0]   node   0: [mem 0x00000000ff72c000-0x00000000fff26fff]
[    0.000000][    T0]   node   0: [mem 0x00000000fff27000-0x00000000fff28fff]
[    0.000000][    T0]   node   0: [mem 0x00000000fff29000-0x000000013fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000040000000-0x000000013fffffff]
[    0.000000][    T0] SBI HSM extension detected
[    0.000000][    T0] CPU with hartid=0 is not available
[    0.000000][    T0] riscv: base ISA extensions acdfim
[    0.000000][    T0] riscv: ELF capabilities acdfim
[    0.000000][    T0] Ticket spinlock: enabled
[    0.000000][    T0] percpu: Embedded 54 pages/cpu s95128 r8192 d117864 u221184
[    0.000000][    T0] pcpu-alloc: s95128 r8192 d117864 u221184 alloc=54*4096
[    0.000000][    T0] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000][    T0] Kernel command line: BOOT_IMAGE=/boot/Image-6.16.0-rc4-2.g79f1960-default root=UUID=6d8545d7-893d-46d3-ba3c-29a82457c120 ignore_loglevel earlycon mitigations=auto quiet security=selinux selinux=1 console=uart0,115200
[    0.000000][    T0] Unknown kernel command line parameters "BOOT_IMAGE=/boot/Image-6.16.0-rc4-2.g79f1960-default", will be passed to user space.
[    0.000000][    T0] printk: log buffer data + meta data: 262144 + 917504 = 1179648 bytes
[    0.000000][    T0] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000][    T0] software IO TLB: area num 4.
[    0.000000][    T0] software IO TLB: mapped [mem 0x00000000fa6a5000-0x00000000fe6a5000] (64MB)
[    0.000000][    T0] Fallback order for Node 0: 0 
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 1048576
[    0.000000][    T0] Policy zone: Normal
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000][    T0] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000][    T0] ftrace: allocating 44199 entries in 173 pages
[    0.000000][    T0] ftrace: allocated 173 pages with 5 groups
[    0.000000][    T0] Dynamic Preempt: voluntary
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] rcu:     RCU restricting CPUs from NR_CPUS=32 to nr_cpu_ids=4.
[    0.000000][    T0]  Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0]  Rude variant of Tasks RCU enabled.
[    0.000000][    T0]  Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000][    T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000][    T0] RCU Tasks: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=4.
[    0.000000][    T0] RCU Tasks Rude: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=4.
[    0.000000][    T0] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=4.
[    0.000000][    T0] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000][    T0] riscv-intc: 64 local interrupts mapped
[    0.000000][    T0] riscv: providing IPIs using SBI IPI extension
[    0.000000][    T0] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000][    T0] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 881590404240 ns
[    0.000001][    T0] sched_clock: 64 bits at 4MHz, resolution 250ns, wraps every 2199023255500ns
[    0.010196][    T0] Console: colour dummy device 80x25
[    0.016087][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 8.00 BogoMIPS (lpj=16000)
[    0.028040][    T0] pid_max: default: 32768 minimum: 301
[    0.034172][    T0] LSM: initializing lsm=lockdown,capability,landlock,yama,selinux,bpf,ima,evm
[    0.044030][    T0] landlock: Up and running.
[    0.048823][    T0] Yama: becoming mindful.
[    0.053455][    T0] SELinux:  Initializing.
[    0.059755][    T0] LSM support for eBPF active
[    0.065279][    T0] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.074247][    T0] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.085431][    T1] CPU node for /cpus/cpu@0 exist but the possible cpu range is :0-3
[    0.095708][    T1] riscv: ELF compat mode unsupported
[    0.095723][    T1] ASID allocator disabled (0 bits)
[    0.107006][    T1] rcu: Hierarchical SRCU implementation.
[    0.113042][    T1] rcu:     Max phase no-delay instances is 1000.
[    0.119883][    T1] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level
[    0.130459][    T1] Remapping and enabling EFI services.
[    0.136916][    T1] smp: Bringing up secondary CPUs ...
[    0.145836][    T1] smp: Brought up 1 node, 4 CPUs
[    0.164384][   T39] node 0 deferred pages initialised in 12ms
[    0.170794][    T1] Memory: 3417124K/4194304K available (12690K kernel code, 8597K rwdata, 12288K rodata, 8436K init, 912K bss, 247032K reserved, 524288K cma-reserved)
[    0.189211][    T1] devtmpfs: initialized
[    0.210172][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.221733][    T1] posixtimers hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.230748][    T1] futex hash table entries: 1024 (65536 bytes on 1 NUMA nodes, total 64 KiB, linear).
[    0.253706][    T1] pinctrl core: initialized pinctrl subsystem
[    0.261396][    T1] SMBIOS 3.7.0 present.
[    0.265835][    T1] DMI: starfive StarFive VisionFive 2 v1.2A/StarFive VisionFive 2 v1.2A, BIOS 2025.07 07/01/2025
[    0.277228][    T1] DMI: Memory slots populated: 0/0
[    0.287095][    T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.295476][    T1] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[    0.304118][    T1] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.313703][    T1] audit: initializing netlink subsys (disabled)
[    0.320706][   T48] audit: type=2000 audit(0.176:1): state=initialized audit_enabled=0 res=1
[    0.321517][    T1] thermal_sys: Registered thermal governor 'fair_share'
[    0.329993][    T1] thermal_sys: Registered thermal governor 'bang_bang'
[    0.337455][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.344820][    T1] thermal_sys: Registered thermal governor 'user_space'
[    0.352251][    T1] cpuidle: using governor ladder
[    0.365021][    T1] cpuidle: using governor menu
[    0.370454][    T1] SBI misaligned access exception delegation ok
[    0.377321][    T1] CCACHE: 8 banks, 16 ways, sets/bank=256, bytes/block=64
[    0.384978][    T1] CCACHE: Index of the largest way enabled: 15
[    0.392070][    T1] Serial: AMBA PL011 UART driver
[    0.403770][    T1] /soc/lcd-controller@29400000: Fixed dependency cycle(s) with /dsi_encoder
[    0.413279][    T1] /soc/lcd-controller@29400000: Fixed dependency cycle(s) with /soc/hdmi@29590000
[    0.423291][    T1] /soc/hdmi@29590000: Fixed dependency cycle(s) with /soc/lcd-controller@29400000
[    0.445038][    T1] /dsi_encoder: Fixed dependency cycle(s) with /soc/lcd-controller@29400000
[    0.454497][    T1] /soc/lcd-controller@29400000: Fixed dependency cycle(s) with /dsi_encoder
[    0.463959][    T1] /soc/lcd-controller@29400000: Fixed dependency cycle(s) with /soc/hdmi@29590000
[    0.474209][    T1] /soc/lcd-controller@29400000: Fixed dependency cycle(s) with /soc/hdmi@29590000
[    0.484257][    T1] /soc/hdmi@29590000: Fixed dependency cycle(s) with /soc/lcd-controller@29400000
[    0.495655][    T1] /soc/pcie@940000000: Fixed dependency cycle(s) with /soc/pcie@940000000/interrupt-controller
[    0.507461][    T1] /soc/pcie@9c0000000: Fixed dependency cycle(s) with /soc/pcie@9c0000000/interrupt-controller
[    0.522051][    T1] HugeTLB: allocation took 0ms with hugepage_allocation_threads=1
[    0.530496][    T1] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[    0.538725][    T1] HugeTLB: 16380 KiB vmemmap can be freed for a 1.00 GiB page
[    0.546760][    T1] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.554983][    T1] HugeTLB: 28 KiB vmemmap can be freed for a 2.00 MiB page
[    0.566084][    T1] ACPI: Interpreter disabled.
[    0.571339][    T1] iommu: Default domain type: Passthrough
[    0.578419][    T1] EDAC MC: Ver: 3.0.0
[    0.583097][    T1] efivars: Registered efivars operations
[    0.591406][    T1] NetLabel: Initializing
[    0.595925][    T1] NetLabel:  domain hash size = 128
[    0.601477][    T1] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.608542][    T1] NetLabel:  unlabeled traffic allowed by default
[    0.615452][    T1] mctp: management component transport protocol core
[    0.622629][    T1] NET: Registered PF_MCTP protocol family
[    0.629199][    T1] vgaarb: loaded
[    0.633420][    T1] clocksource: Switched to clocksource riscv_clocksource
[    0.641993][    T1] VFS: Disk quotas dquot_6.6.0
[    0.647204][    T1] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.656029][    T1] pnp: PnP ACPI: disabled
[    0.674024][    T1] NET: Registered PF_INET protocol family
[    0.680795][    T1] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.745932][    T1] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.756151][    T1] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.765554][    T1] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.775383][    T1] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
[    0.785674][    T1] TCP: Hash tables configured (established 32768 bind 32768)
[    0.794143][    T1] MPTCP token hash table entries: 4096 (order: 4, 98304 bytes, linear)
[    0.803200][    T1] UDP hash table entries: 2048 (order: 5, 131072 bytes, linear)
[    0.811638][    T1] UDP-Lite hash table entries: 2048 (order: 5, 131072 bytes, linear)
[    0.820876][    T1] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.827931][    T1] NET: Registered PF_XDP protocol family
[    0.833981][    T1] PCI: CLS 0 bytes, default 64
[    0.839407][   T12] Trying to unpack rootfs image as initramfs...
[    0.968443][    T1] Initialise system trusted keyrings
[    0.974184][    T1] Key type blacklist registered
[    0.979660][    T1] workingset: timestamp_bits=44 max_order=20 bucket_order=0
[    0.989347][    T1] integrity: Platform Keyring initialized
[    0.995540][    T1] integrity: Machine keyring initialized
[    1.113004][    T1] Key type asymmetric registered
[    1.118315][    T1] Asymmetric key parser 'x509' registered
[    1.124594][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    1.133977][    T1] io scheduler mq-deadline registered
[    1.139754][    T1] io scheduler kyber registered
[    1.145130][    T1] io scheduler bfq registered
[    1.157883][    T1] riscv-plic: interrupt-controller@c000000: mapped 136 interrupts with 4 handlers for 9 contexts.
[    1.176089][    T1] ledtrig-cpu: registered to indicate activity on CPUs
[    1.184768][    T1] SBI CPPC extension NOT detected!!
[    1.197404][    T1] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
[    1.227373][    T1] Serial: AMBA driver
[    1.241519][    T1] mousedev: PS/2 mouse device common for all mice
[    1.250393][    T1] EDAC DEVICE0: Giving out device to module Sifive ECC Manager controller sifive_edac.0: DEV sifive_edac.0 (INTERRUPT)
[    1.264395][    T1] hid: raw HID events driver (C) Jiri Kosina
[    1.271266][    T1] riscv-pmu-sbi: SBI PMU extension is available
[    1.278035][    T1] riscv-pmu-sbi: 16 firmware and 4 hardware counters
[    1.285247][    T1] riscv-pmu-sbi: Perf sampling/filtering is not supported as sscof extension is not available
[    1.297931][    T1] NET: Registered PF_INET6 protocol family
[    2.725805][   T12] Freeing initrd memory: 27320K
[    2.800047][    T1] Segment Routing with IPv6
[    2.804898][    T1] RPL Segment Routing with IPv6
[    2.810161][    T1] In-situ OAM (IOAM) with IPv6
[    2.832512][    T1] registered taskstats version 1
[    2.839398][    T1] Loading compiled-in X.509 certificates
[    2.847924][    T1] Loaded X.509 cert 'Kernel OBS Project: 1fb41512acbc8eebdf828d877e4367bf6c719af3'
[    2.910855][    T1] Demotion targets for Node 0: null
[    2.917145][    T1] Key type .fscrypt registered
[    2.922267][    T1] Key type fscrypt-provisioning registered
[    2.928939][    T1] Key type big_key registered
[    3.064969][    T1] Key type encrypted registered
[    3.070472][    T1] ima: No TPM chip found, activating TPM-bypass!
[    3.077320][    T1] Loading compiled-in module X.509 certificates
[    3.085472][    T1] Loaded X.509 cert 'Kernel OBS Project: 1fb41512acbc8eebdf828d877e4367bf6c719af3'
[    3.095549][    T1] ima: Allocated hash algorithm: sha256
[    3.101562][    T1] ima: No architecture policies found
[    3.107472][    T1] evm: Initialising EVM extended attributes:
[    3.113909][    T1] evm: security.selinux
[    3.118334][    T1] evm: security.SMACK64 (disabled)
[    3.123815][    T1] evm: security.SMACK64EXEC (disabled)
[    3.129668][    T1] evm: security.SMACK64TRANSMUTE (disabled)
[    3.136012][    T1] evm: security.SMACK64MMAP (disabled)
[    3.141889][    T1] evm: security.apparmor
[    3.146416][    T1] evm: security.ima
[    3.150463][    T1] evm: security.capability
[    3.155177][    T1] evm: HMAC attrs: 0x1
[    3.191010][    C0] CCACHE: DataError @ 0x00000000.08024BF0
[    3.197164][    C0] EDAC DEVICE0: CE: sifive_edac.0 instance: sifive_ecc0 block: sifive_ecc1 count: 1 'DatECCFix'
[    3.208484][    C0] CCACHE: DataFail @ 0x00000000.08024BFC
[    3.214529][    C0] EDAC DEVICE0: UE: sifive_edac.0 instance: sifive_ecc0 block: sifive_ecc1 count: 1 'DatECCFail'
[    3.257853][    T1] clk: Disabling unused clocks

Booting with openSBI 1.6 lets the boot to continue:

[    0.000000][    T0] Booting Linux on hartid 1
[    0.000000][    T0] Linux version 6.16.0-rc4-2.g79f1960-default (geeko@buildhost) (gcc (SUSE Linux) 15.1.1 20250626, GNU ld (GNU Binutils; openSUSE Tumbleweed) 2.43.1.20241209-8) #1 SMP PREEMPT_DYNAMIC Thu Jul  3 03:01:03 UTC 2025 (79f1960)
[    0.000000][    T0] Machine model: StarFive VisionFive 2 v1.2A
[    0.000000][    T0] SBI specification v2.0 detected
[    0.000000][    T0] SBI implementation ID=0x1 Version=0x10006
[    0.000000][    T0] SBI TIME extension detected
[    0.000000][    T0] SBI IPI extension detected
[    0.000000][    T0] SBI RFENCE extension detected
[    0.000000][    T0] SBI SRST extension detected
[    0.000000][    T0] SBI DBCN extension detected
[    0.000000][    T0] printk: debug: ignoring loglevel setting.
[    0.000000][    T0] efi: EFI v2.11 by Das U-Boot
[    0.000000][    T0] efi: RTPROP=0xfe6d2040 SMBIOS 3.0=0xff731000 INITRD=0xfe6b0040 RNG=0xfe6af040 MEMRESERVE=0xfe6ae040 
[    0.000000][    T0] random: crng init done
[    0.000000][    T0] OF: reserved mem: failed to allocate memory for node 'linux,cma': size 512 MiB
[    0.000000][    T0] cma: Reserved 16 MiB at 0x00000000fd600000
[    0.000000][    T0] earlycon: uart0 at MMIO32 0x0000000010000000 (options '115200n8')
[    0.000000][    T0] printk: legacy bootconsole [uart0] enabled
[    0.000000][    T0] OF: reserved mem: 0x0000000040040000..0x000000004005ffff (128 KiB) nomap non-reusable mmode_resv0@40040000
[    0.000000][    T0] OF: reserved mem: 0x0000000040000000..0x000000004003ffff (256 KiB) nomap non-reusable mmode_resv1@40000000
[    0.000000][    T0] NUMA: Faking a node at [mem 0x0000000040000000-0x000000013fffffff]
[    0.000000][    T0] NODE_DATA(0) allocated [mem 0x13fdb30c0-0x13fdb587f]
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   DMA32    [mem 0x0000000040000000-0x00000000ffffffff]
[    0.000000][    T0]   Normal   [mem 0x0000000100000000-0x000000013fffffff]
[    0.000000][    T0]   Device   empty
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000040000000-0x000000004005ffff]
[    0.000000][    T0]   node   0: [mem 0x0000000040060000-0x00000000fe6d1fff]
[    0.000000][    T0]   node   0: [mem 0x00000000fe6d2000-0x00000000fe6d2fff]
[    0.000000][    T0]   node   0: [mem 0x00000000fe6d3000-0x00000000fe6d3fff]
[    0.000000][    T0]   node   0: [mem 0x00000000fe6d4000-0x00000000fe6f5fff]
[    0.000000][    T0]   node   0: [mem 0x00000000fe6f6000-0x00000000ff730fff]
[    0.000000][    T0]   node   0: [mem 0x00000000ff731000-0x00000000ff731fff]
[    0.000000][    T0]   node   0: [mem 0x00000000ff732000-0x00000000fff2cfff]
[    0.000000][    T0]   node   0: [mem 0x00000000fff2d000-0x00000000fff2efff]
[    0.000000][    T0]   node   0: [mem 0x00000000fff2f000-0x000000013fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000040000000-0x000000013fffffff]
[    0.000000][    T0] SBI HSM extension detected
[    0.000000][    T0] CPU with hartid=0 is not available
[    0.000000][    T0] riscv: base ISA extensions acdfim
[    0.000000][    T0] riscv: ELF capabilities acdfim
[    0.000000][    T0] Ticket spinlock: enabled
[    0.000000][    T0] percpu: Embedded 54 pages/cpu s95128 r8192 d117864 u221184
[    0.000000][    T0] pcpu-alloc: s95128 r8192 d117864 u221184 alloc=54*4096
[    0.000000][    T0] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000][    T0] Kernel command line: BOOT_IMAGE=/boot/Image-6.16.0-rc4-2.g79f1960-default root=UUID=6d8545d7-893d-46d3-ba3c-29a82457c120 ignore_loglevel earlycon mitigations=auto quiet security=selinux selinux=1 console=uart0,115200
[    0.000000][    T0] Unknown kernel command line parameters "BOOT_IMAGE=/boot/Image-6.16.0-rc4-2.g79f1960-default", will be passed to user space.
[    0.000000][    T0] printk: log buffer data + meta data: 262144 + 917504 = 1179648 bytes
[    0.000000][    T0] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000][    T0] software IO TLB: area num 4.
[    0.000000][    T0] software IO TLB: mapped [mem 0x00000000f9600000-0x00000000fd600000] (64MB)
[    0.000000][    T0] Fallback order for Node 0: 0 
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 1048576
[    0.000000][    T0] Policy zone: Normal
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000][    T0] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000][    T0] ftrace: allocating 44199 entries in 173 pages
[    0.000000][    T0] ftrace: allocated 173 pages with 5 groups
[    0.000000][    T0] Dynamic Preempt: voluntary
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] rcu:     RCU restricting CPUs from NR_CPUS=32 to nr_cpu_ids=4.
[    0.000000][    T0]  Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0]  Rude variant of Tasks RCU enabled.
[    0.000000][    T0]  Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000][    T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000][    T0] RCU Tasks: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=4.
[    0.000000][    T0] RCU Tasks Rude: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=4.
[    0.000000][    T0] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=4.
[    0.000000][    T0] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000][    T0] riscv-intc: 64 local interrupts mapped
[    0.000000][    T0] riscv: providing IPIs using SBI IPI extension
[    0.000000][    T0] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000][    T0] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 881590404240 ns
[    0.000001][    T0] sched_clock: 64 bits at 4MHz, resolution 250ns, wraps every 2199023255500ns
[    0.010208][    T0] Console: colour dummy device 80x25
[    0.016090][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 8.00 BogoMIPS (lpj=16000)
[    0.028045][    T0] pid_max: default: 32768 minimum: 301
[    0.034190][    T0] LSM: initializing lsm=lockdown,capability,landlock,yama,selinux,bpf,ima,evm
[    0.044065][    T0] landlock: Up and running.
[    0.048859][    T0] Yama: becoming mindful.
[    0.053486][    T0] SELinux:  Initializing.
[    0.059766][    T0] LSM support for eBPF active
[    0.065219][    T0] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.074184][    T0] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.085461][    T1] CPU node for /cpus/cpu@0 exist but the possible cpu range is :0-3
[    0.095682][    T1] riscv: ELF compat mode unsupported
[    0.095708][    T1] ASID allocator disabled (0 bits)
[    0.106965][    T1] rcu: Hierarchical SRCU implementation.
[    0.113001][    T1] rcu:     Max phase no-delay instances is 1000.
[    0.119877][    T1] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level
[    0.130470][    T1] Remapping and enabling EFI services.
[    0.136920][    T1] smp: Bringing up secondary CPUs ...
[    0.145842][    T1] smp: Brought up 1 node, 4 CPUs
[    0.164543][   T39] node 0 deferred pages initialised in 12ms
[    0.170952][    T1] Memory: 3925052K/4194304K available (12690K kernel code, 8597K rwdata, 12288K rodata, 8436K init, 912K bss, 247028K reserved, 16384K cma-reserved)
[    0.189318][    T1] devtmpfs: initialized
[    0.210225][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.221779][    T1] posixtimers hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.230792][    T1] futex hash table entries: 1024 (65536 bytes on 1 NUMA nodes, total 64 KiB, linear).
[    0.241914][    T1] pinctrl core: initialized pinctrl subsystem
[    0.249464][    T1] SMBIOS 3.7.0 present.
[    0.253900][    T1] DMI: starfive StarFive VisionFive 2 v1.2A/StarFive VisionFive 2 v1.2A, BIOS 2025.04 04/01/2025
[    0.265291][    T1] DMI: Memory slots populated: 0/0
[    0.274915][    T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.283358][    T1] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[    0.292088][    T1] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.301671][    T1] audit: initializing netlink subsys (disabled)
[    0.308663][   T48] audit: type=2000 audit(0.164:1): state=initialized audit_enabled=0 res=1
[    0.309482][    T1] thermal_sys: Registered thermal governor 'fair_share'
[    0.317951][    T1] thermal_sys: Registered thermal governor 'bang_bang'
[    0.325413][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.332778][    T1] thermal_sys: Registered thermal governor 'user_space'
[    0.340210][    T1] cpuidle: using governor ladder
[    0.352979][    T1] cpuidle: using governor menu
[    0.382119][    C1] cpu1: Ratio of byte access time to unaligned word access is 0.01, unaligned accesses are slow
[    0.382120][    C2] cpu2: Ratio of byte access time to unaligned word access is 0.01, unaligned accesses are slow
[    0.382120][    C3] cpu3: Ratio of byte access time to unaligned word access is 0.01, unaligned accesses are slow
[    0.438231][   T10] cpu0: Ratio of byte access time to unaligned word access is 0.01, unaligned accesses are slow
[    0.449702][    T1] CCACHE: 8 banks, 16 ways, sets/bank=256, bytes/block=64
[    0.457361][    T1] CCACHE: Index of the largest way enabled: 15
[    0.464735][    T1] Serial: AMBA PL011 UART driver
[    0.476693][    T1] /soc/lcd-controller@29400000: Fixed dependency cycle(s) with /dsi_encoder
[    0.486240][    T1] /soc/lcd-controller@29400000: Fixed dependency cycle(s) with /soc/hdmi@29590000
[    0.496251][    T1] /soc/hdmi@29590000: Fixed dependency cycle(s) with /soc/lcd-controller@29400000
[    0.518072][    T1] /dsi_encoder: Fixed dependency cycle(s) with /soc/lcd-controller@29400000
[    0.527540][    T1] /soc/lcd-controller@29400000: Fixed dependency cycle(s) with /dsi_encoder
[    0.536997][    T1] /soc/lcd-controller@29400000: Fixed dependency cycle(s) with /soc/hdmi@29590000
[    0.547214][    T1] /soc/lcd-controller@29400000: Fixed dependency cycle(s) with /soc/hdmi@29590000
[    0.557257][    T1] /soc/hdmi@29590000: Fixed dependency cycle(s) with /soc/lcd-controller@29400000
[    0.568609][    T1] /soc/pcie@940000000: Fixed dependency cycle(s) with /soc/pcie@940000000/interrupt-controller
[    0.580396][    T1] /soc/pcie@9c0000000: Fixed dependency cycle(s) with /soc/pcie@9c0000000/interrupt-controller
[    0.595382][    T1] HugeTLB: allocation took 0ms with hugepage_allocation_threads=1
[    0.603827][    T1] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[    0.612051][    T1] HugeTLB: 16380 KiB vmemmap can be freed for a 1.00 GiB page
[    0.620085][    T1] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.628306][    T1] HugeTLB: 28 KiB vmemmap can be freed for a 2.00 MiB page
[    0.639707][    T1] ACPI: Interpreter disabled.
[    0.644991][    T1] iommu: Default domain type: Passthrough
[    0.652139][    T1] EDAC MC: Ver: 3.0.0
[    0.656818][    T1] efivars: Registered efivars operations
[    0.664583][    T1] NetLabel: Initializing
[    0.669097][    T1] NetLabel:  domain hash size = 128
[    0.674648][    T1] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.681777][    T1] NetLabel:  unlabeled traffic allowed by default
[    0.688689][    T1] mctp: management component transport protocol core
[    0.695863][    T1] NET: Registered PF_MCTP protocol family
[    0.702676][    T1] vgaarb: loaded
[    0.706882][    T1] clocksource: Switched to clocksource riscv_clocksource
[    0.718623][    T1] VFS: Disk quotas dquot_6.6.0
[    0.723810][    T1] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.732586][    T1] pnp: PnP ACPI: disabled
[    0.750781][    T1] NET: Registered PF_INET protocol family
[    0.757486][    T1] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.824585][    T1] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.834809][    T1] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.844227][    T1] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.854083][    T1] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
[    0.864334][    T1] TCP: Hash tables configured (established 32768 bind 32768)
[    0.873109][    T1] MPTCP token hash table entries: 4096 (order: 4, 98304 bytes, linear)
[    0.882245][    T1] UDP hash table entries: 2048 (order: 5, 131072 bytes, linear)
[    0.890710][    T1] UDP-Lite hash table entries: 2048 (order: 5, 131072 bytes, linear)
[    0.900030][    T1] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.907108][    T1] NET: Registered PF_XDP protocol family
[    0.913158][    T1] PCI: CLS 0 bytes, default 64
[    0.918566][   T12] Trying to unpack rootfs image as initramfs...
[    1.048402][    T1] Initialise system trusted keyrings
[    1.054236][    T1] Key type blacklist registered
[    1.059936][    T1] workingset: timestamp_bits=44 max_order=20 bucket_order=0
[    1.069946][    T1] integrity: Platform Keyring initialized
[    1.076144][    T1] integrity: Machine keyring initialized
[    1.193615][    T1] Key type asymmetric registered
[    1.198941][    T1] Asymmetric key parser 'x509' registered
[    1.205249][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    1.214604][    T1] io scheduler mq-deadline registered
[    1.220382][    T1] io scheduler kyber registered
[    1.225761][    T1] io scheduler bfq registered
[    1.243891][    T1] riscv-plic: interrupt-controller@c000000: mapped 136 interrupts with 4 handlers for 9 contexts.
[    1.262097][    T1] ledtrig-cpu: registered to indicate activity on CPUs
[    1.271019][    T1] SBI CPPC extension NOT detected!!
[    1.283959][    T1] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
[    1.314454][    T1] Serial: AMBA driver
[    1.323235][    T1] mousedev: PS/2 mouse device common for all mice
[    1.332170][    T1] EDAC DEVICE0: Giving out device to module Sifive ECC Manager controller sifive_edac.0: DEV sifive_edac.0 (INTERRUPT)
[    1.346174][    T1] hid: raw HID events driver (C) Jiri Kosina
[    1.353044][    T1] riscv-pmu-sbi: SBI PMU extension is available
[    1.359822][    T1] riscv-pmu-sbi: 16 firmware and 4 hardware counters
[    1.367026][    T1] riscv-pmu-sbi: Perf sampling/filtering is not supported as sscof extension is not available
[    1.382193][    T1] NET: Registered PF_INET6 protocol family
[    2.798320][   T12] Freeing initrd memory: 27320K
[    2.871132][    T1] Segment Routing with IPv6
[    2.875966][    T1] RPL Segment Routing with IPv6
[    2.881231][    T1] In-situ OAM (IOAM) with IPv6
[    2.903699][    T1] registered taskstats version 1
[    2.910602][    T1] Loading compiled-in X.509 certificates
[    2.918576][    T1] Loaded X.509 cert 'Kernel OBS Project: 1fb41512acbc8eebdf828d877e4367bf6c719af3'
[    2.982083][    T1] Demotion targets for Node 0: null
[    2.988376][    T1] Key type .fscrypt registered
[    2.993488][    T1] Key type fscrypt-provisioning registered
[    3.000197][    T1] Key type big_key registered
[    3.134499][    T1] Key type encrypted registered
[    3.139983][    T1] ima: No TPM chip found, activating TPM-bypass!
[    3.146825][    T1] Loading compiled-in module X.509 certificates
[    3.154985][    T1] Loaded X.509 cert 'Kernel OBS Project: 1fb41512acbc8eebdf828d877e4367bf6c719af3'
[    3.165057][    T1] ima: Allocated hash algorithm: sha256
[    3.171138][    T1] ima: No architecture policies found
[    3.177018][    T1] evm: Initialising EVM extended attributes:
[    3.183457][    T1] evm: security.selinux
[    3.187878][    T1] evm: security.SMACK64 (disabled)
[    3.193355][    T1] evm: security.SMACK64EXEC (disabled)
[    3.199209][    T1] evm: security.SMACK64TRANSMUTE (disabled)
[    3.205537][    T1] evm: security.SMACK64MMAP (disabled)
[    3.211391][    T1] evm: security.apparmor
[    3.215909][    T1] evm: security.ima
[    3.219951][    T1] evm: security.capability
[    3.224661][    T1] evm: HMAC attrs: 0x1
[    3.326319][    T1] clk: Disabling unused clocks
[   11.023381][   T12] 10000000.serial: ttyS0 at MMIO 0x10000000 (irq = 24, base_baud = 1500000) is a 16550A
[   11.039496][   T12] ssp-pl022 10060000.spi: ARM PL022 driver, device ID: 0x00041022
[   11.053438][   T12] ssp-pl022 10060000.spi: mapped registers from 0x0000000010060000 to 00000000fe7d86f3
[   11.071093][   T12] pcie-starfive 940000000.pcie: host bridge /soc/pcie@940000000 ranges:
[   11.075851][  T256] axp20x-i2c 5-0036: AXP20x variant AXP15060 found
[   11.080188][   T12] pcie-starfive 940000000.pcie:      MEM 0x0030000000..0x0037ffffff -> 0x0030000000

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 7+ messages in thread

* openSBI 1.7 causes v6.16-rc boot to hang on VisionFive 2
@ 2025-07-08 10:21 Andreas Schwab
  2025-07-09  6:46 ` Alexandre Ghiti
  0 siblings, 1 reply; 7+ messages in thread
From: Andreas Schwab @ 2025-07-08 10:21 UTC (permalink / raw)
  To: linux-riscv

openSBI 1.7 implements the FWFT extension, and thus enables the use of
misaligned access exception delegation in v6.16-rc.  This causes the
boot to hang on the VisionFive 2 v1.2a.

[    0.000000][    T0] Booting Linux on hartid 3
[    0.000000][    T0] Linux version 6.16.0-rc4-2.g79f1960-default (geeko@buildhost) (gcc (SUSE Linux) 15.1.1 20250626, GNU ld (GNU Binutils; openSUSE Tumbleweed) 2.43.1.20241209-8) #1 SMP PREEMPT_DYNAMIC Thu Jul  3 03:01:03 UTC 2025 (79f1960)
[    0.000000][    T0] Machine model: StarFive VisionFive 2 v1.2A
[    0.000000][    T0] SBI specification v3.0 detected
[    0.000000][    T0] SBI implementation ID=0x1 Version=0x10007
[    0.000000][    T0] SBI TIME extension detected
[    0.000000][    T0] SBI IPI extension detected
[    0.000000][    T0] SBI RFENCE extension detected
[    0.000000][    T0] SBI SRST extension detected
[    0.000000][    T0] SBI DBCN extension detected
[    0.000000][    T0] SBI FWFT extension detected
[    0.000000][    T0] printk: debug: ignoring loglevel setting.
[    0.000000][    T0] efi: EFI v2.11 by Das U-Boot
[    0.000000][    T0] efi: RTPROP=0xfe6cc040 SMBIOS 3.0=0xff72b000 INITRD=0xfe6a9040 RNG=0xfe6a8040 MEMRESERVE=0xfe6a7040 
[    0.000000][    T0] random: crng init done
[    0.000000][    T0] Reserved memory: created CMA memory pool at 0x0000000070000000, size 512 MiB
[    0.000000][    T0] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000][    T0] OF: reserved mem: 0x0000000070000000..0x000000008fffffff (524288 KiB) map reusable linux,cma
[    0.000000][    T0] earlycon: uart0 at MMIO32 0x0000000010000000 (options '115200n8')
[    0.000000][    T0] printk: legacy bootconsole [uart0] enabled
[    0.000000][    T0] OF: reserved mem: 0x0000000040040000..0x000000004005ffff (128 KiB) nomap non-reusable mmode_resv0@40040000
[    0.000000][    T0] OF: reserved mem: 0x0000000040000000..0x000000004003ffff (256 KiB) nomap non-reusable mmode_resv1@40000000
[    0.000000][    T0] NUMA: Faking a node at [mem 0x0000000040000000-0x000000013fffffff]
[    0.000000][    T0] NODE_DATA(0) allocated [mem 0x13fdb30c0-0x13fdb587f]
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   DMA32    [mem 0x0000000040000000-0x00000000ffffffff]
[    0.000000][    T0]   Normal   [mem 0x0000000100000000-0x000000013fffffff]
[    0.000000][    T0]   Device   empty
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000040000000-0x000000004005ffff]
[    0.000000][    T0]   node   0: [mem 0x0000000040060000-0x00000000fe6cbfff]
[    0.000000][    T0]   node   0: [mem 0x00000000fe6cc000-0x00000000fe6ccfff]
[    0.000000][    T0]   node   0: [mem 0x00000000fe6cd000-0x00000000fe6cdfff]
[    0.000000][    T0]   node   0: [mem 0x00000000fe6ce000-0x00000000fe6effff]
[    0.000000][    T0]   node   0: [mem 0x00000000fe6f0000-0x00000000ff72afff]
[    0.000000][    T0]   node   0: [mem 0x00000000ff72b000-0x00000000ff72bfff]
[    0.000000][    T0]   node   0: [mem 0x00000000ff72c000-0x00000000fff26fff]
[    0.000000][    T0]   node   0: [mem 0x00000000fff27000-0x00000000fff28fff]
[    0.000000][    T0]   node   0: [mem 0x00000000fff29000-0x000000013fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000040000000-0x000000013fffffff]
[    0.000000][    T0] SBI HSM extension detected
[    0.000000][    T0] CPU with hartid=0 is not available
[    0.000000][    T0] riscv: base ISA extensions acdfim
[    0.000000][    T0] riscv: ELF capabilities acdfim
[    0.000000][    T0] Ticket spinlock: enabled
[    0.000000][    T0] percpu: Embedded 54 pages/cpu s95128 r8192 d117864 u221184
[    0.000000][    T0] pcpu-alloc: s95128 r8192 d117864 u221184 alloc=54*4096
[    0.000000][    T0] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000][    T0] Kernel command line: BOOT_IMAGE=/boot/Image-6.16.0-rc4-2.g79f1960-default root=UUID=6d8545d7-893d-46d3-ba3c-29a82457c120 ignore_loglevel earlycon mitigations=auto quiet security=selinux selinux=1 console=uart0,115200
[    0.000000][    T0] Unknown kernel command line parameters "BOOT_IMAGE=/boot/Image-6.16.0-rc4-2.g79f1960-default", will be passed to user space.
[    0.000000][    T0] printk: log buffer data + meta data: 262144 + 917504 = 1179648 bytes
[    0.000000][    T0] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000][    T0] software IO TLB: area num 4.
[    0.000000][    T0] software IO TLB: mapped [mem 0x00000000fa6a5000-0x00000000fe6a5000] (64MB)
[    0.000000][    T0] Fallback order for Node 0: 0 
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 1048576
[    0.000000][    T0] Policy zone: Normal
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000][    T0] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000][    T0] ftrace: allocating 44199 entries in 173 pages
[    0.000000][    T0] ftrace: allocated 173 pages with 5 groups
[    0.000000][    T0] Dynamic Preempt: voluntary
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] rcu:     RCU restricting CPUs from NR_CPUS=32 to nr_cpu_ids=4.
[    0.000000][    T0]  Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0]  Rude variant of Tasks RCU enabled.
[    0.000000][    T0]  Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000][    T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000][    T0] RCU Tasks: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=4.
[    0.000000][    T0] RCU Tasks Rude: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=4.
[    0.000000][    T0] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=4.
[    0.000000][    T0] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000][    T0] riscv-intc: 64 local interrupts mapped
[    0.000000][    T0] riscv: providing IPIs using SBI IPI extension
[    0.000000][    T0] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000][    T0] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 881590404240 ns
[    0.000001][    T0] sched_clock: 64 bits at 4MHz, resolution 250ns, wraps every 2199023255500ns
[    0.010196][    T0] Console: colour dummy device 80x25
[    0.016087][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 8.00 BogoMIPS (lpj=16000)
[    0.028040][    T0] pid_max: default: 32768 minimum: 301
[    0.034172][    T0] LSM: initializing lsm=lockdown,capability,landlock,yama,selinux,bpf,ima,evm
[    0.044030][    T0] landlock: Up and running.
[    0.048823][    T0] Yama: becoming mindful.
[    0.053455][    T0] SELinux:  Initializing.
[    0.059755][    T0] LSM support for eBPF active
[    0.065279][    T0] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.074247][    T0] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.085431][    T1] CPU node for /cpus/cpu@0 exist but the possible cpu range is :0-3
[    0.095708][    T1] riscv: ELF compat mode unsupported
[    0.095723][    T1] ASID allocator disabled (0 bits)
[    0.107006][    T1] rcu: Hierarchical SRCU implementation.
[    0.113042][    T1] rcu:     Max phase no-delay instances is 1000.
[    0.119883][    T1] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level
[    0.130459][    T1] Remapping and enabling EFI services.
[    0.136916][    T1] smp: Bringing up secondary CPUs ...
[    0.145836][    T1] smp: Brought up 1 node, 4 CPUs
[    0.164384][   T39] node 0 deferred pages initialised in 12ms
[    0.170794][    T1] Memory: 3417124K/4194304K available (12690K kernel code, 8597K rwdata, 12288K rodata, 8436K init, 912K bss, 247032K reserved, 524288K cma-reserved)
[    0.189211][    T1] devtmpfs: initialized
[    0.210172][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.221733][    T1] posixtimers hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.230748][    T1] futex hash table entries: 1024 (65536 bytes on 1 NUMA nodes, total 64 KiB, linear).
[    0.253706][    T1] pinctrl core: initialized pinctrl subsystem
[    0.261396][    T1] SMBIOS 3.7.0 present.
[    0.265835][    T1] DMI: starfive StarFive VisionFive 2 v1.2A/StarFive VisionFive 2 v1.2A, BIOS 2025.07 07/01/2025
[    0.277228][    T1] DMI: Memory slots populated: 0/0
[    0.287095][    T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.295476][    T1] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[    0.304118][    T1] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.313703][    T1] audit: initializing netlink subsys (disabled)
[    0.320706][   T48] audit: type=2000 audit(0.176:1): state=initialized audit_enabled=0 res=1
[    0.321517][    T1] thermal_sys: Registered thermal governor 'fair_share'
[    0.329993][    T1] thermal_sys: Registered thermal governor 'bang_bang'
[    0.337455][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.344820][    T1] thermal_sys: Registered thermal governor 'user_space'
[    0.352251][    T1] cpuidle: using governor ladder
[    0.365021][    T1] cpuidle: using governor menu
[    0.370454][    T1] SBI misaligned access exception delegation ok
[    0.377321][    T1] CCACHE: 8 banks, 16 ways, sets/bank=256, bytes/block=64
[    0.384978][    T1] CCACHE: Index of the largest way enabled: 15
[    0.392070][    T1] Serial: AMBA PL011 UART driver
[    0.403770][    T1] /soc/lcd-controller@29400000: Fixed dependency cycle(s) with /dsi_encoder
[    0.413279][    T1] /soc/lcd-controller@29400000: Fixed dependency cycle(s) with /soc/hdmi@29590000
[    0.423291][    T1] /soc/hdmi@29590000: Fixed dependency cycle(s) with /soc/lcd-controller@29400000
[    0.445038][    T1] /dsi_encoder: Fixed dependency cycle(s) with /soc/lcd-controller@29400000
[    0.454497][    T1] /soc/lcd-controller@29400000: Fixed dependency cycle(s) with /dsi_encoder
[    0.463959][    T1] /soc/lcd-controller@29400000: Fixed dependency cycle(s) with /soc/hdmi@29590000
[    0.474209][    T1] /soc/lcd-controller@29400000: Fixed dependency cycle(s) with /soc/hdmi@29590000
[    0.484257][    T1] /soc/hdmi@29590000: Fixed dependency cycle(s) with /soc/lcd-controller@29400000
[    0.495655][    T1] /soc/pcie@940000000: Fixed dependency cycle(s) with /soc/pcie@940000000/interrupt-controller
[    0.507461][    T1] /soc/pcie@9c0000000: Fixed dependency cycle(s) with /soc/pcie@9c0000000/interrupt-controller
[    0.522051][    T1] HugeTLB: allocation took 0ms with hugepage_allocation_threads=1
[    0.530496][    T1] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[    0.538725][    T1] HugeTLB: 16380 KiB vmemmap can be freed for a 1.00 GiB page
[    0.546760][    T1] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.554983][    T1] HugeTLB: 28 KiB vmemmap can be freed for a 2.00 MiB page
[    0.566084][    T1] ACPI: Interpreter disabled.
[    0.571339][    T1] iommu: Default domain type: Passthrough
[    0.578419][    T1] EDAC MC: Ver: 3.0.0
[    0.583097][    T1] efivars: Registered efivars operations
[    0.591406][    T1] NetLabel: Initializing
[    0.595925][    T1] NetLabel:  domain hash size = 128
[    0.601477][    T1] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.608542][    T1] NetLabel:  unlabeled traffic allowed by default
[    0.615452][    T1] mctp: management component transport protocol core
[    0.622629][    T1] NET: Registered PF_MCTP protocol family
[    0.629199][    T1] vgaarb: loaded
[    0.633420][    T1] clocksource: Switched to clocksource riscv_clocksource
[    0.641993][    T1] VFS: Disk quotas dquot_6.6.0
[    0.647204][    T1] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.656029][    T1] pnp: PnP ACPI: disabled
[    0.674024][    T1] NET: Registered PF_INET protocol family
[    0.680795][    T1] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.745932][    T1] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.756151][    T1] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.765554][    T1] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.775383][    T1] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
[    0.785674][    T1] TCP: Hash tables configured (established 32768 bind 32768)
[    0.794143][    T1] MPTCP token hash table entries: 4096 (order: 4, 98304 bytes, linear)
[    0.803200][    T1] UDP hash table entries: 2048 (order: 5, 131072 bytes, linear)
[    0.811638][    T1] UDP-Lite hash table entries: 2048 (order: 5, 131072 bytes, linear)
[    0.820876][    T1] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.827931][    T1] NET: Registered PF_XDP protocol family
[    0.833981][    T1] PCI: CLS 0 bytes, default 64
[    0.839407][   T12] Trying to unpack rootfs image as initramfs...
[    0.968443][    T1] Initialise system trusted keyrings
[    0.974184][    T1] Key type blacklist registered
[    0.979660][    T1] workingset: timestamp_bits=44 max_order=20 bucket_order=0
[    0.989347][    T1] integrity: Platform Keyring initialized
[    0.995540][    T1] integrity: Machine keyring initialized
[    1.113004][    T1] Key type asymmetric registered
[    1.118315][    T1] Asymmetric key parser 'x509' registered
[    1.124594][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    1.133977][    T1] io scheduler mq-deadline registered
[    1.139754][    T1] io scheduler kyber registered
[    1.145130][    T1] io scheduler bfq registered
[    1.157883][    T1] riscv-plic: interrupt-controller@c000000: mapped 136 interrupts with 4 handlers for 9 contexts.
[    1.176089][    T1] ledtrig-cpu: registered to indicate activity on CPUs
[    1.184768][    T1] SBI CPPC extension NOT detected!!
[    1.197404][    T1] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
[    1.227373][    T1] Serial: AMBA driver
[    1.241519][    T1] mousedev: PS/2 mouse device common for all mice
[    1.250393][    T1] EDAC DEVICE0: Giving out device to module Sifive ECC Manager controller sifive_edac.0: DEV sifive_edac.0 (INTERRUPT)
[    1.264395][    T1] hid: raw HID events driver (C) Jiri Kosina
[    1.271266][    T1] riscv-pmu-sbi: SBI PMU extension is available
[    1.278035][    T1] riscv-pmu-sbi: 16 firmware and 4 hardware counters
[    1.285247][    T1] riscv-pmu-sbi: Perf sampling/filtering is not supported as sscof extension is not available
[    1.297931][    T1] NET: Registered PF_INET6 protocol family
[    2.725805][   T12] Freeing initrd memory: 27320K
[    2.800047][    T1] Segment Routing with IPv6
[    2.804898][    T1] RPL Segment Routing with IPv6
[    2.810161][    T1] In-situ OAM (IOAM) with IPv6
[    2.832512][    T1] registered taskstats version 1
[    2.839398][    T1] Loading compiled-in X.509 certificates
[    2.847924][    T1] Loaded X.509 cert 'Kernel OBS Project: 1fb41512acbc8eebdf828d877e4367bf6c719af3'
[    2.910855][    T1] Demotion targets for Node 0: null
[    2.917145][    T1] Key type .fscrypt registered
[    2.922267][    T1] Key type fscrypt-provisioning registered
[    2.928939][    T1] Key type big_key registered
[    3.064969][    T1] Key type encrypted registered
[    3.070472][    T1] ima: No TPM chip found, activating TPM-bypass!
[    3.077320][    T1] Loading compiled-in module X.509 certificates
[    3.085472][    T1] Loaded X.509 cert 'Kernel OBS Project: 1fb41512acbc8eebdf828d877e4367bf6c719af3'
[    3.095549][    T1] ima: Allocated hash algorithm: sha256
[    3.101562][    T1] ima: No architecture policies found
[    3.107472][    T1] evm: Initialising EVM extended attributes:
[    3.113909][    T1] evm: security.selinux
[    3.118334][    T1] evm: security.SMACK64 (disabled)
[    3.123815][    T1] evm: security.SMACK64EXEC (disabled)
[    3.129668][    T1] evm: security.SMACK64TRANSMUTE (disabled)
[    3.136012][    T1] evm: security.SMACK64MMAP (disabled)
[    3.141889][    T1] evm: security.apparmor
[    3.146416][    T1] evm: security.ima
[    3.150463][    T1] evm: security.capability
[    3.155177][    T1] evm: HMAC attrs: 0x1
[    3.191010][    C0] CCACHE: DataError @ 0x00000000.08024BF0
[    3.197164][    C0] EDAC DEVICE0: CE: sifive_edac.0 instance: sifive_ecc0 block: sifive_ecc1 count: 1 'DatECCFix'
[    3.208484][    C0] CCACHE: DataFail @ 0x00000000.08024BFC
[    3.214529][    C0] EDAC DEVICE0: UE: sifive_edac.0 instance: sifive_ecc0 block: sifive_ecc1 count: 1 'DatECCFail'
[    3.257853][    T1] clk: Disabling unused clocks

Booting with openSBI 1.6 lets the boot to continue:

[    0.000000][    T0] Booting Linux on hartid 1
[    0.000000][    T0] Linux version 6.16.0-rc4-2.g79f1960-default (geeko@buildhost) (gcc (SUSE Linux) 15.1.1 20250626, GNU ld (GNU Binutils; openSUSE Tumbleweed) 2.43.1.20241209-8) #1 SMP PREEMPT_DYNAMIC Thu Jul  3 03:01:03 UTC 2025 (79f1960)
[    0.000000][    T0] Machine model: StarFive VisionFive 2 v1.2A
[    0.000000][    T0] SBI specification v2.0 detected
[    0.000000][    T0] SBI implementation ID=0x1 Version=0x10006
[    0.000000][    T0] SBI TIME extension detected
[    0.000000][    T0] SBI IPI extension detected
[    0.000000][    T0] SBI RFENCE extension detected
[    0.000000][    T0] SBI SRST extension detected
[    0.000000][    T0] SBI DBCN extension detected
[    0.000000][    T0] printk: debug: ignoring loglevel setting.
[    0.000000][    T0] efi: EFI v2.11 by Das U-Boot
[    0.000000][    T0] efi: RTPROP=0xfe6d2040 SMBIOS 3.0=0xff731000 INITRD=0xfe6b0040 RNG=0xfe6af040 MEMRESERVE=0xfe6ae040 
[    0.000000][    T0] random: crng init done
[    0.000000][    T0] OF: reserved mem: failed to allocate memory for node 'linux,cma': size 512 MiB
[    0.000000][    T0] cma: Reserved 16 MiB at 0x00000000fd600000
[    0.000000][    T0] earlycon: uart0 at MMIO32 0x0000000010000000 (options '115200n8')
[    0.000000][    T0] printk: legacy bootconsole [uart0] enabled
[    0.000000][    T0] OF: reserved mem: 0x0000000040040000..0x000000004005ffff (128 KiB) nomap non-reusable mmode_resv0@40040000
[    0.000000][    T0] OF: reserved mem: 0x0000000040000000..0x000000004003ffff (256 KiB) nomap non-reusable mmode_resv1@40000000
[    0.000000][    T0] NUMA: Faking a node at [mem 0x0000000040000000-0x000000013fffffff]
[    0.000000][    T0] NODE_DATA(0) allocated [mem 0x13fdb30c0-0x13fdb587f]
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   DMA32    [mem 0x0000000040000000-0x00000000ffffffff]
[    0.000000][    T0]   Normal   [mem 0x0000000100000000-0x000000013fffffff]
[    0.000000][    T0]   Device   empty
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000040000000-0x000000004005ffff]
[    0.000000][    T0]   node   0: [mem 0x0000000040060000-0x00000000fe6d1fff]
[    0.000000][    T0]   node   0: [mem 0x00000000fe6d2000-0x00000000fe6d2fff]
[    0.000000][    T0]   node   0: [mem 0x00000000fe6d3000-0x00000000fe6d3fff]
[    0.000000][    T0]   node   0: [mem 0x00000000fe6d4000-0x00000000fe6f5fff]
[    0.000000][    T0]   node   0: [mem 0x00000000fe6f6000-0x00000000ff730fff]
[    0.000000][    T0]   node   0: [mem 0x00000000ff731000-0x00000000ff731fff]
[    0.000000][    T0]   node   0: [mem 0x00000000ff732000-0x00000000fff2cfff]
[    0.000000][    T0]   node   0: [mem 0x00000000fff2d000-0x00000000fff2efff]
[    0.000000][    T0]   node   0: [mem 0x00000000fff2f000-0x000000013fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000040000000-0x000000013fffffff]
[    0.000000][    T0] SBI HSM extension detected
[    0.000000][    T0] CPU with hartid=0 is not available
[    0.000000][    T0] riscv: base ISA extensions acdfim
[    0.000000][    T0] riscv: ELF capabilities acdfim
[    0.000000][    T0] Ticket spinlock: enabled
[    0.000000][    T0] percpu: Embedded 54 pages/cpu s95128 r8192 d117864 u221184
[    0.000000][    T0] pcpu-alloc: s95128 r8192 d117864 u221184 alloc=54*4096
[    0.000000][    T0] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000][    T0] Kernel command line: BOOT_IMAGE=/boot/Image-6.16.0-rc4-2.g79f1960-default root=UUID=6d8545d7-893d-46d3-ba3c-29a82457c120 ignore_loglevel earlycon mitigations=auto quiet security=selinux selinux=1 console=uart0,115200
[    0.000000][    T0] Unknown kernel command line parameters "BOOT_IMAGE=/boot/Image-6.16.0-rc4-2.g79f1960-default", will be passed to user space.
[    0.000000][    T0] printk: log buffer data + meta data: 262144 + 917504 = 1179648 bytes
[    0.000000][    T0] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000][    T0] software IO TLB: area num 4.
[    0.000000][    T0] software IO TLB: mapped [mem 0x00000000f9600000-0x00000000fd600000] (64MB)
[    0.000000][    T0] Fallback order for Node 0: 0 
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 1048576
[    0.000000][    T0] Policy zone: Normal
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000][    T0] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000][    T0] ftrace: allocating 44199 entries in 173 pages
[    0.000000][    T0] ftrace: allocated 173 pages with 5 groups
[    0.000000][    T0] Dynamic Preempt: voluntary
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] rcu:     RCU restricting CPUs from NR_CPUS=32 to nr_cpu_ids=4.
[    0.000000][    T0]  Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0]  Rude variant of Tasks RCU enabled.
[    0.000000][    T0]  Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000][    T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000][    T0] RCU Tasks: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=4.
[    0.000000][    T0] RCU Tasks Rude: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=4.
[    0.000000][    T0] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=4.
[    0.000000][    T0] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000][    T0] riscv-intc: 64 local interrupts mapped
[    0.000000][    T0] riscv: providing IPIs using SBI IPI extension
[    0.000000][    T0] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000][    T0] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 881590404240 ns
[    0.000001][    T0] sched_clock: 64 bits at 4MHz, resolution 250ns, wraps every 2199023255500ns
[    0.010208][    T0] Console: colour dummy device 80x25
[    0.016090][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 8.00 BogoMIPS (lpj=16000)
[    0.028045][    T0] pid_max: default: 32768 minimum: 301
[    0.034190][    T0] LSM: initializing lsm=lockdown,capability,landlock,yama,selinux,bpf,ima,evm
[    0.044065][    T0] landlock: Up and running.
[    0.048859][    T0] Yama: becoming mindful.
[    0.053486][    T0] SELinux:  Initializing.
[    0.059766][    T0] LSM support for eBPF active
[    0.065219][    T0] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.074184][    T0] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.085461][    T1] CPU node for /cpus/cpu@0 exist but the possible cpu range is :0-3
[    0.095682][    T1] riscv: ELF compat mode unsupported
[    0.095708][    T1] ASID allocator disabled (0 bits)
[    0.106965][    T1] rcu: Hierarchical SRCU implementation.
[    0.113001][    T1] rcu:     Max phase no-delay instances is 1000.
[    0.119877][    T1] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level
[    0.130470][    T1] Remapping and enabling EFI services.
[    0.136920][    T1] smp: Bringing up secondary CPUs ...
[    0.145842][    T1] smp: Brought up 1 node, 4 CPUs
[    0.164543][   T39] node 0 deferred pages initialised in 12ms
[    0.170952][    T1] Memory: 3925052K/4194304K available (12690K kernel code, 8597K rwdata, 12288K rodata, 8436K init, 912K bss, 247028K reserved, 16384K cma-reserved)
[    0.189318][    T1] devtmpfs: initialized
[    0.210225][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.221779][    T1] posixtimers hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.230792][    T1] futex hash table entries: 1024 (65536 bytes on 1 NUMA nodes, total 64 KiB, linear).
[    0.241914][    T1] pinctrl core: initialized pinctrl subsystem
[    0.249464][    T1] SMBIOS 3.7.0 present.
[    0.253900][    T1] DMI: starfive StarFive VisionFive 2 v1.2A/StarFive VisionFive 2 v1.2A, BIOS 2025.04 04/01/2025
[    0.265291][    T1] DMI: Memory slots populated: 0/0
[    0.274915][    T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.283358][    T1] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[    0.292088][    T1] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.301671][    T1] audit: initializing netlink subsys (disabled)
[    0.308663][   T48] audit: type=2000 audit(0.164:1): state=initialized audit_enabled=0 res=1
[    0.309482][    T1] thermal_sys: Registered thermal governor 'fair_share'
[    0.317951][    T1] thermal_sys: Registered thermal governor 'bang_bang'
[    0.325413][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.332778][    T1] thermal_sys: Registered thermal governor 'user_space'
[    0.340210][    T1] cpuidle: using governor ladder
[    0.352979][    T1] cpuidle: using governor menu
[    0.382119][    C1] cpu1: Ratio of byte access time to unaligned word access is 0.01, unaligned accesses are slow
[    0.382120][    C2] cpu2: Ratio of byte access time to unaligned word access is 0.01, unaligned accesses are slow
[    0.382120][    C3] cpu3: Ratio of byte access time to unaligned word access is 0.01, unaligned accesses are slow
[    0.438231][   T10] cpu0: Ratio of byte access time to unaligned word access is 0.01, unaligned accesses are slow
[    0.449702][    T1] CCACHE: 8 banks, 16 ways, sets/bank=256, bytes/block=64
[    0.457361][    T1] CCACHE: Index of the largest way enabled: 15
[    0.464735][    T1] Serial: AMBA PL011 UART driver
[    0.476693][    T1] /soc/lcd-controller@29400000: Fixed dependency cycle(s) with /dsi_encoder
[    0.486240][    T1] /soc/lcd-controller@29400000: Fixed dependency cycle(s) with /soc/hdmi@29590000
[    0.496251][    T1] /soc/hdmi@29590000: Fixed dependency cycle(s) with /soc/lcd-controller@29400000
[    0.518072][    T1] /dsi_encoder: Fixed dependency cycle(s) with /soc/lcd-controller@29400000
[    0.527540][    T1] /soc/lcd-controller@29400000: Fixed dependency cycle(s) with /dsi_encoder
[    0.536997][    T1] /soc/lcd-controller@29400000: Fixed dependency cycle(s) with /soc/hdmi@29590000
[    0.547214][    T1] /soc/lcd-controller@29400000: Fixed dependency cycle(s) with /soc/hdmi@29590000
[    0.557257][    T1] /soc/hdmi@29590000: Fixed dependency cycle(s) with /soc/lcd-controller@29400000
[    0.568609][    T1] /soc/pcie@940000000: Fixed dependency cycle(s) with /soc/pcie@940000000/interrupt-controller
[    0.580396][    T1] /soc/pcie@9c0000000: Fixed dependency cycle(s) with /soc/pcie@9c0000000/interrupt-controller
[    0.595382][    T1] HugeTLB: allocation took 0ms with hugepage_allocation_threads=1
[    0.603827][    T1] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[    0.612051][    T1] HugeTLB: 16380 KiB vmemmap can be freed for a 1.00 GiB page
[    0.620085][    T1] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.628306][    T1] HugeTLB: 28 KiB vmemmap can be freed for a 2.00 MiB page
[    0.639707][    T1] ACPI: Interpreter disabled.
[    0.644991][    T1] iommu: Default domain type: Passthrough
[    0.652139][    T1] EDAC MC: Ver: 3.0.0
[    0.656818][    T1] efivars: Registered efivars operations
[    0.664583][    T1] NetLabel: Initializing
[    0.669097][    T1] NetLabel:  domain hash size = 128
[    0.674648][    T1] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.681777][    T1] NetLabel:  unlabeled traffic allowed by default
[    0.688689][    T1] mctp: management component transport protocol core
[    0.695863][    T1] NET: Registered PF_MCTP protocol family
[    0.702676][    T1] vgaarb: loaded
[    0.706882][    T1] clocksource: Switched to clocksource riscv_clocksource
[    0.718623][    T1] VFS: Disk quotas dquot_6.6.0
[    0.723810][    T1] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.732586][    T1] pnp: PnP ACPI: disabled
[    0.750781][    T1] NET: Registered PF_INET protocol family
[    0.757486][    T1] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.824585][    T1] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.834809][    T1] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.844227][    T1] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.854083][    T1] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
[    0.864334][    T1] TCP: Hash tables configured (established 32768 bind 32768)
[    0.873109][    T1] MPTCP token hash table entries: 4096 (order: 4, 98304 bytes, linear)
[    0.882245][    T1] UDP hash table entries: 2048 (order: 5, 131072 bytes, linear)
[    0.890710][    T1] UDP-Lite hash table entries: 2048 (order: 5, 131072 bytes, linear)
[    0.900030][    T1] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.907108][    T1] NET: Registered PF_XDP protocol family
[    0.913158][    T1] PCI: CLS 0 bytes, default 64
[    0.918566][   T12] Trying to unpack rootfs image as initramfs...
[    1.048402][    T1] Initialise system trusted keyrings
[    1.054236][    T1] Key type blacklist registered
[    1.059936][    T1] workingset: timestamp_bits=44 max_order=20 bucket_order=0
[    1.069946][    T1] integrity: Platform Keyring initialized
[    1.076144][    T1] integrity: Machine keyring initialized
[    1.193615][    T1] Key type asymmetric registered
[    1.198941][    T1] Asymmetric key parser 'x509' registered
[    1.205249][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    1.214604][    T1] io scheduler mq-deadline registered
[    1.220382][    T1] io scheduler kyber registered
[    1.225761][    T1] io scheduler bfq registered
[    1.243891][    T1] riscv-plic: interrupt-controller@c000000: mapped 136 interrupts with 4 handlers for 9 contexts.
[    1.262097][    T1] ledtrig-cpu: registered to indicate activity on CPUs
[    1.271019][    T1] SBI CPPC extension NOT detected!!
[    1.283959][    T1] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
[    1.314454][    T1] Serial: AMBA driver
[    1.323235][    T1] mousedev: PS/2 mouse device common for all mice
[    1.332170][    T1] EDAC DEVICE0: Giving out device to module Sifive ECC Manager controller sifive_edac.0: DEV sifive_edac.0 (INTERRUPT)
[    1.346174][    T1] hid: raw HID events driver (C) Jiri Kosina
[    1.353044][    T1] riscv-pmu-sbi: SBI PMU extension is available
[    1.359822][    T1] riscv-pmu-sbi: 16 firmware and 4 hardware counters
[    1.367026][    T1] riscv-pmu-sbi: Perf sampling/filtering is not supported as sscof extension is not available
[    1.382193][    T1] NET: Registered PF_INET6 protocol family
[    2.798320][   T12] Freeing initrd memory: 27320K
[    2.871132][    T1] Segment Routing with IPv6
[    2.875966][    T1] RPL Segment Routing with IPv6
[    2.881231][    T1] In-situ OAM (IOAM) with IPv6
[    2.903699][    T1] registered taskstats version 1
[    2.910602][    T1] Loading compiled-in X.509 certificates
[    2.918576][    T1] Loaded X.509 cert 'Kernel OBS Project: 1fb41512acbc8eebdf828d877e4367bf6c719af3'
[    2.982083][    T1] Demotion targets for Node 0: null
[    2.988376][    T1] Key type .fscrypt registered
[    2.993488][    T1] Key type fscrypt-provisioning registered
[    3.000197][    T1] Key type big_key registered
[    3.134499][    T1] Key type encrypted registered
[    3.139983][    T1] ima: No TPM chip found, activating TPM-bypass!
[    3.146825][    T1] Loading compiled-in module X.509 certificates
[    3.154985][    T1] Loaded X.509 cert 'Kernel OBS Project: 1fb41512acbc8eebdf828d877e4367bf6c719af3'
[    3.165057][    T1] ima: Allocated hash algorithm: sha256
[    3.171138][    T1] ima: No architecture policies found
[    3.177018][    T1] evm: Initialising EVM extended attributes:
[    3.183457][    T1] evm: security.selinux
[    3.187878][    T1] evm: security.SMACK64 (disabled)
[    3.193355][    T1] evm: security.SMACK64EXEC (disabled)
[    3.199209][    T1] evm: security.SMACK64TRANSMUTE (disabled)
[    3.205537][    T1] evm: security.SMACK64MMAP (disabled)
[    3.211391][    T1] evm: security.apparmor
[    3.215909][    T1] evm: security.ima
[    3.219951][    T1] evm: security.capability
[    3.224661][    T1] evm: HMAC attrs: 0x1
[    3.326319][    T1] clk: Disabling unused clocks
[   11.023381][   T12] 10000000.serial: ttyS0 at MMIO 0x10000000 (irq = 24, base_baud = 1500000) is a 16550A
[   11.039496][   T12] ssp-pl022 10060000.spi: ARM PL022 driver, device ID: 0x00041022
[   11.053438][   T12] ssp-pl022 10060000.spi: mapped registers from 0x0000000010060000 to 00000000fe7d86f3
[   11.071093][   T12] pcie-starfive 940000000.pcie: host bridge /soc/pcie@940000000 ranges:
[   11.075851][  T256] axp20x-i2c 5-0036: AXP20x variant AXP15060 found
[   11.080188][   T12] pcie-starfive 940000000.pcie:      MEM 0x0030000000..0x0037ffffff -> 0x0030000000

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: openSBI 1.7 causes v6.16-rc boot to hang on VisionFive 2
  2025-07-08 10:21 openSBI 1.7 causes v6.16-rc boot to hang on VisionFive 2 Andreas Schwab
@ 2025-07-09  6:46 ` Alexandre Ghiti
  2025-07-09  7:21   ` Andreas Schwab
                     ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Alexandre Ghiti @ 2025-07-09  6:46 UTC (permalink / raw)
  To: Andreas Schwab, linux-riscv

Hi Andreas,

On 7/8/25 12:21, Andreas Schwab wrote:
> openSBI 1.7 implements the FWFT extension, and thus enables the use of
> misaligned access exception delegation in v6.16-rc.  This causes the
> boot to hang on the VisionFive 2 v1.2a.
>
> [    0.000000][    T0] Booting Linux on hartid 3
> [    0.000000][    T0] Linux version 6.16.0-rc4-2.g79f1960-default (geeko@buildhost) (gcc (SUSE Linux) 15.1.1 20250626, GNU ld (GNU Binutils; openSUSE Tumbleweed) 2.43.1.20241209-8) #1 SMP PREEMPT_DYNAMIC Thu Jul  3 03:01:03 UTC 2025 (79f1960)
> [    0.000000][    T0] Machine model: StarFive VisionFive 2 v1.2A
> [    0.000000][    T0] SBI specification v3.0 detected
> [    0.000000][    T0] SBI implementation ID=0x1 Version=0x10007
> [    0.000000][    T0] SBI TIME extension detected
> [    0.000000][    T0] SBI IPI extension detected
> [    0.000000][    T0] SBI RFENCE extension detected
> [    0.000000][    T0] SBI SRST extension detected
> [    0.000000][    T0] SBI DBCN extension detected
> [    0.000000][    T0] SBI FWFT extension detected
> [    0.000000][    T0] printk: debug: ignoring loglevel setting.
> [    0.000000][    T0] efi: EFI v2.11 by Das U-Boot
> [    0.000000][    T0] efi: RTPROP=0xfe6cc040 SMBIOS 3.0=0xff72b000 INITRD=0xfe6a9040 RNG=0xfe6a8040 MEMRESERVE=0xfe6a7040
> [    0.000000][    T0] random: crng init done
> [    0.000000][    T0] Reserved memory: created CMA memory pool at 0x0000000070000000, size 512 MiB
> [    0.000000][    T0] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
> [    0.000000][    T0] OF: reserved mem: 0x0000000070000000..0x000000008fffffff (524288 KiB) map reusable linux,cma
> [    0.000000][    T0] earlycon: uart0 at MMIO32 0x0000000010000000 (options '115200n8')
> [    0.000000][    T0] printk: legacy bootconsole [uart0] enabled
> [    0.000000][    T0] OF: reserved mem: 0x0000000040040000..0x000000004005ffff (128 KiB) nomap non-reusable mmode_resv0@40040000
> [    0.000000][    T0] OF: reserved mem: 0x0000000040000000..0x000000004003ffff (256 KiB) nomap non-reusable mmode_resv1@40000000
> [    0.000000][    T0] NUMA: Faking a node at [mem 0x0000000040000000-0x000000013fffffff]
> [    0.000000][    T0] NODE_DATA(0) allocated [mem 0x13fdb30c0-0x13fdb587f]
> [    0.000000][    T0] Zone ranges:
> [    0.000000][    T0]   DMA32    [mem 0x0000000040000000-0x00000000ffffffff]
> [    0.000000][    T0]   Normal   [mem 0x0000000100000000-0x000000013fffffff]
> [    0.000000][    T0]   Device   empty
> [    0.000000][    T0] Movable zone start for each node
> [    0.000000][    T0] Early memory node ranges
> [    0.000000][    T0]   node   0: [mem 0x0000000040000000-0x000000004005ffff]
> [    0.000000][    T0]   node   0: [mem 0x0000000040060000-0x00000000fe6cbfff]
> [    0.000000][    T0]   node   0: [mem 0x00000000fe6cc000-0x00000000fe6ccfff]
> [    0.000000][    T0]   node   0: [mem 0x00000000fe6cd000-0x00000000fe6cdfff]
> [    0.000000][    T0]   node   0: [mem 0x00000000fe6ce000-0x00000000fe6effff]
> [    0.000000][    T0]   node   0: [mem 0x00000000fe6f0000-0x00000000ff72afff]
> [    0.000000][    T0]   node   0: [mem 0x00000000ff72b000-0x00000000ff72bfff]
> [    0.000000][    T0]   node   0: [mem 0x00000000ff72c000-0x00000000fff26fff]
> [    0.000000][    T0]   node   0: [mem 0x00000000fff27000-0x00000000fff28fff]
> [    0.000000][    T0]   node   0: [mem 0x00000000fff29000-0x000000013fffffff]
> [    0.000000][    T0] Initmem setup node 0 [mem 0x0000000040000000-0x000000013fffffff]
> [    0.000000][    T0] SBI HSM extension detected
> [    0.000000][    T0] CPU with hartid=0 is not available
> [    0.000000][    T0] riscv: base ISA extensions acdfim
> [    0.000000][    T0] riscv: ELF capabilities acdfim
> [    0.000000][    T0] Ticket spinlock: enabled
> [    0.000000][    T0] percpu: Embedded 54 pages/cpu s95128 r8192 d117864 u221184
> [    0.000000][    T0] pcpu-alloc: s95128 r8192 d117864 u221184 alloc=54*4096
> [    0.000000][    T0] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
> [    0.000000][    T0] Kernel command line: BOOT_IMAGE=/boot/Image-6.16.0-rc4-2.g79f1960-default root=UUID=6d8545d7-893d-46d3-ba3c-29a82457c120 ignore_loglevel earlycon mitigations=auto quiet security=selinux selinux=1 console=uart0,115200
> [    0.000000][    T0] Unknown kernel command line parameters "BOOT_IMAGE=/boot/Image-6.16.0-rc4-2.g79f1960-default", will be passed to user space.
> [    0.000000][    T0] printk: log buffer data + meta data: 262144 + 917504 = 1179648 bytes
> [    0.000000][    T0] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
> [    0.000000][    T0] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
> [    0.000000][    T0] software IO TLB: area num 4.
> [    0.000000][    T0] software IO TLB: mapped [mem 0x00000000fa6a5000-0x00000000fe6a5000] (64MB)
> [    0.000000][    T0] Fallback order for Node 0: 0
> [    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 1048576
> [    0.000000][    T0] Policy zone: Normal
> [    0.000000][    T0] mem auto-init: stack:off, heap alloc:off, heap free:off
> [    0.000000][    T0] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
> [    0.000000][    T0] ftrace: allocating 44199 entries in 173 pages
> [    0.000000][    T0] ftrace: allocated 173 pages with 5 groups
> [    0.000000][    T0] Dynamic Preempt: voluntary
> [    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
> [    0.000000][    T0] rcu:     RCU restricting CPUs from NR_CPUS=32 to nr_cpu_ids=4.
> [    0.000000][    T0]  Trampoline variant of Tasks RCU enabled.
> [    0.000000][    T0]  Rude variant of Tasks RCU enabled.
> [    0.000000][    T0]  Tracing variant of Tasks RCU enabled.
> [    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
> [    0.000000][    T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
> [    0.000000][    T0] RCU Tasks: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=4.
> [    0.000000][    T0] RCU Tasks Rude: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=4.
> [    0.000000][    T0] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=4.
> [    0.000000][    T0] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
> [    0.000000][    T0] riscv-intc: 64 local interrupts mapped
> [    0.000000][    T0] riscv: providing IPIs using SBI IPI extension
> [    0.000000][    T0] rcu: srcu_init: Setting srcu_struct sizes based on contention.
> [    0.000000][    T0] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 881590404240 ns
> [    0.000001][    T0] sched_clock: 64 bits at 4MHz, resolution 250ns, wraps every 2199023255500ns
> [    0.010196][    T0] Console: colour dummy device 80x25
> [    0.016087][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 8.00 BogoMIPS (lpj=16000)
> [    0.028040][    T0] pid_max: default: 32768 minimum: 301
> [    0.034172][    T0] LSM: initializing lsm=lockdown,capability,landlock,yama,selinux,bpf,ima,evm
> [    0.044030][    T0] landlock: Up and running.
> [    0.048823][    T0] Yama: becoming mindful.
> [    0.053455][    T0] SELinux:  Initializing.
> [    0.059755][    T0] LSM support for eBPF active
> [    0.065279][    T0] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
> [    0.074247][    T0] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
> [    0.085431][    T1] CPU node for /cpus/cpu@0 exist but the possible cpu range is :0-3
> [    0.095708][    T1] riscv: ELF compat mode unsupported
> [    0.095723][    T1] ASID allocator disabled (0 bits)
> [    0.107006][    T1] rcu: Hierarchical SRCU implementation.
> [    0.113042][    T1] rcu:     Max phase no-delay instances is 1000.
> [    0.119883][    T1] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level
> [    0.130459][    T1] Remapping and enabling EFI services.
> [    0.136916][    T1] smp: Bringing up secondary CPUs ...
> [    0.145836][    T1] smp: Brought up 1 node, 4 CPUs
> [    0.164384][   T39] node 0 deferred pages initialised in 12ms
> [    0.170794][    T1] Memory: 3417124K/4194304K available (12690K kernel code, 8597K rwdata, 12288K rodata, 8436K init, 912K bss, 247032K reserved, 524288K cma-reserved)
> [    0.189211][    T1] devtmpfs: initialized
> [    0.210172][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
> [    0.221733][    T1] posixtimers hash table entries: 2048 (order: 3, 32768 bytes, linear)
> [    0.230748][    T1] futex hash table entries: 1024 (65536 bytes on 1 NUMA nodes, total 64 KiB, linear).
> [    0.253706][    T1] pinctrl core: initialized pinctrl subsystem
> [    0.261396][    T1] SMBIOS 3.7.0 present.
> [    0.265835][    T1] DMI: starfive StarFive VisionFive 2 v1.2A/StarFive VisionFive 2 v1.2A, BIOS 2025.07 07/01/2025
> [    0.277228][    T1] DMI: Memory slots populated: 0/0
> [    0.287095][    T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family
> [    0.295476][    T1] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
> [    0.304118][    T1] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
> [    0.313703][    T1] audit: initializing netlink subsys (disabled)
> [    0.320706][   T48] audit: type=2000 audit(0.176:1): state=initialized audit_enabled=0 res=1
> [    0.321517][    T1] thermal_sys: Registered thermal governor 'fair_share'
> [    0.329993][    T1] thermal_sys: Registered thermal governor 'bang_bang'
> [    0.337455][    T1] thermal_sys: Registered thermal governor 'step_wise'
> [    0.344820][    T1] thermal_sys: Registered thermal governor 'user_space'
> [    0.352251][    T1] cpuidle: using governor ladder
> [    0.365021][    T1] cpuidle: using governor menu
> [    0.370454][    T1] SBI misaligned access exception delegation ok
> [    0.377321][    T1] CCACHE: 8 banks, 16 ways, sets/bank=256, bytes/block=64
> [    0.384978][    T1] CCACHE: Index of the largest way enabled: 15
> [    0.392070][    T1] Serial: AMBA PL011 UART driver
> [    0.403770][    T1] /soc/lcd-controller@29400000: Fixed dependency cycle(s) with /dsi_encoder
> [    0.413279][    T1] /soc/lcd-controller@29400000: Fixed dependency cycle(s) with /soc/hdmi@29590000
> [    0.423291][    T1] /soc/hdmi@29590000: Fixed dependency cycle(s) with /soc/lcd-controller@29400000
> [    0.445038][    T1] /dsi_encoder: Fixed dependency cycle(s) with /soc/lcd-controller@29400000
> [    0.454497][    T1] /soc/lcd-controller@29400000: Fixed dependency cycle(s) with /dsi_encoder
> [    0.463959][    T1] /soc/lcd-controller@29400000: Fixed dependency cycle(s) with /soc/hdmi@29590000
> [    0.474209][    T1] /soc/lcd-controller@29400000: Fixed dependency cycle(s) with /soc/hdmi@29590000
> [    0.484257][    T1] /soc/hdmi@29590000: Fixed dependency cycle(s) with /soc/lcd-controller@29400000
> [    0.495655][    T1] /soc/pcie@940000000: Fixed dependency cycle(s) with /soc/pcie@940000000/interrupt-controller
> [    0.507461][    T1] /soc/pcie@9c0000000: Fixed dependency cycle(s) with /soc/pcie@9c0000000/interrupt-controller
> [    0.522051][    T1] HugeTLB: allocation took 0ms with hugepage_allocation_threads=1
> [    0.530496][    T1] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
> [    0.538725][    T1] HugeTLB: 16380 KiB vmemmap can be freed for a 1.00 GiB page
> [    0.546760][    T1] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
> [    0.554983][    T1] HugeTLB: 28 KiB vmemmap can be freed for a 2.00 MiB page
> [    0.566084][    T1] ACPI: Interpreter disabled.
> [    0.571339][    T1] iommu: Default domain type: Passthrough
> [    0.578419][    T1] EDAC MC: Ver: 3.0.0
> [    0.583097][    T1] efivars: Registered efivars operations
> [    0.591406][    T1] NetLabel: Initializing
> [    0.595925][    T1] NetLabel:  domain hash size = 128
> [    0.601477][    T1] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
> [    0.608542][    T1] NetLabel:  unlabeled traffic allowed by default
> [    0.615452][    T1] mctp: management component transport protocol core
> [    0.622629][    T1] NET: Registered PF_MCTP protocol family
> [    0.629199][    T1] vgaarb: loaded
> [    0.633420][    T1] clocksource: Switched to clocksource riscv_clocksource
> [    0.641993][    T1] VFS: Disk quotas dquot_6.6.0
> [    0.647204][    T1] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
> [    0.656029][    T1] pnp: PnP ACPI: disabled
> [    0.674024][    T1] NET: Registered PF_INET protocol family
> [    0.680795][    T1] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
> [    0.745932][    T1] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
> [    0.756151][    T1] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
> [    0.765554][    T1] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
> [    0.775383][    T1] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
> [    0.785674][    T1] TCP: Hash tables configured (established 32768 bind 32768)
> [    0.794143][    T1] MPTCP token hash table entries: 4096 (order: 4, 98304 bytes, linear)
> [    0.803200][    T1] UDP hash table entries: 2048 (order: 5, 131072 bytes, linear)
> [    0.811638][    T1] UDP-Lite hash table entries: 2048 (order: 5, 131072 bytes, linear)
> [    0.820876][    T1] NET: Registered PF_UNIX/PF_LOCAL protocol family
> [    0.827931][    T1] NET: Registered PF_XDP protocol family
> [    0.833981][    T1] PCI: CLS 0 bytes, default 64
> [    0.839407][   T12] Trying to unpack rootfs image as initramfs...
> [    0.968443][    T1] Initialise system trusted keyrings
> [    0.974184][    T1] Key type blacklist registered
> [    0.979660][    T1] workingset: timestamp_bits=44 max_order=20 bucket_order=0
> [    0.989347][    T1] integrity: Platform Keyring initialized
> [    0.995540][    T1] integrity: Machine keyring initialized
> [    1.113004][    T1] Key type asymmetric registered
> [    1.118315][    T1] Asymmetric key parser 'x509' registered
> [    1.124594][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
> [    1.133977][    T1] io scheduler mq-deadline registered
> [    1.139754][    T1] io scheduler kyber registered
> [    1.145130][    T1] io scheduler bfq registered
> [    1.157883][    T1] riscv-plic: interrupt-controller@c000000: mapped 136 interrupts with 4 handlers for 9 contexts.
> [    1.176089][    T1] ledtrig-cpu: registered to indicate activity on CPUs
> [    1.184768][    T1] SBI CPPC extension NOT detected!!
> [    1.197404][    T1] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
> [    1.227373][    T1] Serial: AMBA driver
> [    1.241519][    T1] mousedev: PS/2 mouse device common for all mice
> [    1.250393][    T1] EDAC DEVICE0: Giving out device to module Sifive ECC Manager controller sifive_edac.0: DEV sifive_edac.0 (INTERRUPT)
> [    1.264395][    T1] hid: raw HID events driver (C) Jiri Kosina
> [    1.271266][    T1] riscv-pmu-sbi: SBI PMU extension is available
> [    1.278035][    T1] riscv-pmu-sbi: 16 firmware and 4 hardware counters
> [    1.285247][    T1] riscv-pmu-sbi: Perf sampling/filtering is not supported as sscof extension is not available
> [    1.297931][    T1] NET: Registered PF_INET6 protocol family
> [    2.725805][   T12] Freeing initrd memory: 27320K
> [    2.800047][    T1] Segment Routing with IPv6
> [    2.804898][    T1] RPL Segment Routing with IPv6
> [    2.810161][    T1] In-situ OAM (IOAM) with IPv6
> [    2.832512][    T1] registered taskstats version 1
> [    2.839398][    T1] Loading compiled-in X.509 certificates
> [    2.847924][    T1] Loaded X.509 cert 'Kernel OBS Project: 1fb41512acbc8eebdf828d877e4367bf6c719af3'
> [    2.910855][    T1] Demotion targets for Node 0: null
> [    2.917145][    T1] Key type .fscrypt registered
> [    2.922267][    T1] Key type fscrypt-provisioning registered
> [    2.928939][    T1] Key type big_key registered
> [    3.064969][    T1] Key type encrypted registered
> [    3.070472][    T1] ima: No TPM chip found, activating TPM-bypass!
> [    3.077320][    T1] Loading compiled-in module X.509 certificates
> [    3.085472][    T1] Loaded X.509 cert 'Kernel OBS Project: 1fb41512acbc8eebdf828d877e4367bf6c719af3'
> [    3.095549][    T1] ima: Allocated hash algorithm: sha256
> [    3.101562][    T1] ima: No architecture policies found
> [    3.107472][    T1] evm: Initialising EVM extended attributes:
> [    3.113909][    T1] evm: security.selinux
> [    3.118334][    T1] evm: security.SMACK64 (disabled)
> [    3.123815][    T1] evm: security.SMACK64EXEC (disabled)
> [    3.129668][    T1] evm: security.SMACK64TRANSMUTE (disabled)
> [    3.136012][    T1] evm: security.SMACK64MMAP (disabled)
> [    3.141889][    T1] evm: security.apparmor
> [    3.146416][    T1] evm: security.ima
> [    3.150463][    T1] evm: security.capability
> [    3.155177][    T1] evm: HMAC attrs: 0x1
> [    3.191010][    C0] CCACHE: DataError @ 0x00000000.08024BF0
> [    3.197164][    C0] EDAC DEVICE0: CE: sifive_edac.0 instance: sifive_ecc0 block: sifive_ecc1 count: 1 'DatECCFix'
> [    3.208484][    C0] CCACHE: DataFail @ 0x00000000.08024BFC
> [    3.214529][    C0] EDAC DEVICE0: UE: sifive_edac.0 instance: sifive_ecc0 block: sifive_ecc1 count: 1 'DatECCFail'
> [    3.257853][    T1] clk: Disabling unused clocks


Do you have a means to know what happens here (pc, sepc, stval etc)? I 
don't have this board to give it a try.


>
> Booting with openSBI 1.6 lets the boot to continue:
>
> [    0.000000][    T0] Booting Linux on hartid 1
> [    0.000000][    T0] Linux version 6.16.0-rc4-2.g79f1960-default (geeko@buildhost) (gcc (SUSE Linux) 15.1.1 20250626, GNU ld (GNU Binutils; openSUSE Tumbleweed) 2.43.1.20241209-8) #1 SMP PREEMPT_DYNAMIC Thu Jul  3 03:01:03 UTC 2025 (79f1960)
> [    0.000000][    T0] Machine model: StarFive VisionFive 2 v1.2A
> [    0.000000][    T0] SBI specification v2.0 detected
> [    0.000000][    T0] SBI implementation ID=0x1 Version=0x10006
> [    0.000000][    T0] SBI TIME extension detected
> [    0.000000][    T0] SBI IPI extension detected
> [    0.000000][    T0] SBI RFENCE extension detected
> [    0.000000][    T0] SBI SRST extension detected
> [    0.000000][    T0] SBI DBCN extension detected
> [    0.000000][    T0] printk: debug: ignoring loglevel setting.
> [    0.000000][    T0] efi: EFI v2.11 by Das U-Boot
> [    0.000000][    T0] efi: RTPROP=0xfe6d2040 SMBIOS 3.0=0xff731000 INITRD=0xfe6b0040 RNG=0xfe6af040 MEMRESERVE=0xfe6ae040
> [    0.000000][    T0] random: crng init done
> [    0.000000][    T0] OF: reserved mem: failed to allocate memory for node 'linux,cma': size 512 MiB
> [    0.000000][    T0] cma: Reserved 16 MiB at 0x00000000fd600000
> [    0.000000][    T0] earlycon: uart0 at MMIO32 0x0000000010000000 (options '115200n8')
> [    0.000000][    T0] printk: legacy bootconsole [uart0] enabled
> [    0.000000][    T0] OF: reserved mem: 0x0000000040040000..0x000000004005ffff (128 KiB) nomap non-reusable mmode_resv0@40040000
> [    0.000000][    T0] OF: reserved mem: 0x0000000040000000..0x000000004003ffff (256 KiB) nomap non-reusable mmode_resv1@40000000
> [    0.000000][    T0] NUMA: Faking a node at [mem 0x0000000040000000-0x000000013fffffff]
> [    0.000000][    T0] NODE_DATA(0) allocated [mem 0x13fdb30c0-0x13fdb587f]
> [    0.000000][    T0] Zone ranges:
> [    0.000000][    T0]   DMA32    [mem 0x0000000040000000-0x00000000ffffffff]
> [    0.000000][    T0]   Normal   [mem 0x0000000100000000-0x000000013fffffff]
> [    0.000000][    T0]   Device   empty
> [    0.000000][    T0] Movable zone start for each node
> [    0.000000][    T0] Early memory node ranges
> [    0.000000][    T0]   node   0: [mem 0x0000000040000000-0x000000004005ffff]
> [    0.000000][    T0]   node   0: [mem 0x0000000040060000-0x00000000fe6d1fff]
> [    0.000000][    T0]   node   0: [mem 0x00000000fe6d2000-0x00000000fe6d2fff]
> [    0.000000][    T0]   node   0: [mem 0x00000000fe6d3000-0x00000000fe6d3fff]
> [    0.000000][    T0]   node   0: [mem 0x00000000fe6d4000-0x00000000fe6f5fff]
> [    0.000000][    T0]   node   0: [mem 0x00000000fe6f6000-0x00000000ff730fff]
> [    0.000000][    T0]   node   0: [mem 0x00000000ff731000-0x00000000ff731fff]
> [    0.000000][    T0]   node   0: [mem 0x00000000ff732000-0x00000000fff2cfff]
> [    0.000000][    T0]   node   0: [mem 0x00000000fff2d000-0x00000000fff2efff]
> [    0.000000][    T0]   node   0: [mem 0x00000000fff2f000-0x000000013fffffff]
> [    0.000000][    T0] Initmem setup node 0 [mem 0x0000000040000000-0x000000013fffffff]
> [    0.000000][    T0] SBI HSM extension detected
> [    0.000000][    T0] CPU with hartid=0 is not available
> [    0.000000][    T0] riscv: base ISA extensions acdfim
> [    0.000000][    T0] riscv: ELF capabilities acdfim
> [    0.000000][    T0] Ticket spinlock: enabled
> [    0.000000][    T0] percpu: Embedded 54 pages/cpu s95128 r8192 d117864 u221184
> [    0.000000][    T0] pcpu-alloc: s95128 r8192 d117864 u221184 alloc=54*4096
> [    0.000000][    T0] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
> [    0.000000][    T0] Kernel command line: BOOT_IMAGE=/boot/Image-6.16.0-rc4-2.g79f1960-default root=UUID=6d8545d7-893d-46d3-ba3c-29a82457c120 ignore_loglevel earlycon mitigations=auto quiet security=selinux selinux=1 console=uart0,115200
> [    0.000000][    T0] Unknown kernel command line parameters "BOOT_IMAGE=/boot/Image-6.16.0-rc4-2.g79f1960-default", will be passed to user space.
> [    0.000000][    T0] printk: log buffer data + meta data: 262144 + 917504 = 1179648 bytes
> [    0.000000][    T0] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
> [    0.000000][    T0] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
> [    0.000000][    T0] software IO TLB: area num 4.
> [    0.000000][    T0] software IO TLB: mapped [mem 0x00000000f9600000-0x00000000fd600000] (64MB)
> [    0.000000][    T0] Fallback order for Node 0: 0
> [    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 1048576
> [    0.000000][    T0] Policy zone: Normal
> [    0.000000][    T0] mem auto-init: stack:off, heap alloc:off, heap free:off
> [    0.000000][    T0] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
> [    0.000000][    T0] ftrace: allocating 44199 entries in 173 pages
> [    0.000000][    T0] ftrace: allocated 173 pages with 5 groups
> [    0.000000][    T0] Dynamic Preempt: voluntary
> [    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
> [    0.000000][    T0] rcu:     RCU restricting CPUs from NR_CPUS=32 to nr_cpu_ids=4.
> [    0.000000][    T0]  Trampoline variant of Tasks RCU enabled.
> [    0.000000][    T0]  Rude variant of Tasks RCU enabled.
> [    0.000000][    T0]  Tracing variant of Tasks RCU enabled.
> [    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
> [    0.000000][    T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
> [    0.000000][    T0] RCU Tasks: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=4.
> [    0.000000][    T0] RCU Tasks Rude: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=4.
> [    0.000000][    T0] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=4.
> [    0.000000][    T0] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
> [    0.000000][    T0] riscv-intc: 64 local interrupts mapped
> [    0.000000][    T0] riscv: providing IPIs using SBI IPI extension
> [    0.000000][    T0] rcu: srcu_init: Setting srcu_struct sizes based on contention.
> [    0.000000][    T0] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 881590404240 ns
> [    0.000001][    T0] sched_clock: 64 bits at 4MHz, resolution 250ns, wraps every 2199023255500ns
> [    0.010208][    T0] Console: colour dummy device 80x25
> [    0.016090][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 8.00 BogoMIPS (lpj=16000)
> [    0.028045][    T0] pid_max: default: 32768 minimum: 301
> [    0.034190][    T0] LSM: initializing lsm=lockdown,capability,landlock,yama,selinux,bpf,ima,evm
> [    0.044065][    T0] landlock: Up and running.
> [    0.048859][    T0] Yama: becoming mindful.
> [    0.053486][    T0] SELinux:  Initializing.
> [    0.059766][    T0] LSM support for eBPF active
> [    0.065219][    T0] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
> [    0.074184][    T0] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
> [    0.085461][    T1] CPU node for /cpus/cpu@0 exist but the possible cpu range is :0-3
> [    0.095682][    T1] riscv: ELF compat mode unsupported
> [    0.095708][    T1] ASID allocator disabled (0 bits)
> [    0.106965][    T1] rcu: Hierarchical SRCU implementation.
> [    0.113001][    T1] rcu:     Max phase no-delay instances is 1000.
> [    0.119877][    T1] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level
> [    0.130470][    T1] Remapping and enabling EFI services.
> [    0.136920][    T1] smp: Bringing up secondary CPUs ...
> [    0.145842][    T1] smp: Brought up 1 node, 4 CPUs
> [    0.164543][   T39] node 0 deferred pages initialised in 12ms
> [    0.170952][    T1] Memory: 3925052K/4194304K available (12690K kernel code, 8597K rwdata, 12288K rodata, 8436K init, 912K bss, 247028K reserved, 16384K cma-reserved)
> [    0.189318][    T1] devtmpfs: initialized
> [    0.210225][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
> [    0.221779][    T1] posixtimers hash table entries: 2048 (order: 3, 32768 bytes, linear)
> [    0.230792][    T1] futex hash table entries: 1024 (65536 bytes on 1 NUMA nodes, total 64 KiB, linear).
> [    0.241914][    T1] pinctrl core: initialized pinctrl subsystem
> [    0.249464][    T1] SMBIOS 3.7.0 present.
> [    0.253900][    T1] DMI: starfive StarFive VisionFive 2 v1.2A/StarFive VisionFive 2 v1.2A, BIOS 2025.04 04/01/2025
> [    0.265291][    T1] DMI: Memory slots populated: 0/0
> [    0.274915][    T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family
> [    0.283358][    T1] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
> [    0.292088][    T1] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
> [    0.301671][    T1] audit: initializing netlink subsys (disabled)
> [    0.308663][   T48] audit: type=2000 audit(0.164:1): state=initialized audit_enabled=0 res=1
> [    0.309482][    T1] thermal_sys: Registered thermal governor 'fair_share'
> [    0.317951][    T1] thermal_sys: Registered thermal governor 'bang_bang'
> [    0.325413][    T1] thermal_sys: Registered thermal governor 'step_wise'
> [    0.332778][    T1] thermal_sys: Registered thermal governor 'user_space'
> [    0.340210][    T1] cpuidle: using governor ladder
> [    0.352979][    T1] cpuidle: using governor menu
> [    0.382119][    C1] cpu1: Ratio of byte access time to unaligned word access is 0.01, unaligned accesses are slow
> [    0.382120][    C2] cpu2: Ratio of byte access time to unaligned word access is 0.01, unaligned accesses are slow
> [    0.382120][    C3] cpu3: Ratio of byte access time to unaligned word access is 0.01, unaligned accesses are slow
> [    0.438231][   T10] cpu0: Ratio of byte access time to unaligned word access is 0.01, unaligned accesses are slow
> [    0.449702][    T1] CCACHE: 8 banks, 16 ways, sets/bank=256, bytes/block=64
> [    0.457361][    T1] CCACHE: Index of the largest way enabled: 15
> [    0.464735][    T1] Serial: AMBA PL011 UART driver
> [    0.476693][    T1] /soc/lcd-controller@29400000: Fixed dependency cycle(s) with /dsi_encoder
> [    0.486240][    T1] /soc/lcd-controller@29400000: Fixed dependency cycle(s) with /soc/hdmi@29590000
> [    0.496251][    T1] /soc/hdmi@29590000: Fixed dependency cycle(s) with /soc/lcd-controller@29400000
> [    0.518072][    T1] /dsi_encoder: Fixed dependency cycle(s) with /soc/lcd-controller@29400000
> [    0.527540][    T1] /soc/lcd-controller@29400000: Fixed dependency cycle(s) with /dsi_encoder
> [    0.536997][    T1] /soc/lcd-controller@29400000: Fixed dependency cycle(s) with /soc/hdmi@29590000
> [    0.547214][    T1] /soc/lcd-controller@29400000: Fixed dependency cycle(s) with /soc/hdmi@29590000
> [    0.557257][    T1] /soc/hdmi@29590000: Fixed dependency cycle(s) with /soc/lcd-controller@29400000
> [    0.568609][    T1] /soc/pcie@940000000: Fixed dependency cycle(s) with /soc/pcie@940000000/interrupt-controller
> [    0.580396][    T1] /soc/pcie@9c0000000: Fixed dependency cycle(s) with /soc/pcie@9c0000000/interrupt-controller
> [    0.595382][    T1] HugeTLB: allocation took 0ms with hugepage_allocation_threads=1
> [    0.603827][    T1] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
> [    0.612051][    T1] HugeTLB: 16380 KiB vmemmap can be freed for a 1.00 GiB page
> [    0.620085][    T1] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
> [    0.628306][    T1] HugeTLB: 28 KiB vmemmap can be freed for a 2.00 MiB page
> [    0.639707][    T1] ACPI: Interpreter disabled.
> [    0.644991][    T1] iommu: Default domain type: Passthrough
> [    0.652139][    T1] EDAC MC: Ver: 3.0.0
> [    0.656818][    T1] efivars: Registered efivars operations
> [    0.664583][    T1] NetLabel: Initializing
> [    0.669097][    T1] NetLabel:  domain hash size = 128
> [    0.674648][    T1] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
> [    0.681777][    T1] NetLabel:  unlabeled traffic allowed by default
> [    0.688689][    T1] mctp: management component transport protocol core
> [    0.695863][    T1] NET: Registered PF_MCTP protocol family
> [    0.702676][    T1] vgaarb: loaded
> [    0.706882][    T1] clocksource: Switched to clocksource riscv_clocksource
> [    0.718623][    T1] VFS: Disk quotas dquot_6.6.0
> [    0.723810][    T1] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
> [    0.732586][    T1] pnp: PnP ACPI: disabled
> [    0.750781][    T1] NET: Registered PF_INET protocol family
> [    0.757486][    T1] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
> [    0.824585][    T1] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
> [    0.834809][    T1] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
> [    0.844227][    T1] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
> [    0.854083][    T1] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
> [    0.864334][    T1] TCP: Hash tables configured (established 32768 bind 32768)
> [    0.873109][    T1] MPTCP token hash table entries: 4096 (order: 4, 98304 bytes, linear)
> [    0.882245][    T1] UDP hash table entries: 2048 (order: 5, 131072 bytes, linear)
> [    0.890710][    T1] UDP-Lite hash table entries: 2048 (order: 5, 131072 bytes, linear)
> [    0.900030][    T1] NET: Registered PF_UNIX/PF_LOCAL protocol family
> [    0.907108][    T1] NET: Registered PF_XDP protocol family
> [    0.913158][    T1] PCI: CLS 0 bytes, default 64
> [    0.918566][   T12] Trying to unpack rootfs image as initramfs...
> [    1.048402][    T1] Initialise system trusted keyrings
> [    1.054236][    T1] Key type blacklist registered
> [    1.059936][    T1] workingset: timestamp_bits=44 max_order=20 bucket_order=0
> [    1.069946][    T1] integrity: Platform Keyring initialized
> [    1.076144][    T1] integrity: Machine keyring initialized
> [    1.193615][    T1] Key type asymmetric registered
> [    1.198941][    T1] Asymmetric key parser 'x509' registered
> [    1.205249][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
> [    1.214604][    T1] io scheduler mq-deadline registered
> [    1.220382][    T1] io scheduler kyber registered
> [    1.225761][    T1] io scheduler bfq registered
> [    1.243891][    T1] riscv-plic: interrupt-controller@c000000: mapped 136 interrupts with 4 handlers for 9 contexts.
> [    1.262097][    T1] ledtrig-cpu: registered to indicate activity on CPUs
> [    1.271019][    T1] SBI CPPC extension NOT detected!!
> [    1.283959][    T1] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
> [    1.314454][    T1] Serial: AMBA driver
> [    1.323235][    T1] mousedev: PS/2 mouse device common for all mice
> [    1.332170][    T1] EDAC DEVICE0: Giving out device to module Sifive ECC Manager controller sifive_edac.0: DEV sifive_edac.0 (INTERRUPT)
> [    1.346174][    T1] hid: raw HID events driver (C) Jiri Kosina
> [    1.353044][    T1] riscv-pmu-sbi: SBI PMU extension is available
> [    1.359822][    T1] riscv-pmu-sbi: 16 firmware and 4 hardware counters
> [    1.367026][    T1] riscv-pmu-sbi: Perf sampling/filtering is not supported as sscof extension is not available
> [    1.382193][    T1] NET: Registered PF_INET6 protocol family
> [    2.798320][   T12] Freeing initrd memory: 27320K
> [    2.871132][    T1] Segment Routing with IPv6
> [    2.875966][    T1] RPL Segment Routing with IPv6
> [    2.881231][    T1] In-situ OAM (IOAM) with IPv6
> [    2.903699][    T1] registered taskstats version 1
> [    2.910602][    T1] Loading compiled-in X.509 certificates
> [    2.918576][    T1] Loaded X.509 cert 'Kernel OBS Project: 1fb41512acbc8eebdf828d877e4367bf6c719af3'
> [    2.982083][    T1] Demotion targets for Node 0: null
> [    2.988376][    T1] Key type .fscrypt registered
> [    2.993488][    T1] Key type fscrypt-provisioning registered
> [    3.000197][    T1] Key type big_key registered
> [    3.134499][    T1] Key type encrypted registered
> [    3.139983][    T1] ima: No TPM chip found, activating TPM-bypass!
> [    3.146825][    T1] Loading compiled-in module X.509 certificates
> [    3.154985][    T1] Loaded X.509 cert 'Kernel OBS Project: 1fb41512acbc8eebdf828d877e4367bf6c719af3'
> [    3.165057][    T1] ima: Allocated hash algorithm: sha256
> [    3.171138][    T1] ima: No architecture policies found
> [    3.177018][    T1] evm: Initialising EVM extended attributes:
> [    3.183457][    T1] evm: security.selinux
> [    3.187878][    T1] evm: security.SMACK64 (disabled)
> [    3.193355][    T1] evm: security.SMACK64EXEC (disabled)
> [    3.199209][    T1] evm: security.SMACK64TRANSMUTE (disabled)
> [    3.205537][    T1] evm: security.SMACK64MMAP (disabled)
> [    3.211391][    T1] evm: security.apparmor
> [    3.215909][    T1] evm: security.ima
> [    3.219951][    T1] evm: security.capability
> [    3.224661][    T1] evm: HMAC attrs: 0x1
> [    3.326319][    T1] clk: Disabling unused clocks
> [   11.023381][   T12] 10000000.serial: ttyS0 at MMIO 0x10000000 (irq = 24, base_baud = 1500000) is a 16550A
> [   11.039496][   T12] ssp-pl022 10060000.spi: ARM PL022 driver, device ID: 0x00041022
> [   11.053438][   T12] ssp-pl022 10060000.spi: mapped registers from 0x0000000010060000 to 00000000fe7d86f3
> [   11.071093][   T12] pcie-starfive 940000000.pcie: host bridge /soc/pcie@940000000 ranges:
> [   11.075851][  T256] axp20x-i2c 5-0036: AXP20x variant AXP15060 found
> [   11.080188][   T12] pcie-starfive 940000000.pcie:      MEM 0x0030000000..0x0037ffffff -> 0x0030000000
>

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: openSBI 1.7 causes v6.16-rc boot to hang on VisionFive 2
  2025-07-09  6:46 ` Alexandre Ghiti
@ 2025-07-09  7:21   ` Andreas Schwab
  2025-07-10 10:21   ` Andreas Schwab
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Andreas Schwab @ 2025-07-09  7:21 UTC (permalink / raw)
  To: Alexandre Ghiti; +Cc: linux-riscv

On Jul 09 2025, Alexandre Ghiti wrote:

> Do you have a means to know what happens here (pc, sepc, stval etc)?

Unfortunately, sysrq does not work at this point.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: openSBI 1.7 causes v6.16-rc boot to hang on VisionFive 2
  2025-07-09  6:46 ` Alexandre Ghiti
  2025-07-09  7:21   ` Andreas Schwab
@ 2025-07-10 10:21   ` Andreas Schwab
  2025-07-10 12:51   ` Andreas Schwab
  2025-07-10 14:56   ` Andreas Schwab
  3 siblings, 0 replies; 7+ messages in thread
From: Andreas Schwab @ 2025-07-10 10:21 UTC (permalink / raw)
  To: Alexandre Ghiti; +Cc: linux-riscv

On Jul 09 2025, Alexandre Ghiti wrote:

> Do you have a means to know what happens here (pc, sepc, stval etc)?

Unfortunately, sysrq does not work at this point.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: openSBI 1.7 causes v6.16-rc boot to hang on VisionFive 2
  2025-07-09  6:46 ` Alexandre Ghiti
  2025-07-09  7:21   ` Andreas Schwab
  2025-07-10 10:21   ` Andreas Schwab
@ 2025-07-10 12:51   ` Andreas Schwab
  2025-07-10 14:56   ` Andreas Schwab
  3 siblings, 0 replies; 7+ messages in thread
From: Andreas Schwab @ 2025-07-10 12:51 UTC (permalink / raw)
  To: Alexandre Ghiti; +Cc: linux-riscv

On Jul 09 2025, Alexandre Ghiti wrote:

> Do you have a means to know what happens here (pc, sepc, stval etc)? I
> don't have this board to give it a try.

Apparently disabling unused clocks kills the early console, and booting
with clk_ignore_unused reveals the real bug:

[   15.362214][    C2] ------------[ cut here ]------------
[   15.362239][    C2] kernel BUG at arch/riscv/kernel/patch.c:54!
[   15.362265][    C2] Kernel BUG [#1]
[   15.362279][    C2] Modules linked in: blake2b_generic xor raid6_pq dmi_sysfs
[   15.362348][    C2] CPU: 2 UID: 0 PID: 240 Comm: modprobe Not tainted 6.16.0-rc5-113-default #1 PREEMPT(voluntary) openSUSE Tumbleweed (unreleased)  c33d66cc520b3125c763ff4496b8fbb5b54061ef
[   15.362389][    C2] Hardware name: starfive StarFive VisionFive 2 v1.2A/StarFive VisionFive 2 v1.2A, BIOS 2025.07 07/01/2025
[   15.362406][    C2] epc : __patch_insn_write+0x3d8/0x3e8
[   15.362457][    C2]  ra : __patch_insn_write+0x132/0x3e8
[   15.362487][    C2] epc : ffffffff9d61ade8 ra : ffffffff9d61ab42 sp : ffffffc6005ab920
[   15.362506][    C2]  gp : ffffffff9fe6e900 tp : ffffffd6c0f96e40 t0 : ffffffff9d622468
[   15.362525][    C2]  t1 : 0000000000006000 t2 : 0000000000001000 s0 : ffffffc6005ab980
[   15.362542][    C2]  s1 : 0000000000000000 a0 : 0000000000000000 a1 : 0000000020345c44
[   15.362558][    C2]  a2 : 0000000000000004 a3 : ffffffff9e46f388 a4 : 0000000000000000
[   15.362574][    C2]  a5 : 0000000000000000 a6 : ffffffffa01789f8 a7 : 0000000054494d45
[   15.362591][    C2]  s2 : 0000000020345c44 s3 : 0000000000000c44 s4 : 0000000000000c48
[   15.362608][    C2]  s5 : 0000000000000fff s6 : 0000000000002000 s7 : ffffffff9f2358f8
[   15.362624][    C2]  s8 : 0000000000000004 s9 : 0000000020347484 s10: 0000000000000000
[   15.362640][    C2]  s11: ffffffff203946d8 t3 : 0000000000000001 t4 : ffffffd6c0f96f00
[   15.362658][    C2]  t5 : 0000000000000400 t6 : 0000000000000000
[   15.362671][    C2] status: 0000000200000120 badaddr: 0000000000000000 cause: 0000000000000003
[   15.362690][    C2] [<ffffffff9d61ade8>] __patch_insn_write+0x3d8/0x3e8
[   15.362726][    C2] [<ffffffff9d61afa8>] patch_text_nosync+0x48/0x80
[   15.362760][    C2] [<ffffffff9d614f92>] riscv_cpufeature_patch_func+0xc2/0x130
[   15.362795][    C2] [<ffffffff9d614108>] _apply_alternatives+0x90/0xb8
[   15.362825][    C2] [<ffffffff9d61431c>] apply_module_alternatives+0x14/0x28
[   15.362855][    C2] [<ffffffff9d62032e>] module_finalize+0x66/0xa0
[   15.362887][    C2] [<ffffffff9d714a32>] load_module+0x151a/0x1f48
[   15.362914][    C2] [<ffffffff9d7156a2>] init_module_from_file+0x82/0xe0
[   15.362940][    C2] [<ffffffff9d71594a>] __riscv_sys_finit_module+0x24a/0x348
[   15.362967][    C2] [<ffffffff9e257796>] do_trap_ecall_u+0x3be/0x498
[   15.362997][    C2] [<ffffffff9e266414>] handle_exception+0x154/0x160
[   15.363054][    C2] Code: 17a6 8726 97b6 7863 00d7 b683 030a 05b3 40d7 bfa9 (9002) 4605 
[   15.363076][    C2] ---[ end trace 0000000000000000 ]---
[   15.363092][    C2] Kernel panic - not syncing: Fatal exception in interrupt
[   15.363107][    C2] SMP: stopping secondary CPUs
[   15.363145][    C2] Kernel Offset: 0x1d600000 from 0xffffffff80000000

So it looks like the insn decoder is broken.  Instrumenting the kernel
shows the following insns being emulated:

[    7.318366][    C0] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c5ba14a INSN=c190
[    7.318401][    C0] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c5ba146 INSN=c190
[    7.318459][    C0] handle_scalar_misaligned_load: PC=riscv_cpufeature_patch_func+0x32/0x138 ADDR=ffffffff0c5ba152 INSN=c4a903
[    7.476473][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a7c3 INSN=c59023
[    7.476519][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a7bd INSN=c190
[    7.476538][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a7b9 INSN=c190
[    7.476556][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a7b3 INSN=c59023
[    7.476575][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a7ad INSN=c190
[    7.476593][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a7a9 INSN=c190
[    7.476612][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a79d INSN=c190
[    7.476630][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a799 INSN=c190
[    7.476648][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a793 INSN=c59023
[    7.476666][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a78d INSN=c190
[    7.476684][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a789 INSN=c190
[    7.476703][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a77d INSN=c190
[    7.476722][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a779 INSN=c190
[    7.476740][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a773 INSN=c59023
[    7.476758][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a76d INSN=c190
[    7.476777][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a769 INSN=c190
[    7.476795][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a75d INSN=c190
[    7.476814][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a753 INSN=c59023
[    7.476832][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a74d INSN=c190
[    7.476850][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a749 INSN=c190
[    7.476868][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a743 INSN=c59023
[    7.476887][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a73d INSN=c190
[    7.476906][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a733 INSN=c59023
[    7.476924][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a72d INSN=c190
[    7.476942][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a729 INSN=c190
[    7.476961][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a723 INSN=c59023
[    7.476979][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a7a3 INSN=c59023
[    7.476998][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a713 INSN=c59023
[    7.477018][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a70d INSN=c190
[    7.477036][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a709 INSN=c190
[    7.477055][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a703 INSN=c59023
[    7.477074][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a6f9 INSN=c190
[    7.477093][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a783 INSN=c59023
[    7.477111][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a6f3 INSN=c59023
[    7.477130][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a6ed INSN=c190
[    7.477149][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a6e9 INSN=c190
[    7.477168][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a6e3 INSN=c59023
[    7.477187][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a6d9 INSN=c190
[    7.477205][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a763 INSN=c59023
[    7.477224][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a6d3 INSN=c59023
[    7.477243][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a6cd INSN=c190
[    7.477262][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a759 INSN=c190
[    7.477280][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a6c9 INSN=c190
[    7.477299][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a6c3 INSN=c59023
[    7.477318][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a6bd INSN=c190
[    7.477337][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a6b9 INSN=c190
[    7.477356][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a6b3 INSN=c59023
[    7.477374][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a6ad INSN=c190
[    7.477393][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a739 INSN=c190
[    7.477411][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a6a9 INSN=c190
[    7.477430][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a6a3 INSN=c59023
[    7.477449][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a69d INSN=c190
[    8.111827][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a699 INSN=c190
[    8.111852][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a693 INSN=c59023
[    8.111871][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a71d INSN=c190
[    8.111890][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a68d INSN=c190
[    8.111909][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a719 INSN=c190
[    8.111928][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a689 INSN=c190
[    8.111946][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a683 INSN=c59023
[    8.111965][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a67d INSN=c190
[    8.111984][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a679 INSN=c190
[    8.112003][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a673 INSN=c59023
[    8.112022][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a6fd INSN=c190
[    8.112040][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a66d INSN=c190
[    8.112059][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a669 INSN=c190
[    8.112078][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a663 INSN=c59023
[    8.112097][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a65d INSN=c190
[    8.112116][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a659 INSN=c190
[    8.112135][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a653 INSN=c59023
[    8.112153][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a6dd INSN=c190
[    8.112171][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a64d INSN=c190
[    8.112190][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a649 INSN=c190
[    8.112209][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a643 INSN=c59023
[    8.112228][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a63d INSN=c190
[    8.112247][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a639 INSN=c190
[    8.113036][    C2] handle_scalar_misaligned_store: PC=apply_r_riscv_64_rela+0x14/0x28 ADDR=ffffffff0c71ad0c INSN=e190
[    8.113062][    C2] handle_scalar_misaligned_store: PC=apply_r_riscv_64_rela+0x14/0x28 ADDR=ffffffff0c71ad34 INSN=e190
[    8.113078][    C2] handle_scalar_misaligned_store: PC=apply_r_riscv_64_rela+0x14/0x28 ADDR=ffffffff0c71ad3c INSN=e190
[    8.436515][    C2] handle_scalar_misaligned_load: PC=riscv_cpufeature_patch_func+0x32/0x138 ADDR=ffffffff0c84a645 INSN=c4a903
[    8.436556][    C2] handle_scalar_misaligned_load: PC=riscv_cpufeature_patch_func+0x36/0x138 ADDR=ffffffff0c84a641 INSN=84d583
[    8.436575][    C2] handle_scalar_misaligned_load: PC=riscv_cpufeature_patch_func+0x9a/0x138 ADDR=ffffffff0c84a639 INSN=4a983
[    8.436594][    C2] handle_scalar_misaligned_load: PC=riscv_cpufeature_patch_func+0x9e/0x138 ADDR=ffffffff0c84a63d INSN=44ac83
[    8.436627][    C2] handle_scalar_misaligned_load: PC=riscv_cpufeature_patch_func+0xb2/0x138 ADDR=ffffffff0c84a643 INSN=a4d603

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: openSBI 1.7 causes v6.16-rc boot to hang on VisionFive 2
  2025-07-09  6:46 ` Alexandre Ghiti
                     ` (2 preceding siblings ...)
  2025-07-10 12:51   ` Andreas Schwab
@ 2025-07-10 14:56   ` Andreas Schwab
  3 siblings, 0 replies; 7+ messages in thread
From: Andreas Schwab @ 2025-07-10 14:56 UTC (permalink / raw)
  To: Alexandre Ghiti; +Cc: linux-riscv

On Jul 09 2025, Alexandre Ghiti wrote:

> Do you have a means to know what happens here (pc, sepc, stval etc)? I
> don't have this board to give it a try.

Apparently disabling unused clocks kills the early console, and booting
with clk_ignore_unused reveals the real bug:

[   15.362214][    C2] ------------[ cut here ]------------
[   15.362239][    C2] kernel BUG at arch/riscv/kernel/patch.c:54!
[   15.362265][    C2] Kernel BUG [#1]
[   15.362279][    C2] Modules linked in: blake2b_generic xor raid6_pq dmi_sysfs
[   15.362348][    C2] CPU: 2 UID: 0 PID: 240 Comm: modprobe Not tainted 6.16.0-rc5-113-default #1 PREEMPT(voluntary) openSUSE Tumbleweed (unreleased)  c33d66cc520b3125c763ff4496b8fbb5b54061ef
[   15.362389][    C2] Hardware name: starfive StarFive VisionFive 2 v1.2A/StarFive VisionFive 2 v1.2A, BIOS 2025.07 07/01/2025
[   15.362406][    C2] epc : __patch_insn_write+0x3d8/0x3e8
[   15.362457][    C2]  ra : __patch_insn_write+0x132/0x3e8
[   15.362487][    C2] epc : ffffffff9d61ade8 ra : ffffffff9d61ab42 sp : ffffffc6005ab920
[   15.362506][    C2]  gp : ffffffff9fe6e900 tp : ffffffd6c0f96e40 t0 : ffffffff9d622468
[   15.362525][    C2]  t1 : 0000000000006000 t2 : 0000000000001000 s0 : ffffffc6005ab980
[   15.362542][    C2]  s1 : 0000000000000000 a0 : 0000000000000000 a1 : 0000000020345c44
[   15.362558][    C2]  a2 : 0000000000000004 a3 : ffffffff9e46f388 a4 : 0000000000000000
[   15.362574][    C2]  a5 : 0000000000000000 a6 : ffffffffa01789f8 a7 : 0000000054494d45
[   15.362591][    C2]  s2 : 0000000020345c44 s3 : 0000000000000c44 s4 : 0000000000000c48
[   15.362608][    C2]  s5 : 0000000000000fff s6 : 0000000000002000 s7 : ffffffff9f2358f8
[   15.362624][    C2]  s8 : 0000000000000004 s9 : 0000000020347484 s10: 0000000000000000
[   15.362640][    C2]  s11: ffffffff203946d8 t3 : 0000000000000001 t4 : ffffffd6c0f96f00
[   15.362658][    C2]  t5 : 0000000000000400 t6 : 0000000000000000
[   15.362671][    C2] status: 0000000200000120 badaddr: 0000000000000000 cause: 0000000000000003
[   15.362690][    C2] [<ffffffff9d61ade8>] __patch_insn_write+0x3d8/0x3e8
[   15.362726][    C2] [<ffffffff9d61afa8>] patch_text_nosync+0x48/0x80
[   15.362760][    C2] [<ffffffff9d614f92>] riscv_cpufeature_patch_func+0xc2/0x130
[   15.362795][    C2] [<ffffffff9d614108>] _apply_alternatives+0x90/0xb8
[   15.362825][    C2] [<ffffffff9d61431c>] apply_module_alternatives+0x14/0x28
[   15.362855][    C2] [<ffffffff9d62032e>] module_finalize+0x66/0xa0
[   15.362887][    C2] [<ffffffff9d714a32>] load_module+0x151a/0x1f48
[   15.362914][    C2] [<ffffffff9d7156a2>] init_module_from_file+0x82/0xe0
[   15.362940][    C2] [<ffffffff9d71594a>] __riscv_sys_finit_module+0x24a/0x348
[   15.362967][    C2] [<ffffffff9e257796>] do_trap_ecall_u+0x3be/0x498
[   15.362997][    C2] [<ffffffff9e266414>] handle_exception+0x154/0x160
[   15.363054][    C2] Code: 17a6 8726 97b6 7863 00d7 b683 030a 05b3 40d7 bfa9 (9002) 4605 
[   15.363076][    C2] ---[ end trace 0000000000000000 ]---
[   15.363092][    C2] Kernel panic - not syncing: Fatal exception in interrupt
[   15.363107][    C2] SMP: stopping secondary CPUs
[   15.363145][    C2] Kernel Offset: 0x1d600000 from 0xffffffff80000000

So it looks like the insn decoder is broken.  Instrumenting the kernel
shows the following insns being emulated:

[    7.318366][    C0] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c5ba14a INSN=c190
[    7.318401][    C0] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c5ba146 INSN=c190
[    7.318459][    C0] handle_scalar_misaligned_load: PC=riscv_cpufeature_patch_func+0x32/0x138 ADDR=ffffffff0c5ba152 INSN=c4a903
[    7.476473][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a7c3 INSN=c59023
[    7.476519][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a7bd INSN=c190
[    7.476538][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a7b9 INSN=c190
[    7.476556][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a7b3 INSN=c59023
[    7.476575][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a7ad INSN=c190
[    7.476593][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a7a9 INSN=c190
[    7.476612][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a79d INSN=c190
[    7.476630][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a799 INSN=c190
[    7.476648][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a793 INSN=c59023
[    7.476666][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a78d INSN=c190
[    7.476684][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a789 INSN=c190
[    7.476703][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a77d INSN=c190
[    7.476722][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a779 INSN=c190
[    7.476740][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a773 INSN=c59023
[    7.476758][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a76d INSN=c190
[    7.476777][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a769 INSN=c190
[    7.476795][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a75d INSN=c190
[    7.476814][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a753 INSN=c59023
[    7.476832][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a74d INSN=c190
[    7.476850][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a749 INSN=c190
[    7.476868][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a743 INSN=c59023
[    7.476887][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a73d INSN=c190
[    7.476906][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a733 INSN=c59023
[    7.476924][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a72d INSN=c190
[    7.476942][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a729 INSN=c190
[    7.476961][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a723 INSN=c59023
[    7.476979][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a7a3 INSN=c59023
[    7.476998][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a713 INSN=c59023
[    7.477018][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a70d INSN=c190
[    7.477036][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a709 INSN=c190
[    7.477055][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a703 INSN=c59023
[    7.477074][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a6f9 INSN=c190
[    7.477093][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a783 INSN=c59023
[    7.477111][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a6f3 INSN=c59023
[    7.477130][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a6ed INSN=c190
[    7.477149][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a6e9 INSN=c190
[    7.477168][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a6e3 INSN=c59023
[    7.477187][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a6d9 INSN=c190
[    7.477205][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a763 INSN=c59023
[    7.477224][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a6d3 INSN=c59023
[    7.477243][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a6cd INSN=c190
[    7.477262][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a759 INSN=c190
[    7.477280][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a6c9 INSN=c190
[    7.477299][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a6c3 INSN=c59023
[    7.477318][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a6bd INSN=c190
[    7.477337][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a6b9 INSN=c190
[    7.477356][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a6b3 INSN=c59023
[    7.477374][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a6ad INSN=c190
[    7.477393][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a739 INSN=c190
[    7.477411][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a6a9 INSN=c190
[    7.477430][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a6a3 INSN=c59023
[    7.477449][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a69d INSN=c190
[    8.111827][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a699 INSN=c190
[    8.111852][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a693 INSN=c59023
[    8.111871][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a71d INSN=c190
[    8.111890][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a68d INSN=c190
[    8.111909][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a719 INSN=c190
[    8.111928][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a689 INSN=c190
[    8.111946][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a683 INSN=c59023
[    8.111965][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a67d INSN=c190
[    8.111984][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a679 INSN=c190
[    8.112003][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a673 INSN=c59023
[    8.112022][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a6fd INSN=c190
[    8.112040][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a66d INSN=c190
[    8.112059][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a669 INSN=c190
[    8.112078][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a663 INSN=c59023
[    8.112097][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a65d INSN=c190
[    8.112116][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a659 INSN=c190
[    8.112135][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a653 INSN=c59023
[    8.112153][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a6dd INSN=c190
[    8.112171][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a64d INSN=c190
[    8.112190][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a649 INSN=c190
[    8.112209][    C2] handle_scalar_misaligned_store: PC=apply_16_bit_accumulation+0xe/0x48 ADDR=ffffffff0c84a643 INSN=c59023
[    8.112228][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a63d INSN=c190
[    8.112247][    C2] handle_scalar_misaligned_store: PC=apply_32_bit_accumulation+0x10/0x48 ADDR=ffffffff0c84a639 INSN=c190
[    8.113036][    C2] handle_scalar_misaligned_store: PC=apply_r_riscv_64_rela+0x14/0x28 ADDR=ffffffff0c71ad0c INSN=e190
[    8.113062][    C2] handle_scalar_misaligned_store: PC=apply_r_riscv_64_rela+0x14/0x28 ADDR=ffffffff0c71ad34 INSN=e190
[    8.113078][    C2] handle_scalar_misaligned_store: PC=apply_r_riscv_64_rela+0x14/0x28 ADDR=ffffffff0c71ad3c INSN=e190
[    8.436515][    C2] handle_scalar_misaligned_load: PC=riscv_cpufeature_patch_func+0x32/0x138 ADDR=ffffffff0c84a645 INSN=c4a903
[    8.436556][    C2] handle_scalar_misaligned_load: PC=riscv_cpufeature_patch_func+0x36/0x138 ADDR=ffffffff0c84a641 INSN=84d583
[    8.436575][    C2] handle_scalar_misaligned_load: PC=riscv_cpufeature_patch_func+0x9a/0x138 ADDR=ffffffff0c84a639 INSN=4a983
[    8.436594][    C2] handle_scalar_misaligned_load: PC=riscv_cpufeature_patch_func+0x9e/0x138 ADDR=ffffffff0c84a63d INSN=44ac83
[    8.436627][    C2] handle_scalar_misaligned_load: PC=riscv_cpufeature_patch_func+0xb2/0x138 ADDR=ffffffff0c84a643 INSN=a4d603

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-08-12 22:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-08 10:21 openSBI 1.7 causes v6.16-rc boot to hang on VisionFive 2 Andreas Schwab
2025-07-09  6:46 ` Alexandre Ghiti
2025-07-09  7:21   ` Andreas Schwab
2025-07-10 10:21   ` Andreas Schwab
2025-07-10 12:51   ` Andreas Schwab
2025-07-10 14:56   ` Andreas Schwab
  -- strict thread matches above, loose matches on Subject: below --
2025-07-08  9:53 Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).