Repository navigation
Conversation
ujfalusi
commented
Dec 2, 2026
…IORITY" This reverts commit 829c0ac. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
There was a problem hiding this comment.
🔵 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
PR 11584: test resultsRun date: 2026-12-02 15:19 UTC Tested commit: b215c87095dc0b5b7f83c1c4b2510395c860c904 |
kv2019i
left a comment
There was a problem hiding this comment.
Code looks in general good, a few minor notes inline.
| * the UAOL access. | ||
| */ | ||
| #if CONFIG_UAOL_INTEL_ADSP | ||
| if (uaol_host_enabled) { |
There was a problem hiding this comment.
@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.
There was a problem hiding this comment.
and how would you do that? The kernel not sending the message on a random platform?
I don't think that makes much sense.
There was a problem hiding this comment.
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.
| case IPC4_UAOL_SUPPORT: | ||
| if (tlv->length < sizeof(uint32_t)) { | ||
| tr_err(&basefw_comp_tr, "UAOL_SUPPORT value too small: %u", | ||
| tlv->length); |
There was a problem hiding this comment.
OK, it is still longer than my preferred 80, but sure
| } | ||
| uaol_host_enabled = !!tlv->value[0]; | ||
| tr_info(&basefw_comp_tr, "FW config set UAOL host support: %u", | ||
| uaol_host_enabled); |
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>
5111577 to
b215c87
Compare
|
Changes since v1:
|