Skip to content

SM8750: persist RTC offset in SDAM#3033

Open
andrebraga wants to merge 1 commit into
ROCKNIX:nextfrom
andrebraga:pr/sm8750-rtc-persist-offset
Open

SM8750: persist RTC offset in SDAM#3033
andrebraga wants to merge 1 commit into
ROCKNIX:nextfrom
andrebraga:pr/sm8750-rtc-persist-offset

Conversation

@andrebraga

Copy link
Copy Markdown
Contributor

Summary

  • What is the goal of this PR?

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

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
andrebraga force-pushed the pr/sm8750-rtc-persist-offset branch from 90a67ff to 4654181 Compare July 17, 2026 10:57
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
andrebraga force-pushed the pr/sm8750-rtc-persist-offset branch from 4654181 to db114b1 Compare July 17, 2026 10:58
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant