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: 690229 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A62EC7EE23 for ; Wed, 7 Jun 2023 11:54:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240419AbjFGLyl (ORCPT ); Wed, 7 Jun 2023 07:54:41 -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 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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(+)