Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp144944rdb; Wed, 21 Feb 2024 21:42:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWbdbRTt6CXei3KsUifHsIQx7yrF3tRsGwa4e2Mqo7CI8cP7h7yWFY+uu6FPO9m9KV8B9kGGBKQJKVH7BnnKe4i03oNJgxZvWoS+cN18Q== X-Google-Smtp-Source: AGHT+IG6bvFjMPkrgM84wFZlCj22dyPhtqpx0AuqGQyFB4hqjhWbo5U5PIYbCnVTORN8/J0aoslO X-Received: by 2002:a05:6870:d150:b0:21e:88ee:8680 with SMTP id f16-20020a056870d15000b0021e88ee8680mr13864851oac.36.1708580573650; Wed, 21 Feb 2024 21:42:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708580573; cv=pass; d=google.com; s=arc-20160816; b=L1VQwD+8wDftiKyVEzu/hmBCymYpM6zQnbMQRatNfhcqO60Su49OoB0SfxtrveM/bv 1DrfwT+UOXv08CsUT40dtNHC9Zekp3KQ5xslmySPa9YDH70HRxnFtA5LjMATuEmOad0V dz74CU+jVQEtk8RwslvttMDyRam9ZwADow6cAOtUmrijrfAYVre0zU7OM5JxKlFo6FYL JCTX9FRSG1mi06EfErhJUi+b+FTMAn2XlTy78OVXco0c5xV4PlryG2gtJMDkCII86xca QW9Lr9QUCrooO6+fsyrKVshHykf/q+glw6BwbN39UMWxT2FnZ026Ms/aycqlQuGB6Baf 9Y5w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=Znncx6d1BYRx0r4T6MJOLkgq0dGqyZgNPe6BwvwZsn4=; fh=2sjcumN1b8iyzT/dtNPg0blPqrpcSjzv464gELKm6TM=; b=ohhxvUI7ilAHPOOBuEfSn3aeAw7K1VNmxvVHfPcah+/U63iiOqHjCnTBCfZeIxkuf/ Pkq7m3hJCOEk9r3iCkx8XXyaySduSYd0hANwLexYHxHV9MWkXz/pOIxt239oZXv5G9Dq dCqNRanXpf7j3dxs39Z4558e5+k4d2C04pfxgEJ0Ko2vLWlTooNI3NTlAfHymLFswLFG tQwMgvMdDHBFw4ZowXc+6OCnmfxeiSjZ++2Q6Yhy2mYw7F1ERyvZ0+Bg795XmrZiqtAH 88+k6jUWRsyAr/7d8grWOcyWRY6C9qzO88OSfNR1KaYoY4E7ubYNy5+zaEFrbVY7ct02 MlIA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=iriWfVDK; 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-75948-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75948-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. [147.75.48.161]) by mx.google.com with ESMTPS id w9-20020a63b749000000b005e42b4c0c48si3522935pgt.390.2024.02.21.21.42.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 21:42:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75948-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=iriWfVDK; 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-75948-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75948-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 BCF9EB23BFB for ; Thu, 22 Feb 2024 05:42:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7F084111BB; Thu, 22 Feb 2024 05:42:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="iriWfVDK" 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 E7D3679F9; Thu, 22 Feb 2024 05:42:40 +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=1708580562; cv=none; b=PrbXFHjHBM/45IF2sBlJ+IArVLweOOcMy2LbfsOvP3nAev9upK4suRyQNeJv5xCp0Q7A0MdFZZM/Ry4m2RZ7m56t2niU4xWUVX/rZce1NSe0Utin/VMYGoB3rFDsn9kRF0uzrn6wHrqLNg63G7be/7aH3MVzYJwP5bGlxmxh42U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708580562; c=relaxed/simple; bh=kLK2h+T0JfPCs0QHXVU5UYc4hufsEtwYHo/PYd3TAEM=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=ndRv32xlZzZHIJ9v6tf777xBqIwX1+RYnsXsbhIUPo7AkcPakVcmtTN7El/3uZ4eJgq95gKgmGZyCqcxmFOIfI5fvKe+AGUPzXuHKwPcpzQ7FFi+wHdJG1DtY/qtSkbvDRa/Ed9CYQBjWrLhS2aMRmM81FnZ/AqJazSA55UQI6Q= 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=iriWfVDK; 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 (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41M1cPAN002620; Thu, 22 Feb 2024 05:42:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=Znncx6d1BYRx0r4T6MJOLkgq0dGqyZgNPe6BwvwZsn4=; b=ir iWfVDKmCnVFWwl3eiRd+QKpck7Ha7AA12glSX4+/o1UvSh1DAO1/Mmar7lUFdf19 XJ029fNQWeMCkJaqn+791IK56bHs0PxQdx12NIPj+YaF+tYNbif+msMe0VINnlBR +ZGUVT3OKWhrv8Jgqd1onH7RQ+/6mLQUQdJTMl5yn4tgVkEBOsweKugf9F06DPzz VteA17o4iGV9bIQP93sGT2OMSJ1/gMbaS1ZaehT+9syvsFHFOtXb2Bhjnjbkxm1+ 8t0v7HuycB94JEMCM961B32VF01h9lR7P3vjaMWkdyK4HUvXpoAL8y7wGeqqj3tr R/XbzJel7mZkP9V9WkcA== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3wdvsegdc0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 22 Feb 2024 05:42:24 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 41M5gNHn023963 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 22 Feb 2024 05:42:23 GMT Received: from [10.214.82.119] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Wed, 21 Feb 2024 21:42:19 -0800 Message-ID: <71a6eb2e-bb13-4b6b-82b6-f51bdb6d164e@quicinc.com> Date: Thu, 22 Feb 2024 11:12:16 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 1/7] remoteproc: Add TEE support Content-Language: en-US To: Arnaud Pouliquen , Bjorn Andersson , Mathieu Poirier , Jens Wiklander , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , , , References: <20240214172127.1022199-1-arnaud.pouliquen@foss.st.com> <20240214172127.1022199-2-arnaud.pouliquen@foss.st.com> From: Naman Jain In-Reply-To: <20240214172127.1022199-2-arnaud.pouliquen@foss.st.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: xMO9mgWNtk2KhjEwdv1uc3pG8iVzqPGk X-Proofpoint-GUID: xMO9mgWNtk2KhjEwdv1uc3pG8iVzqPGk X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-22_03,2024-02-21_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 lowpriorityscore=0 suspectscore=0 mlxlogscore=999 adultscore=0 malwarescore=0 phishscore=0 impostorscore=0 mlxscore=0 clxscore=1011 priorityscore=1501 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2402220041 On 2/14/2024 10:51 PM, Arnaud Pouliquen wrote: > From: Arnaud Pouliquen > > Add a remoteproc TEE (Trusted Execution Environment) driver > that will be probed by the TEE bus. If the associated Trusted > application is supported on secure part this device offers a client > interface to load a firmware in the secure part. > This firmware could be authenticated and decrypted by the secure > trusted application. > > Signed-off-by: Arnaud Pouliquen > --- <...> > +}; > + > +static struct tee_rproc__context *tee_rproc_ctx; > + > +static void prepare_args(struct tee_rproc *trproc, int cmd, > + struct tee_ioctl_invoke_arg *arg, > + struct tee_param *param, unsigned int num_params) s/prepare_args/tee_rproc_prepare_args ? please align function args in nextline with (. Eg: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/remoteproc/remoteproc_sysfs.c?h=v6.8-rc5#n13 > +{ > + memset(arg, 0, sizeof(*arg)); > + memset(param, 0, MAX_TEE_PARAM_ARRY_MEMBER * sizeof(*param)); > + > + arg->func = cmd; Regards, Naman Jain