Skip to content

Revert UAOL default disable and implement runtime capability check - #11584

Open
ujfalusi wants to merge 2 commits into
thesofproject:mainfrom
ujfalusi:peter/pr/uaol-host-enabled
Open

ujfalusi wants to merge 2 commits into
thesofproject:mainfrom
ujfalusi:peter/pr/uaol-host-enabled

Conversation

@ujfalusi

@ujfalusi ujfalusi commented Dec 2, 2026

Copy link
Copy Markdown
Contributor
UAOL is enabled by default on all ACE platforms, but Linux 7.0 and older
do not enable UAOL access and reading the UAOL capabilities causes a DSP
panic with them. SOF_OS_LINUX_COMPAT_PRIORITY was used to skip reading
the capabilities, which made the UAOL support a build time choice and
disabling COMPAT_PRIORITY to get UAOL also changed unrelated defaults,
like VIRTUAL_HEAP_EXTENDED.

Replace the build time guard with a runtime one: the host confirms that
the UAOL registers can be accessed by sending an IPC4_UAOL_SUPPORT tuple
with value 1 in a FW_CONFIG set before it requests the HW_CONFIG. The
UAOL capabilities are only reported in HW_CONFIG after this, a host not
sending the tuple (or sending 0) does not get UAOL capabilities and no
UAOL hardware access is done.

The host queries the configuration once on first boot, so the setting
does not need to be preserved over firmware reboots.

…IORITY"

This reverts commit 829c0ac.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Copilot AI balanced review requested due to automatic review settings December 2, 2026 06:48

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.

🔵 Needs a closer look

The Zephyr UAOL driver is outside this checkout, so verifying no register access before host opt-in requires external driver review or ACE hardware validation with older hosts.

No open issues 🎉

What changed in this PR

Restores default USB Audio Offload Link (UAOL) support on ACE platforms while requiring host confirmation before reading hardware capabilities, avoiding DSP panics with older hosts.

Changes:

  • Adds runtime UAOL capability gating through IPC4_UAOL_SUPPORT.
  • Restores the ACE default and removes redundant build-time overlays.
File Description
src/​kernel/​audio/​base_fw_intel.c Handles host confirmation and gates UAOL capability reads.
app/​uaol_overlay.conf Removes the dedicated UAOL enablement overlay.
app/​internal_ci_overlay.conf Removes the explicit UAOL override.
app/​boards/​intel_adsp/​Kconfig.defconfig Enables UAOL by default on ACE platforms.

Review effort: Balanced

@intel-sofci

intel-sofci commented Dec 2, 2026 •

Copy link
Copy Markdown

PR 11584: test results

Run date: 2026-12-02 15:19 UTC

Tested commit: b215c87095dc0b5b7f83c1c4b2510395c860c904

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

@kv2019i kv2019i 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.

Code looks in general good, a few minor notes inline.

* the UAOL access.
*/
#if CONFIG_UAOL_INTEL_ADSP
if (uaol_host_enabled) {

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.

@ujfalusi Should we add a

if (uaol_host_enabled || IS_ENABLED(CONFIG_UAOL_INTEL_ADSP_ALWAYS_ENABLED))

so you can build a FW that just has it enabled whether host sends the fw config or not. This would allow to leave this behind for newer platforms.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

and how would you do that? The kernel not sending the message on a random platform?
I don't think that makes much sense.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

but we can make the kernel to reply w/ 0 if the booted device does not have UAOL link at all (which is unlikely), but in theory there could be an variant where UAOL is not enabled at all.
In that case even if fw is compiled w/ UAOL support, it should not access UAOL registers, they might not be there at all.

Comment thread src/kernel/audio/base_fw_intel.c Outdated
case IPC4_UAOL_SUPPORT:
if (tlv->length < sizeof(uint32_t)) {
tr_err(&basefw_comp_tr, "UAOL_SUPPORT value too small: %u",
tlv->length);

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.

Fits on one line?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

OK, it is still longer than my preferred 80, but sure

Comment thread src/kernel/audio/base_fw_intel.c Outdated
}
uaol_host_enabled = !!tlv->value[0];
tr_info(&basefw_comp_tr, "FW config set UAOL host support: %u",
uaol_host_enabled);

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.

Fits on one line

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

OK

UAOL is enabled by default on all ACE platforms, but Linux 7.0 and older
do not enable UAOL access and reading the UAOL capabilities causes a DSP
panic with them. SOF_OS_LINUX_COMPAT_PRIORITY was used to skip reading
the capabilities, which made the UAOL support a build time choice and
disabling COMPAT_PRIORITY to get UAOL also changed unrelated defaults,
like VIRTUAL_HEAP_EXTENDED.

Replace the build time guard with a runtime one: the host confirms that
the UAOL registers can be accessed by sending an IPC4_UAOL_SUPPORT tuple
with value 1 in a FW_CONFIG set before it requests the HW_CONFIG. The
UAOL capabilities are only reported in HW_CONFIG after this, a host not
sending the tuple (or sending 0) does not get UAOL capabilities and no
UAOL hardware access is done.

The host queries the configuration once on first boot, so the setting
does not need to be preserved over firmware reboots.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
@ujfalusi
ujfalusi force-pushed the peter/pr/uaol-host-enabled branch from 5111577 to b215c87 Compare December 2, 2026 14:20
@ujfalusi

ujfalusi commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

Changes since v1:

  • collapse print lines into single one

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.

5 participants