From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796384163; b=fqO6JUIq9RVRvcK5Ha8ywEpjv4KLXJxYXgNauyX4SRTJuXvwRH187LnDiiK4KiNTCJ0w zeo0FQGRjuCyJ0LHCQiO5oN8w27GpigyMGFrT9oiPVuv7/1Tr3fAiUysGHB7WxQxZIRvv byJyanM/22yPNgU8ETvTQCqidVusm+ysIU+MjrLJqPO1bYzauDRafOK1tvdHmeXUP/7L9 vAO9loZt0OUJ24158WlAesuWUIbiFmMOU3aXAnLlmfM5Ioqn7NW9uLETi7r8bxUkKKujn SwNM4Q9zb9baSAeFLtFIhoB/AeF3JcXpDKiKY5PfwNSA8JILAa75jMoD2B5SKk56gJw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796384163; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=AMOZJtXW5X+l6WQMlHvDvz+74XjoKsRntF7BXQS2lq8=; b=15ASvTZDu/+Og9vihvlWntFwSKvHNcStLShd+LnYciyb/kuDMJZ9r+8XKfWaZf4ezDGv EsSX8U5c1oSQGWPrRjKtDlQf0X1EQ4619xMYTQkFdG7IU/qV6TPDlhjZz7LXnZVYXkHeN WtYPz2ZVDQ0xx37Ty5kNNOtQYRevHvc9J19vkHsx/nZqqak4R8GOUGX3DaTyVErm9j2yx 5YGCmyNs0S2uwEhLN39x+tISoKRDpmSvXKzfDuoYd04zdL4OQIi6ndo39TapNjMjiR+Ml bkXgbV5dvb4tyRzHe/LZrOQPIpqpCm67d5mAI8TbJgPc3d7KDDFDmMMUB82wa/Kv6Uw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=DSSYIpVO; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7898B606A32C; Fri, 4 Dec 2026 11:36:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=DSSYIpVO Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA6F41F000CE; Fri, 4 Dec 2026 11:36:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796384163; bh=AMOZJtXW5X+l6WQMlHvDvz+74XjoKsRntF7BXQS2lq8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=DSSYIpVODXxVHMrXhpgiA0Q6Ti1Vlt880UADott3BpFVlTnYhYYkROJ3ShJQg8uf9 7bIsOe7OD4yq+5KgkPfpIsdZc9nCnwPaOLPrhbxl8ZRVa9kP6oab/f0knXcvx0EZMU eeZQD4W/VRpkdoHtrpw+6DMIrLPi0GWANmydHFng= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Peter Ujfalusi , Bard Liao , Kai Vehmanen , Mark Brown , Sasha Levin Subject: [PATCH 6.12 523/555] ASoC: SOF: Intel: lnl: Enable offload for UAOL link Date: Fri, 4 Dec 2026 19:09:26 +0900 Message-ID: <20261204100628.662906272@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100603.988357525@linuxfoundation.org> References: <20261204100603.988357525@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Peter Ujfalusi commit fdfbd9ff86a145f09978ab49305ed7acfad66a1d upstream. The handling of UAOL (USB Audio Offload Link) is similar to SSP and DMIC, it is handled by the DSP firmware. Set the offload enable for it similar to SSP and DMIC. Cc: # 6.12.x Signed-off-by: Peter Ujfalusi Reviewed-by: Bard Liao Reviewed-by: Kai Vehmanen Link: https://patch.msgid.link/20260520150639.25301-3-peter.ujfalusi@linux.intel.com Signed-off-by: Mark Brown [ Peter: Adjusted to the int returning hdac_bus_eml_enable_offload() as commit 978152b2cab5 ("ASoC: SOF: Intel: hda-mlink/lnl: Convert offload enable functions to void") is not backported. The helper is renamed from hdac_bus_offload_dmic_ssp() to hdac_bus_set_dsp_offload() to match upstream, since it now also handles UAOL. Firmware built with UAOL support reads the UAOL registers and crashes if the host has not granted the DSP access to them. ] Signed-off-by: Sasha Levin --- sound/soc/sof/intel/lnl.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/sound/soc/sof/intel/lnl.c b/sound/soc/sof/intel/lnl.c index 3d5a1f8b17e5c..0d5ab01d7555e 100644 --- a/sound/soc/sof/intel/lnl.c +++ b/sound/soc/sof/intel/lnl.c @@ -31,8 +31,8 @@ static const struct snd_sof_debugfs_map lnl_dsp_debugfs[] = { {"fw_regs", HDA_DSP_BAR, MTL_SRAM_WINDOW_OFFSET(0), 0x1000, SOF_DEBUGFS_ACCESS_D0_ONLY}, }; -/* this helps allows the DSP to setup DMIC/SSP */ -static int hdac_bus_offload_dmic_ssp(struct hdac_bus *bus, bool enable) +/* Configure DSP offload for DMIC/SSP/UAOL */ +static int hdac_bus_set_dsp_offload(struct hdac_bus *bus, bool enable) { int ret; @@ -46,6 +46,9 @@ static int hdac_bus_offload_dmic_ssp(struct hdac_bus *bus, bool enable) if (ret < 0) return ret; + hdac_bus_eml_enable_offload(bus, true, + AZX_REG_ML_LEPTR_ID_INTEL_UAOL, enable); + return 0; } @@ -57,17 +60,17 @@ static int lnl_hda_dsp_probe(struct snd_sof_dev *sdev) if (ret < 0) return ret; - return hdac_bus_offload_dmic_ssp(sof_to_bus(sdev), true); + return hdac_bus_set_dsp_offload(sof_to_bus(sdev), true); } static void lnl_hda_dsp_remove(struct snd_sof_dev *sdev) { int ret; - ret = hdac_bus_offload_dmic_ssp(sof_to_bus(sdev), false); + ret = hdac_bus_set_dsp_offload(sof_to_bus(sdev), false); if (ret < 0) dev_warn(sdev->dev, - "Failed to disable offload for DMIC/SSP: %d\n", ret); + "Failed to disable offload for DMIC/SSP/UAOL: %d\n", ret); hda_dsp_remove(sdev); } @@ -80,7 +83,7 @@ static int lnl_hda_dsp_resume(struct snd_sof_dev *sdev) if (ret < 0) return ret; - return hdac_bus_offload_dmic_ssp(sof_to_bus(sdev), true); + return hdac_bus_set_dsp_offload(sof_to_bus(sdev), true); } static int lnl_hda_dsp_runtime_resume(struct snd_sof_dev *sdev) @@ -91,7 +94,7 @@ static int lnl_hda_dsp_runtime_resume(struct snd_sof_dev *sdev) if (ret < 0) return ret; - return hdac_bus_offload_dmic_ssp(sof_to_bus(sdev), true); + return hdac_bus_set_dsp_offload(sof_to_bus(sdev), true); } static int lnl_dsp_post_fw_run(struct snd_sof_dev *sdev) -- 2.53.0