From patchwork Tue Oct 17 09:26:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ekansh Gupta X-Patchwork-Id: 15473 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp4005958vqb; Tue, 17 Oct 2023 02:27:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHsyYIH6uUBbek6I+gDxYHUrMf2u7gxsmSFSou+S3K7Xw+Bre66aaWOI2NvC8aksrCyxWS4 X-Received: by 2002:a05:6e02:3d03:b0:34f:a4f0:4fc4 with SMTP id db3-20020a056e023d0300b0034fa4f04fc4mr1767984ilb.2.1697534825003; Tue, 17 Oct 2023 02:27:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697534824; cv=none; d=google.com; s=arc-20160816; b=SNGvUTi2wsnQbsWneP1j9x+3QENc87sTCkiETS/1GoPR8ntBvChGrNsejtd3NJ6SeL XF8LMsTGdHom7UBKIZ6jy7eRv1ntV1OJl3GKu61UqLr2BegIyXID4nkY9XyY4AX9mZmK KmmMwMHVFclAid02NosFhHzNR3E2kkCkq6jnljWQgbnnh3ibQtDoJ47O2puX6gWgeIDc xPfbCUKt1gf4rj0kP/0vXx7OY5m9B1qm3BAyt8csXSQVyYnnuou5uotW8FeI0BKu8M6w Rji/L01nRGQMDRlGVmO9K9u3aUOazAn6oNw99T9quzUlt7EVLUQzosPoIUiaAnUTKWuJ LgRg== 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=ifqRCltxvTbgUWdpLs0nzht25Xok/zc8SeaY70fDy6c=; fh=IQ68kbvYFCSlyXdHKXkbdUfoRSl+ok1hAWwFRWAAo5U=; b=NIT+reocCwTIDqZa+SzTabRJHQa58CrWmfkpb6cGeIGLinYywNTi+T25R08WkADae6 j/1pTQ4NU1sMK9yORAzXXNa6mx9/JrEsxDLdArCBoMHY/UbxxDMc9ETk+lX/7zh6dhx7 8VSB7RJQ819Lt903XAQStsq4vP6IoSdvmpMz+f+A3HrPrkvP+gQ5vChGr9QKjhCcIHKH AlZ9NBJm8JJKYLgC2LLXltFCPPeIrtvs/6vzF0qwQgISzNAQKwfsUUlJt4jdqwdvdZ1s h/YwZYkFU6hH1z+UcFafq0Fqv7mQhFxoze3Gf8B+qzzSeE4HZM6jrFmUiwuOwURM8rjd NVoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ohxLeWU7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id r185-20020a632bc2000000b005acf0458523si1345895pgr.612.2023.10.17.02.27.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 02:27:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ohxLeWU7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 4ACA6803B2CB; Tue, 17 Oct 2023 02:27:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234781AbjJQJ0x (ORCPT + 19 others); Tue, 17 Oct 2023 05:26:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234839AbjJQJ0v (ORCPT ); Tue, 17 Oct 2023 05:26:51 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D351FE8; Tue, 17 Oct 2023 02:26:49 -0700 (PDT) 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 39H8HNNr005313; Tue, 17 Oct 2023 09:26:47 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=ifqRCltxvTbgUWdpLs0nzht25Xok/zc8SeaY70fDy6c=; b=ohxLeWU73nWczI47i9MbetQqyDDR90nMXMz6ixL5ut7z+hd8MD6YmoWIin7qrFQQBJT8 Hm9aIvo1LE1f23tEtufKiPHcoaSZNK/pLHYmPnkBGDE9+sDMDjZiQ9se04MNrm7Bf8iM s7/8jjcfSL2BqDdZ4ZxIBo7+MEg0mLefZ2u3lcrUHxTW3oylBH5irjpAm7qttSUrcBkL uiNXsmTaZl0M3DrISy2jBs+8gGnQNNAoPbWsFJbLQkejWxFBGsBTdsC8MosT8dAMyTow fVJOidqciuv0O+nH+XdlmWgf8+jvckJ54HTweQij8AMG2fzuRkiOk1ZBJ4j/i3QPTBBS dg== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tsnej8akc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Oct 2023 09:26:47 +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 39H9QkqM014406 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Oct 2023 09:26:46 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.39; Tue, 17 Oct 2023 02:26:43 -0700 From: Ekansh Gupta To: , CC: Ekansh Gupta , , , , Subject: [PATCH v4 0/5] Add multimode invoke request IOCTL support Date: Tue, 17 Oct 2023 14:56:34 +0530 Message-ID: <1697534799-5124-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: PppUMLcslcZozdy2IvrWHPTvw0DM4Skp X-Proofpoint-ORIG-GUID: PppUMLcslcZozdy2IvrWHPTvw0DM4Skp X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-16_13,2023-10-12_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 spamscore=0 bulkscore=0 impostorscore=0 mlxscore=0 lowpriorityscore=0 suspectscore=0 priorityscore=1501 phishscore=0 malwarescore=0 mlxlogscore=524 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310170078 X-Spam-Status: No, score=-0.8 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 howler.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 (howler.vger.email [0.0.0.0]); Tue, 17 Oct 2023 02:27:02 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779994276796474061 X-GMAIL-MSGID: 1779994276796474061 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 | 491 ++++++++++++++++++++++++++++++++++++-------- include/uapi/misc/fastrpc.h | 52 +++++ 2 files changed, 458 insertions(+), 85 deletions(-)