From patchwork Tue Nov 21 09:48:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ekansh Gupta X-Patchwork-Id: 16854 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2b07:b0:403:3b70:6f57 with SMTP id io7csp507505vqb; Tue, 21 Nov 2023 01:49:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IHBL1v5mRwUgN3rp3B+O84rlFO8WoPY831kDbvXtD2JNksB7Pa3r5q+RGUXYkaOiHQXjBz3 X-Received: by 2002:a17:90a:cc07:b0:27e:3d05:418c with SMTP id b7-20020a17090acc0700b0027e3d05418cmr7754729pju.22.1700560153340; Tue, 21 Nov 2023 01:49:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700560153; cv=none; d=google.com; s=arc-20160816; b=gBG8h+WMcaLilmHaNB+3czTdiRgDgX4B9gw0MtrsbLEZyWVoq9SB4B9isckxb44Er1 ZSTIyrDOEXVkg4WQFdgyCUhZQ7pzkAnizeqGSLUpOFxJEt5A7yXvmVNKJVFujG3CvXNq 1yKE+bxmhyy7+do/YRmEEZXrJcgjnZncryYnu2Fn3/QUeoecH74gMV5xKF8LNXrSgL4F H4F8AYFJ8F8PcEmqN1vZO1UAn8yH8t8ymuASVZYqtUPNkCzVwt+7A4gl+v2Fw+IHM+Q9 REOSdesdN1jY/JfaFGEqRRUqzSoe5t0ZzhAlidzMNMibHiSVsNglw88fh5BNyKP8iyqv hpww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=uWNXEsW4UPrIPDWbwrtq4QRl5WYpPTZC8CrYutDPGl0=; fh=qZfm2gxVFKi5OFpGqqouvPKfcV9/1EOj1DTqrfs2EPk=; b=NG9x8WcBb5li0+vzADua4+R86PZ+vet4BdW3kEmqvl5TmWTuH+foS570ZGMZ1af/u6 AZMfCXQiFhpKay0XEg0qafVAMeeLmr0TSIi4WJ4/3gSwrkDM/QHbUQefBKSDgwFhNVH3 gyxfV+OIfTUd2yWIbQZQfvLxVbWeN+DocAaBvi6gLzWkfrQEODBgaTvr5Y0Ln7qtVFJw /VAoD7X5LUHxSV25HhHlBP0M+DwtEbFNzgkII62Eyx32yAMTjBVIXdNzZUYCqFgR+Otg +9sitYCW/E0cUxSB+K0AkEj7eHa56gpcbMIsJP1RaBcc8YtsX3vp7mso8f6i6Q7tiGoP Wnjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=J52GaVal; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id rm14-20020a17090b3ece00b00280277d721dsi10410283pjb.83.2023.11.21.01.49.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 01:49:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=J52GaVal; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 4833480EE0C7; Tue, 21 Nov 2023 01:49:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234111AbjKUJtH (ORCPT + 99 others); Tue, 21 Nov 2023 04:49:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234086AbjKUJtE (ORCPT ); Tue, 21 Nov 2023 04:49:04 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64F8310E; Tue, 21 Nov 2023 01:48:57 -0800 (PST) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AL9ASxM002325; Tue, 21 Nov 2023 09:48:55 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=qcppdkim1; bh=uWNXEsW4UPrIPDWbwrtq4QRl5WYpPTZC8CrYutDPGl0=; b=J52GaValdXZ4Psm+CTx5PZ0qUqkZw1UE/S4XL9z31G/dHVETcxpyBVmE0SFiHPThVUah IDxQJpJJZgJ+IXtOcwmxaHepSUCPphvtJhSyIocWdl6gYB097YamcTCk5HKPtToMWblQ ibz2/jcEm+fVwloOrrN0r3h+BuRprC6lJ5DyJ60WIAKzn+UKDn5KLoQdINLQ3WSnshMO Ei177N0S6d59AVbMUZaPdyWTSx/QIkCUqIdHj0kiScxjivH26AFxglZyb1T9Nl9AuWql 6O5VBgyBtP1d23QF7woBskOV9UQQ3TvZEOlU2cIDtmEMvbvsmRCxipPvKs+IBXHO7hCx MQ== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ugrk207ra-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Nov 2023 09:48:54 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3AL9ms8V017382 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Nov 2023 09:48:54 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 01:48:52 -0800 From: Ekansh Gupta To: , CC: , Subject: [PATCH v7 0/5] Add multimode invoke request IOCTL support Date: Tue, 21 Nov 2023 15:18:39 +0530 Message-ID: <20231121094844.5764-1-quic_ekangupt@quicinc.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 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: G4QPtF32-lcrxQnurKHWgxNJ57icjA72 X-Proofpoint-ORIG-GUID: G4QPtF32-lcrxQnurKHWgxNJ57icjA72 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_03,2023-11-20_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 suspectscore=0 spamscore=0 lowpriorityscore=0 impostorscore=0 adultscore=0 clxscore=1011 bulkscore=0 priorityscore=1501 phishscore=0 mlxscore=0 mlxlogscore=484 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311210076 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 21 Nov 2023 01:49:12 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783166563403581741 X-GMAIL-MSGID: 1783166563403581741 Add changes to support multimode invocation ioctl request. This ioctl call facilitates multiple types of requests from user including CRC check, performance counters, shared context bank usage, etc. This series also carries patch to save and restore interrupted context. Ekansh Gupta (5): misc: fastrpc: Add fastrpc multimode invoke request support misc: fastrpc: Add CRC support for remote buffers misc: fastrpc: Capture kernel and DSP performance counters misc: fastrpc: Add support to save and restore interrupted misc: fastrpc: Add support to allocate shared context bank drivers/misc/fastrpc.c | 492 +++++++++++++++++++++++++++++------- include/uapi/misc/fastrpc.h | 52 ++++ 2 files changed, 459 insertions(+), 85 deletions(-)