Message ID | 20231121112454.12764-5-quic_ekangupt@quicinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2b07:b0:403:3b70:6f57 with SMTP id io7csp590018vqb; Tue, 21 Nov 2023 04:43:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IFEt3bjM/DKO+c1XTq9v66+S4A/HC04Qt9yvs/qdSw7B2x93JnBwIIPgiCs8JP1Y6hnVcc3 X-Received: by 2002:a17:90b:3e85:b0:27d:241a:dd89 with SMTP id rj5-20020a17090b3e8500b0027d241add89mr9728080pjb.40.1700570581617; Tue, 21 Nov 2023 04:43:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700570581; cv=none; d=google.com; s=arc-20160816; b=co8NEwuynyAvH2afVvD8Avhc3gmb13Faat3XI2lz5MR+Gz8XARH7weIbpZ+rBwIa9p KyfuPjFRmQOCFZhIPKGTiELr03G0JOahcn/K7yNbfNocs6Xgw1d9C0uUps7ngrxmVGKQ G5YRUMclZSW+MJSSIZxmj84MVZkvNSn9ldAKa1D/1ax69tMQiC4CvT193sK/XUHW3jyt ZThiRZuzHlMVjsgA9/YMEYr7b5uVuss2EJWfyoioWuk8EdejwUO+8rd8GAovmbx1ByQ4 aNlXGzzzR6TLj0agTf4TMl5GWd5bSIsTp+sEm7V1TVMGBnYxAoP55aw9iOIOFfsij8CE SP7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=h5CDDG+uTAZRXy+p2xjmUOafRHHAUg3mjpVjHiM2nq0=; fh=qZfm2gxVFKi5OFpGqqouvPKfcV9/1EOj1DTqrfs2EPk=; b=E5IOPla+GNJ5ioNkPNEfudiJVhTU8OcJ5CuhdX/99ow/A2zOIfaPc83AC3rBTJmdeP WpNuXKargqYp0WPMd1BvvMc0L+7KoU+zXSx6R7hyxq9rsKA9DcYN9hJKP55DPhR5zJnl PQGDIHOOOubuqKHRTQkzL0Zd0PfmWkFJJ9z9VzioSiI15ZvO60KZQLI/r9tVqoluS/ck /GEazuly5Dj762zn9zliN19UFxMs3EwOKHWOwosrkNWSb6z8TRgpfDK5l09aq7iUSavq Kh+rrKZPd9WXlY7RPHOyDHyxwMPFwBmwzJmLgCxAgBGCLA9hS12rf1wEui9XAGaz9fCC r01A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=HizEmTz7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id s19-20020a17090aad9300b00278eb61c0ebsi12937463pjq.118.2023.11.21.04.43.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 04:43:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=HizEmTz7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 7952580475C8; Tue, 21 Nov 2023 04:42:47 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230352AbjKUMmm (ORCPT <rfc822;ouuuleilei@gmail.com> + 99 others); Tue, 21 Nov 2023 07:42:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234179AbjKULZY (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 21 Nov 2023 06:25:24 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F22B18C; Tue, 21 Nov 2023 03:25:16 -0800 (PST) Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3ALAACxn011535; Tue, 21 Nov 2023 11:25:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=h5CDDG+uTAZRXy+p2xjmUOafRHHAUg3mjpVjHiM2nq0=; b=HizEmTz72/vHB0O/whe9uT1msiKYPJZFZdxDarIFj0GLktPesqCwnXphB7bJIctIT92C id0ZtQE0M8V0tSjBm3fyDQBbWzRqSrwK5mYzjbysKftzQu4FgFcPLe7JBVDq4c/ej64P ZRUPYAOD5Ov45l/0cbvWclpPcW9ZkdKFuDh/DDZX1n9hPTPxs798HB6r/eqIPamDIoF/ do/kI60jm9tWkMZSfe4oCSdOE0p6ZynBGxCpWQdj0l/9sUrYWCCtnmBCr5NdQPOFdV5t 2zUUAEsbrQJBgyS5+oIxZuVbNuSpaj9J6y9zDpjWEySkNx7GoQcAQU5bjqYlr1ohM9On aA== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ugr85rk6k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Nov 2023 11:25:13 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3ALBPD28003114 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Nov 2023 11:25:13 GMT Received: from hu-ekangupt-hyd.qualcomm.com (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 21 Nov 2023 03:25:11 -0800 From: Ekansh Gupta <quic_ekangupt@quicinc.com> To: <srinivas.kandagatla@linaro.org>, <linux-arm-msm@vger.kernel.org> CC: <gregkh@linuxfoundation.org>, <linux-kernel@vger.kernel.org> Subject: [PATCH v3 4/5] misc: fastrpc: Add support for users to clean up DSP user PD Date: Tue, 21 Nov 2023 16:54:53 +0530 Message-ID: <20231121112454.12764-5-quic_ekangupt@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231121112454.12764-1-quic_ekangupt@quicinc.com> References: <20231121112454.12764-1-quic_ekangupt@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: tUDYpCuN_ysK2OZZGZqbLUNpOGLB1bTb X-Proofpoint-ORIG-GUID: tUDYpCuN_ysK2OZZGZqbLUNpOGLB1bTb X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-21_04,2023-11-21_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 impostorscore=0 phishscore=0 suspectscore=0 adultscore=0 malwarescore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0 mlxscore=0 clxscore=1015 mlxlogscore=756 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311210088 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 21 Nov 2023 04:42:47 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783177498077382663 X-GMAIL-MSGID: 1783177498077382663 |
Series |
Add missing features to FastRPC driver
|
|
Commit Message
Ekansh Gupta
Nov. 21, 2023, 11:24 a.m. UTC
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@quicinc.com>
---
Changes in v3:
- Rebase the patch to latest kernel version
drivers/misc/fastrpc.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/misc/fastrpc.c b/drivers/misc/fastrpc.c index 72ed14174363..97895fce1228 100644 --- a/drivers/misc/fastrpc.c +++ b/drivers/misc/fastrpc.c @@ -2254,6 +2254,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;