Repository navigation
Conversation
ujfalusi
commented
Dec 2, 2026
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-03 18:30 UTC Tested commit: cb6f00c7e4ed264e56b67d6f23eb5e21e9b3f78a |
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.
There was a problem hiding this comment.
@ujfalusi possible usages: 1) e.g. sof/app/internal_ci_overlay.conf can set this UAOL_ALWAYS_ENABLED=y and keep testing UAOL with FW test harness, or 2) we decide that in future Intel SoC XYZ, UAOL is always enabled (as part of the platform boot protocol), and kernel does not have to send FW_CONFIG at all.
Not a blocker, this can be always added later in a follow-up PR.
There was a problem hiding this comment.
but how the kernel knows that we decided for XYZ we don't need to send the IPC? That layer has no information on XYZ or YZX or ABC platform. We coud invent new internal flagging in kernel to gate this or that , but does it worth the complexity?
And I would not trust for a second on 'we have decided that UAOL is enabled from now on' as the hardware might disagree... The famous last word will strike and we need to figure out things again to de-flag and back-flag and whatever..
imho.
I agree, internal CI should be unblocked, I was thinging on piggy-backing on CONFIG_SOF_OS_LINUX_COMPAT_PRIORITY=n initially, but we can invent yet another config flag for just this...
| 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); |
5111577 to
b215c87
Compare
|
Changes since v1:
|
b215c87 to
cb6f00c
Compare
…IORITY" This reverts commit 829c0ac. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
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>
The UAOL capabilities are only reported in HW_CONFIG if the host confirms with an IPC4_UAOL_SUPPORT FW_CONFIG set that the UAOL registers can be accessed. The internal CI expects UAOL to be available, but its host does not send IPC4_UAOL_SUPPORT. Add CONFIG_SOF_UAOL_ALWAYS_ENABLED to report the UAOL capabilities without the host confirmation and enable it in internal_ci_overlay.conf. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
|
Changes since v2:
|