Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp518065lqt; Thu, 6 Jun 2024 10:00:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUcrRJwss/z7hYGk2j6hVQe1FIWMqVvLtQkwvHAprq4qeWwVQK9X4oG0rWkTHQThkmcrL/Yb7IMwNEOGZkpstvJ2UdepI57IOQr6N4qDw== X-Google-Smtp-Source: AGHT+IGJqNEoH7suncQ4d+cvr5LY09YE+zN3WKUztcPEyyE8wzEKInF3KgWirj5R9nt9EACEYnBm X-Received: by 2002:ac2:4434:0:b0:52b:7a58:56e with SMTP id 2adb3069b0e04-52bb9fde290mr116250e87.56.1717693230701; Thu, 06 Jun 2024 10:00:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717693230; cv=pass; d=google.com; s=arc-20160816; b=PxA5eRztaYcLWS59XIbzSsbyoorZ/CZXOA1PrtS41ezvdLXH65DQ3rvQEy1qJ0NSBT GHMTLB/VhWeO/ZcbqQnwkt2563TOpUiPKAns/TvLRdFdcnWqH36kpdXfAKX+g658rree iJYnhzUtuDGSFta8q2gHU4abgQESJ4hBkejS7rBKkVbaDWKZY1qn2n+6xReHX6e45CJZ iFnv/xSTDeEKg57tuwVeU6mSzd/TxmwTQvcE8AvbwOFZ8+rASN4ndSgXG7HuCfpVpJTU 8y0sN1066IOA0YBu0lY/YjxAukL9/fVRcrrPr85OiydclCb5TSHmzqK/ayy2In5kR9q8 FMUQ== 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=/qrU+GuE1okq3wtihZllgUnZf/gejM7uP6FOIwJ0O4A=; fh=NFnuVwDipY6fHGYJusmD2Yqa/amgXaPQRu8bU6xLCB4=; b=E8eY0/ljOOmVg8Kc9WoaBEon/bJOROq0ucIVRrvXwQ6zheLaSsF1leLxVSJiR40O5r ftwBz37CM5O7/28V+76P0eqiUS6gAzdsfB0pnBN3ZmTLCi1/63BT+9kR/T4CTMZWOue8 oPZF6wZ2iMYOZxIQ/eOV18rN4YhZ48R75Qp1OedcKzQAP8Q6ygFzHBQ9KchiEnTSiBCB JxtYFSHG3tn+rw8gkUuHXXVX7citWCZ3f9Wokb84t3mxaH4SYGbTkW0L4m3JrCtvKMVk M8i1i6FV0BzGKxix+hFK/w0CZJQ9y2hvpsbz0IZ7UHsGIvjPIRM5Bm43r0Foznppq9Yd SMQw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=he4tNRxK; 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-204748-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204748-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c80728b91si88802566b.863.2024.06.06.10.00.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 10:00:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204748-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=he4tNRxK; 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-204748-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204748-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 3C3911F27521 for ; Thu, 6 Jun 2024 17:00:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 40099198E74; Thu, 6 Jun 2024 16:59:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="he4tNRxK" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 2001D17BC9; Thu, 6 Jun 2024 16:59:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717693195; cv=none; b=RuR0Mk7ZUdFLLa2xS7uMJaZusHi5Rl6VUcQWhr/LsBiILIeCN5hU022GSqT5TK+k1kT290SF+BHP+vcIHcX3SqEnhfxG+vCkX8hCJi61IgUHBAGs/Mq6lGPJcdi3LtEWunYgVzxOo2NPj9hCQnL/eTvrsqTkx9SWHInFE2KvvVg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717693195; c=relaxed/simple; bh=D4/sJ7G579ATfdpKyIQhqkiqbzrwiBfBbEjEgztDuto=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=EmzQ8ceCxw7bQZY9cEMcHryuZeDXOGujmiqHufEfgqY71YOElJa+kLXE/ChlWoOTGm6r06vQVsap+xAlpe21mGfKZxA3GOodrQGSMafn86w0Jxt7Xqv40s65ALC6fUr/9HiFFMlAamM5/w3sIMhj0uDAAm/X/0pAULT0xZUUBH8= 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=he4tNRxK; arc=none smtp.client-ip=205.220.168.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 (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 456995eW015810; Thu, 6 Jun 2024 16:59:51 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=/qrU+GuE1okq3wtihZllgU nZf/gejM7uP6FOIwJ0O4A=; b=he4tNRxK+/3NAnFAWMwmcWMAh3oMjBGEWA5d3J hjKCcQuXR+DUhJ0o6t735HFPSPbALdKZGaw9q7m7qa2FYKJzmDGr9XE4pskG4ML0 kO0NDIn6Qzn0UeRkYeCGQJ3g/PblGbEdlSF5tp3IYtqi6lZLPXs+5b0ivjUh6qky eyEKKnxvacvvu3K/5tbbqYyhzIvXLXNN8y07FTOJVQAFGOIDPbKWYe5rF9xh3yaj syj76oRtDTFQd1n2QZr9yc26mw4kUB1QKh6mySXeJpcfe6M/3ebBsxewFwWdIawA QDsGGlsUeHqpDpcdzuGJL3RBOqazjxMjG3v9Ga7N+zlbG/MQ== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3yka7p939w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jun 2024 16:59:51 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 456Gxotg005966 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 6 Jun 2024 16:59:50 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; Thu, 6 Jun 2024 09:59:47 -0700 From: Ekansh Gupta To: , CC: , , , Subject: [PATCH v4 00/11] Add missing features to FastRPC driver Date: Thu, 6 Jun 2024 22:29:20 +0530 Message-ID: <20240606165939.12950-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-GUID: RxXvF9gBkk74CquWFlmVughuB-pj7vFF X-Proofpoint-ORIG-GUID: RxXvF9gBkk74CquWFlmVughuB-pj7vFF X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-06_13,2024-06-06_02,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 priorityscore=1501 malwarescore=0 adultscore=0 spamscore=0 bulkscore=0 clxscore=1015 phishscore=0 mlxlogscore=772 lowpriorityscore=0 impostorscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406060120 This patch series adds the listed features that have been missing in upstream fastRPC driver. - Add missing bug fixes. - Add static PD restart support for audio and sensors PD using PDR framework. - Redesign and improve remote heap management. - Add fixes for 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 Changes in v2: - Added separate patch to add newlines in dev_err. - Added a bug fix in fastrpc capability function. - Added a new patch to save and restore interrupted context. - Fixed config dependency for PDR support. Changes in v3: - Dropped interrupted context patch. - Splitted few of the bug fix patches. - Added Fixes tag wherever applicable. - Updated proper commit message for few of the patches. Changes in v4: - Dropped untrusted process and system unsigned PD patches. - Updated proper commit message for few of the patches. - Splitted patches in more meaningful way. - Added helped functions for fastrpc_req_mmap. Ekansh Gupta (11): misc: fastrpc: Add missing dev_err newlines misc: fastrpc: Fix DSP capabilities request misc: fastrpc: Copy the complete capability structure to user misc: fastrpc: Avoid updating PD type for capability request misc: fastrpc: Add static PD restart support misc: fastrpc: Fix memory leak in audio daemon attach operation misc: fastrpc: Redesign remote heap management misc: fastrpc: Fix ownership reassignment of remote heap misc: fastrpc: Fix remote heap alloc and free user request misc: fastrpc: Fix unsigned PD support misc: fastrpc: Restrict untrusted app to attach to privileged PD drivers/misc/Kconfig | 2 + drivers/misc/fastrpc.c | 635 +++++++++++++++++++++++++++++------- include/uapi/misc/fastrpc.h | 3 + 3 files changed, 527 insertions(+), 113 deletions(-) -- 2.43.0