From 7cf17f4555530af40d8ca932e332e7c667afbd5d Mon Sep 17 00:00:00 2001 From: Peter Ujfalusi Date: Wed, 25 Nov 2026 14:56:29 +0200 Subject: [PATCH] intel: uaol: disable UAOL by default instead of via COMPAT_PRIORITY UAOL was enabled by default on all ACE platforms and SOF_OS_LINUX_COMPAT_PRIORITY only skipped reading the UAOL capabilities, because Linux 7.0 and older do not enable UAOL access and reading the capabilities causes a DSP panic. In the default build the firmware thus reported UAOL as supported, but provided no UAOL capabilities, and disabling COMPAT_PRIORITY to get UAOL also changed unrelated defaults, like VIRTUAL_HEAP_EXTENDED. Make UAOL an explicit opt-in instead: drop the ACE default for CONFIG_UAOL, remove the COMPAT_PRIORITY guards around the UAOL capabilities, add app/uaol_overlay.conf to enable UAOL and enable CONFIG_UAOL in internal_ci_overlay.conf. With UAOL disabled the firmware reports no UAOL support and does not access the UAOL hardware, with UAOL enabled the capabilities are always reported. Signed-off-by: Peter Ujfalusi --- app/boards/intel_adsp/Kconfig.defconfig | 3 --- app/internal_ci_overlay.conf | 5 +++++ app/uaol_overlay.conf | 9 +++++++++ src/include/sof/audio/intel_uaol.h | 2 -- src/kernel/audio/base_fw_intel.c | 7 ++++--- src/kernel/audio/intel_uaol-kernel.c | 2 -- 6 files changed, 18 insertions(+), 10 deletions(-) create mode 100644 app/uaol_overlay.conf diff --git a/app/boards/intel_adsp/Kconfig.defconfig b/app/boards/intel_adsp/Kconfig.defconfig index 0fd7126d58d1..f656ec2f7aca 100644 --- a/app/boards/intel_adsp/Kconfig.defconfig +++ b/app/boards/intel_adsp/Kconfig.defconfig @@ -120,9 +120,6 @@ config INTEL_ADSP_TIMER config MM_DRV default y -config UAOL - default y if ACE - # # Zephyr / power settings # ---------------------------------------- diff --git a/app/internal_ci_overlay.conf b/app/internal_ci_overlay.conf index 01193afaa8d0..51f67e616d8a 100644 --- a/app/internal_ci_overlay.conf +++ b/app/internal_ci_overlay.conf @@ -18,3 +18,8 @@ # virtual heap buffers (VIRTUAL_HEAP_EXTENDED) on platforms # that support them. CONFIG_SOF_OS_LINUX_COMPAT_PRIORITY=n + +# Enable USB Audio Offload Link (UAOL) support. It is disabled by +# default as Linux 7.0 and older do not enable UAOL access and +# reading the UAOL capabilities would cause a DSP panic. +CONFIG_UAOL=y diff --git a/app/uaol_overlay.conf b/app/uaol_overlay.conf new file mode 100644 index 000000000000..aa71045c9403 --- /dev/null +++ b/app/uaol_overlay.conf @@ -0,0 +1,9 @@ +# +# Enable USB Audio Offload Link (UAOL) support on platforms that have +# UAOL hardware (Intel ACE 2.0 / LNL and later). +# +# UAOL is disabled by default as Linux 7.0 and older do not enable +# UAOL access and reading the UAOL capabilities would cause a DSP +# panic. Only use this overlay with a host driver that supports UAOL. +# +CONFIG_UAOL=y diff --git a/src/include/sof/audio/intel_uaol.h b/src/include/sof/audio/intel_uaol.h index 6f6947d4c22c..53330871ebc7 100644 --- a/src/include/sof/audio/intel_uaol.h +++ b/src/include/sof/audio/intel_uaol.h @@ -13,9 +13,7 @@ struct sof_tlv; struct device; -#if !CONFIG_SOF_OS_LINUX_COMPAT_PRIORITY __cold void tlv_value_set_uaol_caps(struct sof_tlv *tuple, uint32_t type); -#endif /* !CONFIG_SOF_OS_LINUX_COMPAT_PRIORITY */ __cold int uaol_stream_id_to_hda_link_stream_id(int uaol_stream_id); diff --git a/src/kernel/audio/base_fw_intel.c b/src/kernel/audio/base_fw_intel.c index 2b7c46ae59f6..dcc3d74331d7 100644 --- a/src/kernel/audio/base_fw_intel.c +++ b/src/kernel/audio/base_fw_intel.c @@ -133,9 +133,10 @@ __cold int basefw_vendor_hw_config(uint32_t *data_offset, char *data) /* Linux 7.0 and older do not enable UAOL for any Intel * hardware, so below capability check will lead to a DSP - * panic. In strict compatibility mode, bypass the capability - * check. */ -#if !defined(CONFIG_SOF_OS_LINUX_COMPAT_PRIORITY) && defined(CONFIG_UAOL_INTEL_ADSP) + * panic. UAOL is therefore disabled by default and must be + * enabled explicitly with CONFIG_UAOL. + */ +#if CONFIG_UAOL_INTEL_ADSP tuple = tlv_next(tuple); tlv_value_set_uaol_caps(tuple, IPC4_UAOL_CAPS_HW_CFG); #endif diff --git a/src/kernel/audio/intel_uaol-kernel.c b/src/kernel/audio/intel_uaol-kernel.c index 788bf49893ec..f7ef190d2b25 100644 --- a/src/kernel/audio/intel_uaol-kernel.c +++ b/src/kernel/audio/intel_uaol-kernel.c @@ -30,7 +30,6 @@ struct ipc4_uaol_capabilities { struct ipc4_uaol_link_capabilities link_caps[]; } __packed __aligned(4); -#if !CONFIG_SOF_OS_LINUX_COMPAT_PRIORITY __cold void tlv_value_set_uaol_caps(struct sof_tlv *tuple, uint32_t type) { const size_t dev_count = ARRAY_SIZE(uaol_devs); @@ -59,7 +58,6 @@ __cold void tlv_value_set_uaol_caps(struct sof_tlv *tuple, uint32_t type) tlv_value_set(tuple, type, caps_size, caps); } -#endif /* !CONFIG_SOF_OS_LINUX_COMPAT_PRIORITY */ __cold int uaol_stream_id_to_hda_link_stream_id(int uaol_stream_id) {