Repository navigation
platform, idc: remove unused legacy DAI driver, IDC hooks and no-op stub - #11540
Merged
lgirdwood merged 3 commits intoNov 27, 2026
Merged
Conversation
posix/dai.c implements a legacy SOF DAI driver for the native_sim platform, but nothing has called posix_dai_init(), which registers it, since it was added in commit c50eddc ("platform: Add Zephyr native_posix-based emulation environment"). The native_sim builds use the Zephyr native drivers; the fuzzing configuration gets its DAI from dai_virtual.c (CONFIG_DAI_POSIX). Remove the file and posix_dai_init(). platform/lib/dai.h stays: the ztest unit tests, which do not enable CONFIG_ZEPHYR_NATIVE_DRIVERS, still include it through sof/lib/dai-legacy.h. No functional change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
idc_restore() has had no caller since the XTOS power management code was removed, and it is not declared in any header. The platform IDC hooks platform_idc_init() and platform_idc_restore() are still declared in the Zephyr and posix rtos/idc.h, but no platform defines them since the XTOS IDC drivers were removed. Remove them. No functional change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Commit 580b9cf ("memory: remove platform_shared_commit() as it's a NOP on all platforms") removed it, but the i.MX8ULP platform, added later, brought back an empty copy and a call in platform_clock_init(). Remove both. No functional change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
lgirdwood
marked this pull request as ready for review
November 26, 2026 20:26
lgirdwood
requested review from
abonislawski,
dbaluta,
iuliana-prodan,
kv2019i,
lbetlej,
lyakh,
mmaka1 and
plbossart
as code owners
November 26, 2026 20:26
PR 11540: test resultsRun date: 2026-11-26 21:10 UTC Tested commit: 5cac42fc20125f218736da3fdda1bb388f975d70 |
Member
Author
|
Unrelated CI errors |
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.
Remove the dead platform and IDC code found while cleaning up the platform headers (#11528, #11529, #11532, #11534, #11537). These are functions and a source file, which the header and macro checks did not cover.
Patches
platform: posix: remove the unused legacy DAI driver.src/kernel/platform/posix/dai.cregisters a legacy SOF DAI driver fromposix_dai_init(), but nothing has called that function since it was added in c50eddc. The native_sim builds use the Zephyr native drivers, and the fuzzing configuration gets its DAI fromdai_virtual.c(CONFIG_DAI_POSIX). The posixplatform/lib/dai.hstays, because the ztest unit tests, which do not enableCONFIG_ZEPHYR_NATIVE_DRIVERS, include it throughsof/lib/dai-legacy.h.idc: remove the unusedidc_restore()and platform IDC declarations.idc_restore()has had no caller since the XTOS power management code was removed.platform_idc_init()andplatform_idc_restore()are still declared in the Zephyr and posixrtos/idc.h, but no platform has defined them since the XTOS IDC drivers were removed.platform: imx8ulp: remove the no-opplatform_shared_commit(). 580b9cf removed it as a no-op on all platforms. The i.MX8ULP platform, added later, brought back an empty copy and a call inplatform_clock_init().Functional change
None.
idc.cno longer hasidc_restore(), but the linker already discarded it from the images.Testing
Run on d80a052 (current main), at every commit and at the tip.
Firmware, every commit, incremental builds of 37 configurations:
llext_relocatable.conf, PTL and TGL withdebug_stream_overlay.conf;Each commit builds the same configurations as main (the legacy ones fail with unchanged error sets). Objects, LLEXT modules and images were hashed with the debug sections stripped. Besides the objects that embed the source hash or git version, the only differences are
idc.cfrom patch 2 and the native_simdai.cobject from patch 1, which is no longer built. LLEXT modules that the incremental builds relink also differ, but the pristine tip build shows they are identical.Firmware, tip: a pristine build of the same matrix, compared with a pristine build of main.
init.c,ext_manifest.c, eachplatform.c, the final images) andidc.cin the 18 builds that compile it.idc.cand the PTL image: on PTL,idc.clost exactlyidc_restoreand its__func__string, andzephyr.elfhas an identical symbol set (names and sizes).zephyr/CMakeLists.txtinstead of 576.ninja -t deps): native_sim no longer includes the posixplatform/lib/dai.h.Host, every commit: the host library and the cmocka unit test builds (unit_test, imx8, mtk defconfigs) pass. With the debug sections stripped, all 1,291 objects are identical to main at every commit.
native_sim IPC3/IPC4 stub builds: pass.
ZTest: 23 of 23 pass, run as in CI.
check_kernel_includes.py --sources --strict: passes, and so doescheck_platform_headers.py --strictfrom scripts, .github: check for unused platform headers and macros #11538.Documentation: builds with no warnings at every commit.
🤖 Generated with Claude Code