Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2576934lqb; Tue, 28 May 2024 04:32:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXsgDHouojQ7ez7qZG/MyZHk/ebsLeZ5yrnHbNrBvcQauaHjOusWF+2FdOTVybsRF4fnE49h5hrWmMZmohEhMRk8rcK3lafji4RjY7SYQ== X-Google-Smtp-Source: AGHT+IFa54Vf89DGSqJrfSzCCbfofROBUqTDqRwVZiWqneaMBfty8KnDYWlllY+j5NGhyfEw5xRG X-Received: by 2002:a17:903:41cd:b0:1f4:a45b:8429 with SMTP id d9443c01a7336-1f4a45b8a85mr47186505ad.27.1716895969121; Tue, 28 May 2024 04:32:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716895969; cv=pass; d=google.com; s=arc-20160816; b=T2HP8/84cWXOI5zUrbtGXTbLzzO7EkbwkAj2FC0dL1s2sCi+eoMCcW8wX/GXOgPJ6G 9c6mQ2ed/e9/KYH9mBcjLkBSPtAzD4df5RfSishC4cq8gEAFOnJGNPXLYWiLIj3p6OF4 M74MesVTb5PcAhNew6Rgvm7TncwiaOIADAFylxVDunW8DpEMha1fYqqNq0rvIldwCzQ4 wixhFsczNQ3dDdibazRaA1OEXAYM4XJ03TViYtulb/wbexEf7KdQ+WpEeIhKINegFUyM ypiBy1MO0nRpflWnUQ6pU1Yr4zmSr8waCViKHnRODVfqDHNVisJQQVr7PQ7wq04ZbgTA aFsA== 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=mZuJ0aTjAFLe34q5/lGkcLbx1XKfaYi9iuocaPLtFV8=; fh=NFnuVwDipY6fHGYJusmD2Yqa/amgXaPQRu8bU6xLCB4=; b=uWXMWcNuUyr7NcbeTQPoWAHRzN6jIZuEutzgagssg3owlCaa0MplJB1hM8XHMG0nML N7Dh7uqwKvSW3QELf+uXwYsfSqy4SJOi97ykPL7yvxYD5uvyCEcgUKtyLKkfsg2P9gYo LNwKLVtL7Wuc6t3TQGXVeJqJF0VEWYQN3kcvaclhE3TTWzKkvgrxFMLPFEAnIs1NJXVU 2/c7fRwMs3aII8BOa54dygp2rVw4980nWOKS7vDyq8whk5+o6Czh19c9kxLP+awfhW6m 7R07yU0Ceesh2frUmNSwTYN6NCZqgZFcxsY/hWC3Bt9qOUExwkVT3uXUcuN1B+cDg0NU /GYw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=lvR7eKBe; 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-192175-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192175-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f44c785729si77848855ad.103.2024.05.28.04.32.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 04:32:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192175-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=lvR7eKBe; 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-192175-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192175-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 43C6A2896FE for ; Tue, 28 May 2024 11:31:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E049516D4F0; Tue, 28 May 2024 11:30:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="lvR7eKBe" 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 9A5AB16D325; Tue, 28 May 2024 11:30:30 +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=1716895833; cv=none; b=hherpvBQ7plBpujuhiW7elnM5/EcusBmdYJMoo55EhtTGZYSuqYQGyaoidtPoeYUDS+5MpK3BJhRSV81wBVoITTN5wfMGVsuRhqTF+rBr4XGRIr0i4f/5IJh6gv1XuflkrOTEZYPJK2asHQNCpEIYdv34ZrCZMUR3Kq5aNgZTFU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716895833; c=relaxed/simple; bh=fjjpE12LjCmk3/T8wmL+f/dwb1qT0VhKARo8RUH1uTk=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=jkGhFMziCz2MFGuu790RHS/V+Cly++PgZ5OV4iXggKCYkQjK5qbM1iF6vghLsxQoLbXrn71qSDePmrrFYpE2THfFFBB5XaTUHj/IsHEJtMClhuYcNJyfFTnYxueaO79Og4CnplaFyvJzdQKLmoK2aT1vIYqEKn7RPdVxuwyMKxk= 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=lvR7eKBe; 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 44RNA26G026579; Tue, 28 May 2024 11:30:28 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=mZuJ0aTjAFLe34q5/lGkcL bx1XKfaYi9iuocaPLtFV8=; b=lvR7eKBemrr1aUEmaJVpv9rz/ciyozw+quZlNM z/S3xTV8hO0ur6PsX7qbnzBF3AwgF5GLiBsHpftq0iJgUbk9N2EASqELXaWo9b1d eoXMWN4fAY1Mx484bq1qARipqiYl8NKuUtbapRd7NGcUj3/lqkP4rswkhG9VM8Dn brSvRvHo8jSUYnxN7yqUes053AAxria+GLi6CV9kBlyfR3ttcqwuFjO+h9z/5agC F5Et5Ke8nAOaYBKH24SiJDcih7jqMO7xAiPkSm12H1k/GbLq1cxf8BlZHYcEsZDh o8cRy4h8J0qrDHIh9uXmhwM1Fg0RzPqUrT+Zvej3Gnj81/4g== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3yba0qduhu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 May 2024 11:30:28 +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 44SBU8jg027739 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 May 2024 11:30:08 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, 28 May 2024 04:30:05 -0700 From: Ekansh Gupta To: , CC: , , , Subject: [PATCH v2 0/8] Add missing features to FastRPC driver Date: Tue, 28 May 2024 16:59:46 +0530 Message-ID: <20240528112956.5979-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: 0DjslDngQNQHDd3NnMfzDsxdwP-rI2a0 X-Proofpoint-ORIG-GUID: 0DjslDngQNQHDd3NnMfzDsxdwP-rI2a0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-28_07,2024-05-28_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 lowpriorityscore=0 impostorscore=0 clxscore=1015 mlxscore=0 mlxlogscore=660 malwarescore=0 spamscore=0 adultscore=0 bulkscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2405280087 This patch series adds the listed features that have been missing in upstream fastRPC driver. - Add missing bug fixes. - Add support for interrupted context. - Add static PD restart support for audio and sensors PD using PDR framework. - Redesign and improve remote heap management. - 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. https://git.codelinaro.org/srinivas.kandagatla/fastrpc-qcom/-/commit/dfd073681d6a02efa080c5066546ff80c609668a 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. Ekansh Gupta (8): misc: fastrpc: Add missing dev_err newlines misc: fastrpc: Fix DSP capabilities request misc: fastrpc: Add support to save and restore misc: fastrpc: Add static PD restart support 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 drivers/misc/Kconfig | 2 + drivers/misc/fastrpc.c | 742 ++++++++++++++++++++++++++++-------- include/uapi/misc/fastrpc.h | 2 + 3 files changed, 596 insertions(+), 150 deletions(-) -- 2.43.0