[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1695970830-12331-5-git-send-email-quic_ekangupt@quicinc.com>
Date: Fri, 29 Sep 2023 12:30:30 +0530
From: Ekansh Gupta <quic_ekangupt@...cinc.com>
To: <srinivas.kandagatla@...aro.org>, <linux-arm-msm@...r.kernel.org>
CC: Ekansh Gupta <quic_ekangupt@...cinc.com>,
<ekangupt@....qualcomm.com>, <gregkh@...uxfoundation.org>,
<linux-kernel@...r.kernel.org>, <fastrpc.upstream@....qualcomm.com>
Subject: [PATCH v1 4/4] misc: fastrpc: Add support for users to clean up DSP user PD
Add a control mechanism for users to clean up DSP user PD. This
method can be used by users for handling any unexpected hang
scenarios on DSP PD. User can clean up DSP PD and restart the
user PD again.
Signed-off-by: Ekansh Gupta <quic_ekangupt@...cinc.com>
---
drivers/misc/fastrpc.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/misc/fastrpc.c b/drivers/misc/fastrpc.c
index 40cb867..55f5286 100644
--- a/drivers/misc/fastrpc.c
+++ b/drivers/misc/fastrpc.c
@@ -2253,6 +2253,11 @@ static int fastrpc_internal_control(struct fastrpc_user *fl,
case FASTRPC_CONTROL_RPC_POLL:
err = fastrpc_manage_poll_mode(fl, cp->lp.enable, cp->lp.latency);
break;
+ case FASTRPC_CONTROL_DSPPROCESS_CLEAN:
+ err = fastrpc_release_current_dsp_process(fl);
+ if (!err)
+ fastrpc_queue_pd_status(fl, fl->cctx->domain_id, FASTRPC_USERPD_FORCE_KILL);
+ break;
default:
err = -EBADRQC;
break;
--
2.7.4
Powered by blists - more mailing lists