Enablement clk-rv1106.c drifted from the clock patch #16

Closed
opened 2026-10-09 10:14:42 -06:00 by noah · 2 comments
Owner

kernel/rv1106-enablement/clk/clk-rv1106.c documents the hardware-verified source of patches/10-clk-rv1106.patch and must not drift from it. Found during rebuild M0: the patch gives clk_core_mcu CLK_IGNORE_UNUSED (so the HPMCU clock survives clk_disable_unused() on 6.18) but the enablement copy still had flags 0 for it, and clk_core_mcu_rtc (the HPMCU mtime clock) had flags 0 in both.

Fix: both clocks carry CLK_IGNORE_UNUSED in both files, with a comment; the files are identical again in the clk-rv1106.c body. Regression test: flare-edge tests/guards/run-kernel-clk-flags-tests.sh reads both files and fails on a doctored copy of either flag.

Fixed on branch rb/w04-kernel-options (commit 0360b8d).

kernel/rv1106-enablement/clk/clk-rv1106.c documents the hardware-verified source of patches/10-clk-rv1106.patch and must not drift from it. Found during rebuild M0: the patch gives clk_core_mcu CLK_IGNORE_UNUSED (so the HPMCU clock survives clk_disable_unused() on 6.18) but the enablement copy still had flags 0 for it, and clk_core_mcu_rtc (the HPMCU mtime clock) had flags 0 in both. Fix: both clocks carry CLK_IGNORE_UNUSED in both files, with a comment; the files are identical again in the clk-rv1106.c body. Regression test: flare-edge tests/guards/run-kernel-clk-flags-tests.sh reads both files and fails on a doctored copy of either flag. Fixed on branch rb/w04-kernel-options (commit 0360b8d).
Author
Owner

Fixed on branch rb/w04-kernel-options in commit 0360b8d (both clocks carry CLK_IGNORE_UNUSED in the patch and in the enablement copy). Guard: flare-edge tests/guards/run-kernel-clk-flags-tests.sh. Closing when the branch merges into the rebuild branch.

Fixed on branch rb/w04-kernel-options in commit 0360b8d (both clocks carry CLK_IGNORE_UNUSED in the patch and in the enablement copy). Guard: flare-edge tests/guards/run-kernel-clk-flags-tests.sh. Closing when the branch merges into the rebuild branch.
Author
Owner

Fixed on SDK rebuild by PR #17 (merge commit 5507842, commit 0360b8d). Verified on the flashed batch kernel (bench panel, uptime 1,536 s): clk_core_mcu lists CLK_IGNORE_UNUSED, clk_core_mcu_rtc lists CLK_SET_RATE_PARENT and CLK_IGNORE_UNUSED, and the disarmed HPMCU watchdog image counted for 90 s. The flare-edge guard run-kernel-clk-flags-tests.sh reads both files (proven red against a copy without either flag).

Fixed on SDK rebuild by PR #17 (merge commit 5507842, commit 0360b8d). Verified on the flashed batch kernel (bench panel, uptime 1,536 s): clk_core_mcu lists CLK_IGNORE_UNUSED, clk_core_mcu_rtc lists CLK_SET_RATE_PARENT and CLK_IGNORE_UNUSED, and the disarmed HPMCU watchdog image counted for 90 s. The flare-edge guard run-kernel-clk-flags-tests.sh reads both files (proven red against a copy without either flag).
noah closed this issue 2026-10-09 20:39:30 -06:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: blueflare/bfe-core1106-sdk#16