Skip to content

app: enable user-LL for Intel PTL os_linux build - #11244

Open
kv2019i wants to merge 2 commits into
thesofproject:mainfrom
kv2019i:202609-enable-userll-for-ptl-linux
Open

kv2019i wants to merge 2 commits into
thesofproject:mainfrom
kv2019i:202609-enable-userll-for-ptl-linux

Conversation

@kv2019i

@kv2019i kv2019i commented Sep 28, 2026

Copy link
Copy Markdown
Collaborator

Following up to the longrunning PR #10558 , this PR contains final changes to toggle Intel PTL builds with Linux overlay, to run all audio pipelines in user-space.

The full user-space builds now cover all functionality required to run SOF with upstream topologies and is designed to cover all content we have in pull-request CI.

Some features not yet working (for these, need to build SOF without the overlay until support is added):

  • multicore cross-pipeline connection
  • IPC4 telemetry support
  • wake-on-voice and the keyphrase-buffer component (notification and EDF scheduling support)
  • debug: module performance tracing (app/perf_overlay.conf)
  • some modules that are not user-space compatible yet: DAX (spinlock usage),

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.

Copilot review overview

🟡 Changes recommended

The heap reservation can starve non-vregion allocations unless the regular heap is increased or separated.

Review effort: Lite
Findings: 1 Medium severity

Open (1)
What changed in this PR

Enables automatic Intel PTL user-space LL support for Linux-overlay builds.

Changes:

  • Automatically includes the PTL user-space LL overlay.
  • Updates user-space heap and memory-domain configuration.
File Summary
app/​overlays/​ptl/​ll_userspace_overlay.conf Configures user-space LL memory and partitions; the regular heap must account for the reserved user heap.
app/​CMakeLists.txt Automatically includes the PTL user-space LL overlay.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

# Allocate majority of heap to user-space but only
# via vregions. Keep 0x40000 for non-vregion allocs.
CONFIG_SOF_ZEPHYR_SYS_USER_HEAP_SIZE=0x40000
CONFIG_SOF_ZEPHYR_HEAP_SIZE=0x60000

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fixed in V2. Removed the number from comment, this is bound to get out-of-sync with the settings. The settings in this PR are intentional.

@lgirdwood lgirdwood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@kv2019i just 1 copilot open.

@lyakh lyakh left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

does it already work with the debug overlay?..

Increase the max limit for memory partitions to allow running
SOF with sof-ptl-nocodec.tplg when running all pipelines in user-space.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
When building ptl for Linux (i.e. os_linux_overlay.conf is in
EXTRA_CONF_FILE), automatically append ll_userspace_overlay.conf so
callers do not need to pass it explicitly. A double-inclusion guard
is included for the case where the caller already lists it.

This keeps os_linux_overlay.conf target-agnostic while ensuring all
ptl Linux builds get the LL userspace configuration.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
@kv2019i
kv2019i force-pushed the 202609-enable-userll-for-ptl-linux branch from 0de921f to 49cc50d Compare September 29, 2026 10:27
@kv2019i

kv2019i commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator Author

@lyakh wrote:

does it already work with the debug overlay?..

Ack, retest today, with HDa generic and PTL nocodec, assert-enabled build also works.

@kv2019i

kv2019i commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator Author

V2:

  • address one copilot review comment in overlay conf file comments
  • no functional changes

@lyakh

lyakh commented Sep 30, 2026

Copy link
Copy Markdown
Collaborator

@lyakh wrote:

does it already work with the debug overlay?..

Ack, retest today, with HDa generic and PTL nocodec, assert-enabled build also works.

@kv2019i I'll assume, that other settings from the debug overlay work too - like the boot-time testing, at least in its reduced scope

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