Skip to content

Commit 494ddac

Browse files
Venkata-Prasad-Potturubroonie
authored andcommitted
ASoC: SOF: amd: Fix for ACP SRAM addr for acp7.0 platform
Incorrect SRAM base addr for acp7.0 platform results firmware boot failure. Add condition check to support SRAM addr for various platforms. Fixes: 145d7e5 ("ASoC: SOF: amd: add option to use sram for data bin loading") Signed-off-by: Venkata Prasad Potturu <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 0a5c403 commit 494ddac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sound/soc/sof/amd/acp-loader.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,10 @@ int acp_dsp_pre_fw_run(struct snd_sof_dev *sdev)
206206
configure_pte_for_fw_loading(FW_SRAM_DATA_BIN, ACP_SRAM_PAGE_COUNT, adata);
207207
src_addr = ACP_SYSTEM_MEMORY_WINDOW + ACP_DEFAULT_SRAM_LENGTH +
208208
(page_count * ACP_PAGE_SIZE);
209-
dest_addr = ACP_SRAM_BASE_ADDRESS;
209+
if (adata->pci_rev > ACP63_PCI_ID)
210+
dest_addr = ACP7X_SRAM_BASE_ADDRESS;
211+
else
212+
dest_addr = ACP_SRAM_BASE_ADDRESS;
210213

211214
ret = configure_and_run_dma(adata, src_addr, dest_addr,
212215
adata->fw_sram_data_bin_size);

0 commit comments

Comments
 (0)