Skip to content

Commit 5b26e39

Browse files
ajitkupandeyplbossart
authored andcommitted
ASoC: SOF: amd: Increase ACP_HW_SEM_RETRY_COUNT value
Host is trying to acquire semaphore lock based on HW_SEM_RETRY_COUNT value which is set to 10 by default. So host will loop for 10 times trying to acquire lock before giving error msg "Failed to acquire HW lock". Though this loop count of 10 is good enough with most of the times but we have observed such failure msg in very few cases(~5 %). Increase ACP_HW_SEM_RETRY_COUNT to avoid such issue and loop for a significant time period before throwing error. We're setting newer loop count to quite higher value of 10K but it's very unlikely that it will loop for this count, since for most of the cases lock will get acquired at much lesser loop iterations. Signed-off-by: Ajit Kumar Pandey <AjitKumar.Pandey@amd.com>
1 parent 31f2b48 commit 5b26e39

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎sound/soc/sof/amd/acp.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
#define ACP_DSP_BAR 0
1919

20-
#define ACP_HW_SEM_RETRY_COUNT 10
20+
#define ACP_HW_SEM_RETRY_COUNT 10000
2121
#define ACP_REG_POLL_INTERVAL 500
2222
#define ACP_REG_POLL_TIMEOUT_US 2000
2323
#define ACP_DMA_COMPLETE_TIMEOUT_US 5000

0 commit comments

Comments
 (0)