Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp128717lqh; Thu, 30 May 2024 16:58:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU/1m8F1p4vyapP5pcEGRNRQkHttQ3D7wDbenfdKorO96RBo4zwrWGs0ZfqIHAnzQQk+CVgopWuRaJ+5UwsNy4av+/n6eZtjau0OvbYTg== X-Google-Smtp-Source: AGHT+IGOAyi2/VFoYOPwriJf9MKIYBXudpv77lF4X6xmTk2B0zyNp1msGGK/y+u4bfH/8WP1kaMm X-Received: by 2002:adf:e88d:0:b0:351:c960:b5a2 with SMTP id ffacd0b85a97d-35e0f254f8amr147033f8f.6.1717113492294; Thu, 30 May 2024 16:58:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717113492; cv=pass; d=google.com; s=arc-20160816; b=eTB/8JxKPyklIbL6O3RQCJUyxVO0SqvebxrbDaHcB5YbgQN3HcbkWUZTMMWGmFEQCw rUEelb34X8uvv4EguUuJGms2adz1KwV4XqwB4GEXWZS7h9x9JXMPV5f1Vfxt9ov2s2Gj FpUHgDknMv/lmpljLpSHhVpDkKusdwefl3dr3gvPM7wrvodZXb8nUXfBy+tDIIxIBEdp 4SXZ47ipQI9231YdB/ixIy/RvyldLxIGN8nxHHKmwbxW37NXUU4gb3vYHjQI7fW7elkZ vect1rTNyCM5SHkCXhKtiTiiJ0rOnY952A+f6udfA474i8qS9mq6fPuC9X0jW+pMsCFO Wd5w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=rTw3xrgpK+XczV4V02obwDdH8Sb5LloBfx/h6NiR1nU=; fh=op0XiqY0WBJOuAEMwHNer5ghfoovzJhnZewGFxeOYi4=; b=z6nh9EtypwnS0kebp5eq0cANYBw52l3XPDJiQR4MV1xseLncqdxII+d7Y1D+cfeEiB ECc4U4rA8I+xsDlNK8J0h5iwUG5Nnk0LIzukM2Vxj/DI0304FiOIhgxA6LACbSXKF4Rp CMvAYdzsmpE8V8uzA6j70lkS8RfwzUrT2TaiSS6pBWBhUDRxajgzp89Z9gpUsX2yB0nn rNgURJXsT9pw8jalqOcgEF0cYaUPKB7Sf90teeTsdx5Kg5aED9FIChLcyiIxTlO/iEIR RoDwyNIysXGCuAGxUnGj8vOQpBTXRo5HLGxGbj6fWn4jUufsYyTO5yP1mKItV9dPvf4P CWDw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=n+YwX7Jw; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-196051-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196051-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a67ea990f32si26964666b.551.2024.05.30.16.58.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 16:58:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196051-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=n+YwX7Jw; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-196051-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196051-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 E26D81F2798B for ; Thu, 30 May 2024 23:50:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 75606183A71; Thu, 30 May 2024 23:50:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="n+YwX7Jw" Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CE2A855896 for ; Thu, 30 May 2024 23:50:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717113035; cv=none; b=T24UTaQX5HwuKQY6jIkguI3eIX+6O2W/jZswlm6GtAzqwvs6CpFFy2uXBNHLUuaSHsnpcVFE8K1JKqXqWeRl4YLq7Lupr5Sw1SlgXXnjL5eS5WRUIENrzns1FybqqFbyJHfaeI/DB+nptJceZ2oVNgjZ9x3u48dYffIvqpJroq0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717113035; c=relaxed/simple; bh=D15m+MyXTHrsVXJPkTMbFZ1Yyx/Tcx3EMn8BItHzm9Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SNcH9AVlUCsI3CgNuxwC0Eo9LH52hq7uZLlRxsfNpnSW49foBWxTWwQRs6JFDaxLZmVlBCZj002lzocLv/0C6TtrVn4zycOU92xttnqOD2YZFSwG6vDIxy8yfQaqoo+GRrn9A8c6Bt7IaGi+0uOwXBlnQjLxED3Rvu6tKATVpyk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=n+YwX7Jw; arc=none smtp.client-ip=209.85.167.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-52b80e5688aso1620628e87.0 for ; Thu, 30 May 2024 16:50:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717113031; x=1717717831; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=rTw3xrgpK+XczV4V02obwDdH8Sb5LloBfx/h6NiR1nU=; b=n+YwX7JwlvMyOt+tAndUEB/jN5wf4ZvRdmTLAYE46TsQPDtJZckInlKqlGXSVs2nYd jfoYt9Zxl2EX5zAyD+h/6zjYZaFykiJtvwYnytPTjfT6SMmZCXldyszep2wWmuw/EvMW 294sy9c/gh4v9fV4uxHRofut/RytV1oN4S/a5DbBbYCU+6xO/+8n3ACNzSwb0vMZlddI F7WtGiWGPWJ9QHdjtfTuwHPR4soY1YwKN2/fu3HBLWrpcVNhuQLANUspE1FqtWqJPRnk uEEb1nlzNRLep2R8pA8vGx1A5HlXPnZUl7lMbpTS9JZmtNEuv5tKpO7JOvURU6MIKtS9 zvEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717113031; x=1717717831; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=rTw3xrgpK+XczV4V02obwDdH8Sb5LloBfx/h6NiR1nU=; b=k3Ay+IKwIW7auyh1p8OemawmUqjQgGnRwTHJM8DP6p92KY2V1eKeWkVfrXxWWbz+k6 TbM4PuV3HkZxbTge5L96umWGvX0TVITgSd+He5mygXd+R0ubR82Q8JjcN8VjeQbK1B+s rOjdY3/UiUo6fsI9qkjnSdy4oDs/pzk5sx1zJyWuEuP8Rj0FJlftcdyl0OjeS7kTHb2/ WFAblfv0+O12mHOZ+qeMbToHTbw7DqqTHfE+Mo7XTu7R1eBMMGpK/RCL8FURawuoHZEH sLvJKiZNdUYJwM+BtJN5zQGUjXrSetkjspcmFloQfklzzI1VZUDxifGyQa03qDX3414k QW1A== X-Forwarded-Encrypted: i=1; AJvYcCVR3ZJkMKqtgEHffBX1ywRhlrmBnGZWMWPo2xkrFY8Y4SZOnGDRLSVyOzU0F7Zgvl9xJd2t+CJfA6BF/CdgEmYqo0dRP5hS/lUEHw7w X-Gm-Message-State: AOJu0YzV6g3jZ7KxSxkScnkc4dPvNLl8rAFgZrr00Gq2z+p8w01/JZkF QAOO91LnHtZksk5e1POzUB5BGdT+4vW7ldgD63kBnFUQY5SvS9FCs3u8N0DGxdQ= X-Received: by 2002:a19:6a0b:0:b0:521:7846:69d3 with SMTP id 2adb3069b0e04-52b896af22fmr93823e87.55.1717113030884; Thu, 30 May 2024 16:50:30 -0700 (PDT) Received: from eriador.lumag.spb.ru (dzdbxzyyyyyyyyyyyykxt-3.rev.dnainternet.fi. [2001:14ba:a0c3:3a00::227]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52b84d76217sm127052e87.121.2024.05.30.16.50.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 16:50:30 -0700 (PDT) Date: Fri, 31 May 2024 02:50:29 +0300 From: Dmitry Baryshkov To: Ekansh Gupta Cc: srinivas.kandagatla@linaro.org, linux-arm-msm@vger.kernel.org, gregkh@linuxfoundation.org, quic_bkumar@quicinc.com, linux-kernel@vger.kernel.org, quic_chennak@quicinc.com Subject: Re: [PATCH v3 9/9] misc: fastrpc: Add system unsigned PD support Message-ID: References: <20240530102032.27179-1-quic_ekangupt@quicinc.com> <20240530102032.27179-10-quic_ekangupt@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240530102032.27179-10-quic_ekangupt@quicinc.com> On Thu, May 30, 2024 at 03:50:27PM +0530, Ekansh Gupta wrote: > Trusted CPU applications currently offload to signed PDs on CDSP to > gain some additional services provided by root PD. Unsigned PDs have > access to limited root PD services that may not be sufficient for > all use-cases. Signed PDs have a higher dynamic loading latency > which impacts the performance of applications. Limited root PD > services could be opened up for unsigned PDs but that should be > restricted for untrusted processes. For this requirement, System > unsigned PD is introduced which will be same as Unsigned PD for > most part but will have access to more root PD services. Add > changes to offload trusted applications to System unsigned PD > when unsigned offload is requested. > > Signed-off-by: Ekansh Gupta > --- > drivers/misc/fastrpc.c | 27 +++++++++++++++++++++------ > include/uapi/misc/fastrpc.h | 2 ++ > 2 files changed, 23 insertions(+), 6 deletions(-) > Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry