Repository navigation
Conversation
Enable CONFIG_COUNTER on intel_adsp_ace30_wcl so Zephyr compiles the ACE ART and RTC counter drivers needed by basefw_get_ext_system_time(). Without CONFIG_COUNTER=y, IPC4_EXTENDED_SYSTEM_TIME falls through to the unavailable path instead of returning the 24-byte extended system time payload. Signed-off-by: Grzegorz Janca <grzegorz.janca@intel.com>
Convert sof_cycle_get_64() to microseconds with k_cyc_to_us_floor64() before subtracting dsp_time in basefw_get_ext_system_time(). basefw_set_system_time() stores dsp_time in microseconds, so subtracting it from raw XTAL cycles and dividing by truncated MHz produced wrong UTC values. Validate ART and RTC counter readiness with device_is_ready() and check counter_get_value_64() return status before building the IPC4 response. Signed-off-by: Grzegorz Janca <grzegorz.janca@intel.com>
gjanca
requested review from
dbaluta,
kv2019i,
lbetlej,
lgirdwood,
mmaka1 and
plbossart
as code owners
December 3, 2026 16:00
Collaborator
|
Can one of the admins verify this patch?
|
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block the IPC4 extended system time changes.
No open issues 🎉
What changed in this PR
Fixes IPC4 extended system time handling in SOF by enabling WCL counters and correcting timestamp calculations.
Changes:
- Enables the counter subsystem on WCL.
- Checks counter readiness and handles read failures.
- Converts DSP cycles to microseconds before calculating elapsed time.
| File | Description |
|---|---|
| src/kernel/audio/base_fw_intel.c | Corrects time conversion and validates counter access. |
| app/boards/intel_adsp_ace30_wcl.conf | Enables CONFIG_COUNTER for WCL. |
Review effort: Balanced
lgirdwood
approved these changes
Dec 3, 2026
Member
|
test this please |
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.
Missing
CONFIG_COUNTER=yon WCLbasefw_get_ext_system_time() in sof/src/kernel/audio/base_fw_intel.c is compiled only when both
CONFIG_ACE_V1X_ART_COUNTER and CONFIG_ACE_V1X_RTC_COUNTER are enabled.
These Zephyr drivers depend on CONFIG_COUNTER
Consequently, the WCL build compiles only the return IPC4_UNAVAILABLE
it never reads the counters, calculates UTC, or writes the 24-byte ipc4_ext_system_time structure.
This is the change necessary to reach the valid 24-byte response path on WCL