From patchwork Wed Sep 20 10:31:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ekansh Gupta X-Patchwork-Id: 14272 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp4159908vqi; Wed, 20 Sep 2023 07:00:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEkNVNO7w2SX5LeZb8fcJQFYCcyq4aba+sMJWqogBHpkCEKHpV2hoHJ5WfecE39zlHFuXQ0 X-Received: by 2002:a17:902:8e85:b0:1bf:fcc:d047 with SMTP id bg5-20020a1709028e8500b001bf0fccd047mr1841808plb.17.1695218407184; Wed, 20 Sep 2023 07:00:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695218407; cv=none; d=google.com; s=arc-20160816; b=a2kWGytALf7yRlcebXkFQQ70Fp1JB22taIDhpFoRCrHTmkY3bMB3R6lesLwrmIaxo7 S6zGyBGzED9/2NFnOESuauukJhrI0tDB0hozKH8fM9vQGQ89/15ov1Zsvi3XlSS0oUQo OEYO3n5+Z0GZ00A87w6DTS10fwDkmOnw0b6FuTOR0J2TYc6Oc2OpTezMt43wBf8m4Cig O6EDZC3GBcZtzXVd0pYzUNay+XqKd/GFj4f41THTp4pAXveHzQlyZobVM/1LUU77TG3B 4omnS8EgBfBm0cOZSeAxhVLsKQZxngaMpHWmU1zmhnuz7JMlpHFWo+SI+InNeK6bTN5a bAHQ== 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=ClMgr5Ngu1nay9NAg1HZkn3mdkAR5ocat4hA5b4q9xc=; fh=IQ68kbvYFCSlyXdHKXkbdUfoRSl+ok1hAWwFRWAAo5U=; b=wxqRw+1TTSKThB+S5QTfUaifolQUhi19dHX6P4D+sz0xyIcm+TZcUrr4nRSpLP9hHC ZnWMpCga3itbKNljIo0i5N/HtDaeBD/yn46YJUXwSReP2V8D7TAV0glNkHrTg+SGl/ms MtbbXytkwD4BxtOmPxYyWEtxQeAm5thZE+w1YsjlHR0LSHfzmsNxl9QYkgSa5soyk+8X n58cglA2/5Gr2M29v3Nhlx8SR0ll1kzP1o5qGSxyNDVWZdOEyOYUr+9Au1F8lB3A4lwN ec0LBi8NTk39XO0lqVq4JUFqSd5NEk5kWMFWfrHxxItX0BOITTB3vc02BxVNqfhnomvI arkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=LFPqLxuB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id x12-20020a170902ec8c00b001b84335fb90si7313970plg.286.2023.09.20.07.00.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 07:00:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=LFPqLxuB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 22578825351F; Wed, 20 Sep 2023 03:32:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234387AbjITKcE (ORCPT + 26 others); Wed, 20 Sep 2023 06:32:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234420AbjITKbv (ORCPT ); Wed, 20 Sep 2023 06:31:51 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D452A11A; Wed, 20 Sep 2023 03:31:43 -0700 (PDT) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38K7RBgm001002; Wed, 20 Sep 2023 10:31:42 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=ClMgr5Ngu1nay9NAg1HZkn3mdkAR5ocat4hA5b4q9xc=; b=LFPqLxuBNzVqnB5g2MEYlMhszZuR+FEStune7EMEWL38upEL4pL9B2nswGlKeTzWG8iN hjcjPLLtJTllZFIUpOPscN9ExaQRsZBMFBa39hOUgGloZtBKF0wKimzy8aY3tOxceP9D 78Bo4EQuxIj0nO7neYTJY3+mZfTj0tcBNiuWhbiX15Ats4QHRvo3Mi2TbpHOHQjULwQN yKFLBv046N+NUoHegNLZWvTyjQwuophT0JIg+GeODXVuwl9/XetyQF3VLo82B3mgmGgR ES0pygt4d9bVUmStDP415ujKvQ30YZQeva1YMCuZIiyVoV86VjHtAx75wPfNQkQVpTgX zQ== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t7vbkrbm6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Sep 2023 10:31:41 +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 38KAVe0F013645 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Sep 2023 10:31:40 GMT Received: from ekangupt-linux.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.36; Wed, 20 Sep 2023 03:31:37 -0700 From: Ekansh Gupta To: , CC: Ekansh Gupta , , , , Subject: [PATCH v2 0/5] Add multimode invoke request IOCTl support Date: Wed, 20 Sep 2023 16:01:25 +0530 Message-ID: <1695205890-21018-1-git-send-email-quic_ekangupt@quicinc.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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: OoabiOG5RLlkkgfRDQdhgaV1lPKotquI X-Proofpoint-ORIG-GUID: OoabiOG5RLlkkgfRDQdhgaV1lPKotquI X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-20_05,2023-09-19_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 mlxscore=0 adultscore=0 lowpriorityscore=0 malwarescore=0 bulkscore=0 mlxlogscore=510 priorityscore=1501 suspectscore=0 phishscore=0 clxscore=1011 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309200083 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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email 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 (fry.vger.email [0.0.0.0]); Wed, 20 Sep 2023 03:32:12 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777556833633931704 X-GMAIL-MSGID: 1777565336470053518 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 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 save and restore interrupted misc: fastrpc: Add support to allocate shared context bank drivers/misc/fastrpc.c | 355 +++++++++++++++++++++++++++++++++++++------- include/uapi/misc/fastrpc.h | 26 ++++ 2 files changed, 325 insertions(+), 56 deletions(-)