Skip to content

schedule: dp: include the mailbox header in the application scheduler - #11346

Open
lgirdwood wants to merge 1 commit into
thesofproject:mainfrom
lgirdwood:fix/dp-app-mailbox-include
Open

lgirdwood wants to merge 1 commit into
thesofproject:mainfrom
lgirdwood:fix/dp-app-mailbox-include

Conversation

@lgirdwood

Copy link
Copy Markdown
Member

Fixes a build regression from #11330. With CONFIG_SOF_USERSPACE_APPLICATION (CONFIG_USERSPACE without CONFIG_SOF_USERSPACE_PROXY), the build fails with:

src/schedule/zephyr_dp_schedule_application.c:661: error: use of undeclared identifier 'MAILBOX_HOSTBOX_BASE'
src/schedule/zephyr_dp_schedule_application.c:662: error: use of undeclared identifier 'MAILBOX_HOSTBOX_SIZE'

zephyr_dp_schedule_application.c got the host box definitions through sof/audio/pipeline.h, which no longer includes sof/lib/mailbox.h since c8d05c2. This change includes sof/lib/mailbox.h directly.

Tested by building PTL with CONFIG_SOF_USERSPACE_PROXY=n. The build passes at c8d05c2~1, fails at c8d05c2 and on current main, and passes with this change. CI doesn't build this configuration (all CI and overlay builds use the userspace proxy), which is why it was missed.

🤖 Generated with Claude Code

zephyr_dp_schedule_application.c maps the IPC host box into the DP
thread memory domain using MAILBOX_HOSTBOX_BASE and MAILBOX_HOSTBOX_SIZE,
but it got their definitions from sof/audio/pipeline.h, which no longer
includes sof/lib/mailbox.h. Builds with CONFIG_SOF_USERSPACE_APPLICATION,
i.e. CONFIG_USERSPACE without CONFIG_SOF_USERSPACE_PROXY, fail since:

  error: use of undeclared identifier 'MAILBOX_HOSTBOX_BASE'

Include sof/lib/mailbox.h directly.

Fixes: c8d05c2 ("audio: pipeline: do not include the mailbox header from pipeline.h")
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The single-line include restores a required dependency, with no unresolved findings or runtime logic changes.

No open issues 🎉

What changed in this PR

Fixes the application scheduler build regression introduced by #11330 by explicitly including the header that supplies its mailbox definitions.

Changes:

  • Adds sof/lib/mailbox.h directly, restoring builds with CONFIG_SOF_USERSPACE_APPLICATION without changing runtime behavior.
File Description
src/​schedule/​zephyr_dp_schedule_application.c Adds the header required for existing host mailbox references.

Review effort: Balanced

@intel-sofci

Copy link
Copy Markdown

PR 11346: test results

Run date: 2026-10-23 13:52 UTC

Tested commit: 14d2ccb0dec10370f5d53bfb331ae14376155c37

mtl pass rate lnl pass rate ptl pass rate wcl pass rate nvl pass rate

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.

4 participants