From patchwork Wed Jun 7 11:54:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ekansh Gupta X-Patchwork-Id: 10416 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:3046:b0:115:7a1d:dabb with SMTP id p6csp299296rwl; Wed, 7 Jun 2023 05:04:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7C1mGd5V+hvz9ZuNDEcQ682Hjw5cNJoMa1Xe7I92DTLvWwW8MKqlTSrIwAVbTCcAb5useY X-Received: by 2002:a05:6a21:329c:b0:101:1e75:78e with SMTP id yt28-20020a056a21329c00b001011e75078emr2742051pzb.14.1686139497341; Wed, 07 Jun 2023 05:04:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686139497; cv=none; d=google.com; s=arc-20160816; b=IZeTvFtUV0Se9LqRBt7cge0ZyPhmTbPMIs77dMmtQXCW8OnV5vfzKInQqO4UiwpWn1 Ywr8tHQCBklCNEfGCNzuBich3FfahV6FSdsofdxZ2nRDCE6LrLUZ8U9YOwcRUvFoQtVz UuIiJJc2F/bmjpHw08igBw0o+MhfsNqcq6i7ypvsNIlpUAPmwPxuGDUEsjGjHz+ACvKS k52JLa6DLLpkucAj65qO0eFcrYsOMdffMnXHGR128UsZbawvo3IQY2BC481ajoAaWK4F IAH0DGQEf+KiJqHIwmMs61jBcDVisR1WlkAEUNLXXWQTo9Pl6g7Xgw7GFFKd0JvGKlhR NPTA== 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=TOZfVF/9xmbn180Ru8MNahMQR5iJqpzYSTRbhQM3/kM=; b=c/tpgAPXt99pu8/4HAIvOEVqsPsq3Cl6wHloK+SSkWlYi8BBUgvslxcV8vKWqH2Zao e3kV2xcn7ZvTZptxgHnE1eBws7boG8gtDElKhPQxudqOMympjM6uDQhd6BoIexCcU7il NqKiYgsLT0WXJJCLQC2KV12VQnSjnA62tWZaYNiMuUufPFPJsVyd2vZBFuvdgLgXmfgN 89YD1KvgVcseW8owpOb8/fNZdR10SvIcc3/JAyP36Oro2IgucglPo2j21DeZbI9OGdPB fBmERqvf4bsbVcmRR/kH9+UwVXH+NLhlbSK5DvCpGtXqx4HslIiMlGoxKDwyxuRRZsDl PKow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="Xt/dV6yW"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x69-20020a638648000000b0054201a3f08dsi8802061pgd.592.2023.06.07.05.04.40; Wed, 07 Jun 2023 05:04:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="Xt/dV6yW"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235179AbjFGLyn (ORCPT + 99 others); Wed, 7 Jun 2023 07:54:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235486AbjFGLyk (ORCPT ); Wed, 7 Jun 2023 07:54:40 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C20551BD0; Wed, 7 Jun 2023 04:54:38 -0700 (PDT) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 357BBXLE009854; Wed, 7 Jun 2023 11:54:36 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=TOZfVF/9xmbn180Ru8MNahMQR5iJqpzYSTRbhQM3/kM=; b=Xt/dV6yWsddqPJAu4LCi+uq+aJ/5KnvDK/rl8OymHJX/ZE7qsyginmJU03M0qYI0D7lK JNQI7dHv0qBLVxjgSDq/JoCexyqOmmE9v75o43MO1xwzlMwXagzYw72ipbDUICHOsrKW cdIE+P1Mf17/tMoX1/Lbg3AGoLk97U5Uh/PFAQcsCypgFU+8MXERZcWMv8iS+gfbxU+H tmXG7Na7I9SVkHtdZRjwr/UR7E4O7BG+KTwbY9P8zsK+509+FSOTR7BjwjB3sEcQ+APn fpSmAA898xIhXmdsRDY6/kOwTdKhPIV7x/GMQqQSlnqiJdU9BRGNFlgIyrI7McdBQAzL 6Q== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3r2a769qb7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 07 Jun 2023 11:54:36 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 357BsZgG021894 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 7 Jun 2023 11:54:35 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.986.42; Wed, 7 Jun 2023 04:54:32 -0700 From: Ekansh Gupta To: , CC: Ekansh Gupta , , , , Subject: [PATCH v1 0/2] Privileged process support on remote subsystem Date: Wed, 7 Jun 2023 17:24:22 +0530 Message-ID: <1686138864-17136-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-ORIG-GUID: agJDhxHQcQM1jzmKd_N8N4EuA04fjFgm X-Proofpoint-GUID: agJDhxHQcQM1jzmKd_N8N4EuA04fjFgm X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-07_06,2023-06-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 priorityscore=1501 malwarescore=0 lowpriorityscore=0 clxscore=1015 mlxscore=0 bulkscore=0 adultscore=0 phishscore=0 mlxlogscore=847 impostorscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306070099 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768045409569010778?= X-GMAIL-MSGID: =?utf-8?q?1768045409569010778?= Add support to run remote user process as privileged on remote subsystem. The privileged user process can be given prioritized access to remote processor resources. This is achieved in kernel based on the group ID of the process. The kernel will have a pre-defined fastrpc group ID and if the process's group ID matches with it, then the process is treated as a privileged process. This information is sent to the remote processor during PD initialization and the PD is treated as a privileged PD. Ekansh Gupta (2): dt-bindings: misc: fastrpc: add fastrpc group IDs property misc: fastrpc: detect privileged processes based on group ID .../devicetree/bindings/misc/qcom,fastrpc.yaml | 6 + drivers/misc/fastrpc.c | 124 +++++++++++++++++++++ 2 files changed, 130 insertions(+)