Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp289379lqo; Tue, 7 May 2024 22:44:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV1F8y7DnKo9L+wb73Y97QqELXbTBZCS+EjyXlEYB4W+nrRFwCy6k2/lOzx62IkZkTadqtj56KbwayTZw0gTxbe/Ea8NxLko0aSNiAWxA== X-Google-Smtp-Source: AGHT+IGPA4vmThbiw5tNDpVEkKpfPjS+O2zIWwfjS1LNnWrSYK9TODBVvvY3EF9hK383EsDBW1T4 X-Received: by 2002:a05:6a20:f3aa:b0:1a7:a6d1:2d09 with SMTP id adf61e73a8af0-1afc8ddc34dmr1803946637.55.1715147041892; Tue, 07 May 2024 22:44:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715147041; cv=pass; d=google.com; s=arc-20160816; b=KNZA36tCSuz8m+2RmmLMkGHQ+qWNsz66Xoy0HmDczZ6D5R4tChveO/q6GC1XwxfnC7 d+54j5b1ZCbfl8R3Gmx5p3wfqRDRanVvRwxEUI/LIoWpW3EhXPG3JJMRA/XzqnfZTX/V REES6qensg0XOnekv+SXsF9Gg6BlSrha31PXkLg8MCLeX1CiztjO3jKHVa8bBuu5KpuU O9Lb/Vb0qNbhmxFYQsppufZzuZRMTxWqfG5zUBS5c75wK+/MJoKn8m43u0/VX244WOeS TlXk/r3jrlMdqGnQQu0wJsB6lXmVQxz7xXiqoj0eHKea8DS0Z15yYcDBRPMAH4E4J4xX wKJw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=Y0o0ERh4r6DVUsthnNfeeX5HJMGS2kcD4LBvFXz5Oi8=; fh=qZfm2gxVFKi5OFpGqqouvPKfcV9/1EOj1DTqrfs2EPk=; b=x/qiNIt/mLGqO5BzATQbsILhsImpUhh6PoD993ROl3B33Tbe9mtzHIkbo0Wi1Y/EbU QOF1Bd8mBmgXvgh7vluiv1NlqxPgfR5RwgSIae1D6UmKp4bj/2CfM/z7Z8MnzeDxSvAk 4kFNAbvlx/khTA1Mq1kRGNOi7LP38EXACM1F5EVW1Zejp46KZNm2bsE1Mn6KJjWMtV1r Ir0JsEwlYg5hkUslpNBThLykdIY586ZPV7UKDkyoC1V9FJO/lqfPEuGbcdt22QGcBjpu 62PrUNwjcZGM/NT2zZNVTUiodPy3Qdh/LhQrvu4fyR0qFAq5tQWB/MCKCMoal/H6FNY2 eOvA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=hurqW07R; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-172702-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172702-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id m2-20020a170902f64200b001ebe5c06450si12286676plg.247.2024.05.07.22.44.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 22:44:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172702-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=hurqW07R; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-172702-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172702-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 71541B24000 for ; Wed, 8 May 2024 05:43:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A0A1517C79; Wed, 8 May 2024 05:43:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="hurqW07R" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 15B9222324; Wed, 8 May 2024 05:43:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715146986; cv=none; b=QFpX0goh1jM7kCXtSCGg3Or/fzWssUutefubldq4WrNi6RG4aZb+Q+skMQDxkOVHtziYjR6pQozVSc0zGBgd+CheZ0si3w95E4mjM8+Tyf+/p0zhGzmxS7f5NldRK5ZlS2jI8FtUIXht3PJ+/Nd4zRdMbR02jSj67YQI/oM0W+8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715146986; c=relaxed/simple; bh=9i+NqIGo7kzjRxvqTqjq200CuyPCEflocMqbaDuREtg=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=aTodPcZv0UhfWPkqC+rHIQbHwnGYUFe5r6wArv6wHvJMio2qCWaBOWqOFuTusAbrB1kQu/Sp1G8mzA01BaK4TESLBIY1+ph49kEbkXsdLpGfODMrvPRG2a/KOwTB4v7mAr74EbI0Ulwgs/iskpgZ3gTBNq4uvYF/Sip5Y1WnMb4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=hurqW07R; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4484ftXO016309; Wed, 8 May 2024 05:43:02 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-transfer-encoding:content-type; s=qcppdkim1; bh=Y0o0ERh 4r6DVUsthnNfeeX5HJMGS2kcD4LBvFXz5Oi8=; b=hurqW07RbiMJX/OjRD6y3wg KYw/HiJ7cqLSzLBOmyNsBZcj1DuR7Wo0V8XaxfK3IsVy7jMbeY6n9TjkbRbXMbPE 2YMZhw092k/xpxWZGD6gS/Bwj2KZXw1EtkRqaNbbSJ7cXdOasa/99DH1SszdbmfA Y+I1kHqJPNam2C75k7sLC2QSXQGYDYhPtgh1DEtI5i2QL14Q/QMPxUezsDhWzmWX rC1I/HdXqijfil5mtQvSYIWuFQol1qs3H/MnSfffJLQIWuVWyA2GeEnD8Eyxv5ts Ap/84J30bZnYY24Fz4n9I+fWv2cMmjA31BEPFOAMQYR3/8zHB2p5jft7MGkJ4Ng= = Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xyspr10yx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 08 May 2024 05:43:02 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 4485h0J9012567 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 8 May 2024 05:43:00 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.1544.9; Tue, 7 May 2024 22:42:58 -0700 From: Ekansh Gupta To: , CC: , Subject: [PATCH v1 0/5] Add missing features to FastRPC driver Date: Wed, 8 May 2024 11:12:43 +0530 Message-ID: <20240508054250.2922-1-quic_ekangupt@quicinc.com> X-Mailer: git-send-email 2.43.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: _Ehy7-ixZ4dNqwjw_iXm5JH488-CcRGx X-Proofpoint-GUID: _Ehy7-ixZ4dNqwjw_iXm5JH488-CcRGx X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-08_02,2024-05-06_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 spamscore=0 clxscore=1011 malwarescore=0 suspectscore=0 priorityscore=1501 mlxscore=0 impostorscore=0 mlxlogscore=547 bulkscore=0 adultscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405010000 definitions=main-2405080040 This patch series adds the listed features that have been missing in upstream fastRPC driver. - Redesign and improve remote heap management. - Add static PD restart support for audio and sensors PD using PDR framework. - Add change to support unsigned PD. Unsigned PD can be enabled using userspace API: https://git.codelinaro.org/linaro/qcomlt/fastrpc/-/blob/master/src/fastrpc_apps_user.c?ref_type=heads#L1173 - Add check for untrusted applications and allow trusted processed to offload to system unsigned PD. Ekansh Gupta (5): misc: fastrpc: Redesign remote heap management misc: fastrpc: Add support for unsigned PD misc: fastrpc: Restrict untrusted apk to spawn misc: fastrpc: Add system unsigned PD support misc: fastrpc: Add static PD restart support drivers/misc/Kconfig | 1 + drivers/misc/fastrpc.c | 631 +++++++++++++++++++++++++++++------- include/uapi/misc/fastrpc.h | 2 + 3 files changed, 514 insertions(+), 120 deletions(-) -- 2.43.0