dsp: return ENETRESET error if apr is down
In SSR/PDR, return ENETRESET errno to propagate this failure to userspace. After audio HAL receives ENETRESET, it stops retry for pcm_open continuously. Rate limit the logs when apr send packet fails during PDR/SSR usecases to avoid watchdog timeouts. Change-Id: I03a80aef6ffedb4f15f953fff5213d6a3c9efc4b Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
This commit is contained in:

committed by
Meng Wang

parent
63f4815535
commit
c910c02395
@@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/*
|
||||
* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/kernel.h>
|
||||
@@ -432,7 +432,7 @@ void ocm_core_open(void)
|
||||
aprv2_core_fn_q, 0xFFFFFFFF, NULL);
|
||||
pr_debug("%s: Open_q %pK\n", __func__, q6core_lcl.core_handle_q);
|
||||
if (q6core_lcl.core_handle_q == NULL)
|
||||
pr_err("%s: Unable to register CORE\n", __func__);
|
||||
pr_err_ratelimited("%s: Unable to register CORE\n", __func__);
|
||||
}
|
||||
|
||||
struct cal_block_data *cal_utils_get_cal_block_by_key(
|
||||
@@ -926,7 +926,7 @@ bool q6core_is_adsp_ready(void)
|
||||
q6core_lcl.bus_bw_resp_received = 0;
|
||||
rc = apr_send_pkt(q6core_lcl.core_handle_q, (uint32_t *)&hdr);
|
||||
if (rc < 0) {
|
||||
pr_err("%s: Get ADSP state APR packet send event %d\n",
|
||||
pr_err_ratelimited("%s: Get ADSP state APR packet send event %d\n",
|
||||
__func__, rc);
|
||||
goto bail;
|
||||
}
|
||||
|
Reference in New Issue
Block a user