Linux 6.2 fails to reboot with current u-boot-nezha

Bug #2021364 reported by Heinrich Schuchardt
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
u-boot-nezha (Ubuntu)
Triaged
Wishlist
Heinrich Schuchardt

Bug Description

Emil Renner Berthing reported that with Linux 6.2 he has to disabled the cpufreq_dt module to reboot when booted from u-boot-nezha-2022.10-1089-g528ae9bc6c but not when booted from u-boot-nezha-2022.04+git20220405.7446a472-0ubuntu2.

"About cpufreq_dt on the Lichee RV: I think there might be something wrong with the latest Lichee RV u-boot from Lunar. On my Lichee RV Dock with that I get this:

root@lichee~# cat /sys/kernel/debug/clk/riscv/clk_rate
408000000
But on my Nezha board with the older u-boot (in 2 parts with spl and toc1) I get this:

root@nezha~# cat /sys/kernel/debug/clk/riscv/clk_rate
1008000000
Now I just changed the device tree on my Nezha sd-card, moved it to the Lichee RV Dock and booted it there, and I get 1008MHz on the Lichee RV (and cpufreq_dt works).
The "riscv" clock is the main clock for the risc-v core."

The seems to be related to the following change in upstream:

https://github.com/xypron/nezha-u-boot
git diff smauel-d1-wip-2022-11-15..smauel-d1-wip-2022-11-31 arch/riscv/dts/sun20i-d1.dtsi

- // FIXME: no riscv architecture support for cpufreq
- cpu_opp_table: cpu-opp-table {
- compatible = "allwinner,sun20i-d1-operating-points",
- "allwinner,sun50i-h6-operating-points";
- nvmem-cells = <&cpu_speed_grade>;
-
- opp-1080000000 {
- // FIXME: this is probably wrong now.
- clock-latency-ns = <244144>; /* 8 32k periods */
- opp-hz = /bits/ 64 <1008000000>;
-
- // FIXME: derive a real voltage range.
- opp-microvolt-speed0 = <1100000>;
- };
- };

Revision history for this message
Heinrich Schuchardt (xypron) wrote :

The 40800000 operating point was introduced in Linux v6.3 with commit
077e5f4f5528 ("riscv: dts: allwinner: Add the D1/D1s SoC devicetree")

Changed in u-boot-nezha (Ubuntu):
assignee: nobody → Heinrich Schuchardt (xypron)
Changed in u-boot-nezha (Ubuntu):
importance: Undecided → Wishlist
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.