SM8750: persist RTC offset in SDAM#3033
Open
andrebraga wants to merge 1 commit into
Open
Conversation
aanze
added a commit
to aanze/distribution
that referenced
this pull request
Jul 16, 2026
Upstream PR ROCKNIX#3033 persists the RTC wall-clock offset in pmk8550 SDAM_2 at 0x70-0x73; our panic breadcrumb spanned 0x50..0xb7 and would corrupt the persisted clock whenever it fires. 32 bytes still fits the hung device name. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
aanze
added a commit
to aanze/distribution
that referenced
this pull request
Jul 16, 2026
Upstream PR ROCKNIX#3033 persists the RTC wall-clock offset in pmk8550 SDAM_2 at 0x70-0x73; our panic breadcrumb spanned 0x50..0xb7 and would corrupt the persisted clock whenever it fires. 32 bytes still fits the hung device name. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
andrebraga
force-pushed
the
pr/sm8750-rtc-persist-offset
branch
from
July 17, 2026 10:57
90a67ff to
4654181
Compare
RTC regs are TZ-locked; rtc-pm8xxx stores wall-clock as an offset. The vendor keeps it in a UEFI variable, unreachable under ROCKNIX (ABL boot, no EFI runtime), so the clock resets to epoch every boot. Back it with an nvmem cell in the always-on PMK8550 SDAM. 0x70 is a free slot in the scratch window (0x40-0x7f), verified on Odin 3 to survive cold power-off.
andrebraga
force-pushed
the
pr/sm8750-rtc-persist-offset
branch
from
July 17, 2026 10:58
4654181 to
db114b1
Compare
aanze
added a commit
to aanze/distribution
that referenced
this pull request
Jul 17, 2026
Upstream PR ROCKNIX#3033 persists the RTC wall-clock offset in pmk8550 SDAM_2 at 0x70-0x73; our panic breadcrumb spanned 0x50..0xb7 and would corrupt the persisted clock whenever it fires. 32 bytes still fits the hung device name. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
aanze
added a commit
to aanze/distribution
that referenced
this pull request
Jul 17, 2026
Upstream PR ROCKNIX#3033 persists the RTC wall-clock offset in pmk8550 SDAM_2 at 0x70-0x73; our panic breadcrumb spanned 0x50..0xb7 and would corrupt the persisted clock whenever it fires. 32 bytes still fits the hung device name. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
RTC regs are TZ-locked; rtc-pm8xxx stores wall-clock as an offset. The vendor keeps it in a UEFI variable, unreachable under ROCKNIX (ABL boot, no EFI runtime), so the clock resets to epoch every boot.
Back it with an nvmem cell in the always-on PMK8550 SDAM. 0x70 is a free slot in the scratch window (0x40-0x7f).
Testing
Verified on Odin 3 to survive cold power-off
AI Usage
While ROCKNIX doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it
helps set the right context for reviewers.
Did you use AI tools to help write this code? PARTIALLY