Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4824668rwd; Tue, 30 May 2023 10:22:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6I8meJtyEFhkimR0xjxBjcmSuWYhTv7JA9pSMMAlZLVseYJe0UqLiu64wNqN6EIumIYdvP X-Received: by 2002:a17:90a:f488:b0:256:490e:cb76 with SMTP id bx8-20020a17090af48800b00256490ecb76mr3263324pjb.32.1685467338881; Tue, 30 May 2023 10:22:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685467338; cv=none; d=google.com; s=arc-20160816; b=PiknNDpTjBl07hqsNTxaybwHycX/1dSQ7lYjYZ0gM4d7/sBQHtjcVYVHiKHhOScggG b2YTXnZtTCibw8rly2JGiJWNvMUo2u9aVF9KBwOMOQxJvTw7p0J65Y7HzGw9+9MMObSz B+SwP9OXV/ZtWH6Juk1a7Fb/MUo46wnf+Ux7/ajDbMbc4vr0Ir7ZxCHNnmtN4LPVmeRQ ZNTWvRYmPrnZwh0BzI3SwCh2NdgEB1hzIOYZDCsG9wMr+sjGzEG+EjoZ/Ec7/+O3s0Cp bLGgeIcGJ3tkv3Ep/voPfmh0LAY852BapqMxRXJnyxEtbGyAz5R34s4tT/fQAGiQXpcW /c9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=FwkP6U9+abkTw5jLxAP82NS3Pqb2yLMLtFGxIOmhkZY=; b=ztS/jCJ/tgq2XLSEYQpinty9AeGfSBZxWEIhiZyhf/BMGb0z1GGxo5erBVzlrG0+cV gYc94ngqnSdPwdPWpxAp3Yjh54Fo3Htz6d8WLq0ZOBn4o4yhagora5hgHD/e4DGNiw08 JHNMz6+V/QkPgMTvq/mqJ1jBpBnkZ0dbVwVfwRnBbo5apFlRlYa2d0l6Eq8sGfoT3a/z cbhAqqz9e93YIgMkDkp9syCR/vFhUbgbW51ODmkUpGeET07fTUob7rzqgsSR+tUaXy48 nONJqp/LyUAUzv9UZ+x0OO3WVk/g95KodlfDmwjY3gZRy+h36/Bci8m/qXx/l1P60oQX i/KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=IUc1O1Sr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id np12-20020a17090b4c4c00b002532e1993basi2803671pjb.154.2023.05.30.10.22.04; Tue, 30 May 2023 10:22:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=IUc1O1Sr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232646AbjE3RNF (ORCPT + 99 others); Tue, 30 May 2023 13:13:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232763AbjE3RND (ORCPT ); Tue, 30 May 2023 13:13:03 -0400 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D64D116; Tue, 30 May 2023 10:13:00 -0700 (PDT) Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34UFnxM2017369; Tue, 30 May 2023 19:12:29 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=FwkP6U9+abkTw5jLxAP82NS3Pqb2yLMLtFGxIOmhkZY=; b=IUc1O1SrTMIn+QZWfRSS9AjGAvkYdvByQSrp6ETusmwrvXwnlpUOltNzYRtxq0x3+su9 okK5FpSsBPPHOgZAR9mczGidpgVLhSdp9Xbkr+wJ/YO9RW31LEqZWsCpH37voqsl6/18 m2tYXvz2NGHE8n+OW/yOB9XxjcNZNEAV7X6q7GehQlF86gTY+7bWsmMxcGCDuuyM2DsK lw+hKYMenVMXCymEvvG8mjtNFCtOXOcQFyFFHa7YaHGKt1AAZdE8612c5GaCiznhWYZN 0eLUrp8jZXRPt4UhWdMDRaemW6IgGaZfu2yVqfpJ3ufR3nGYPg4lId53E37OmVFg6tI7 Gw== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3quahy9j2f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 May 2023 19:12:29 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 3FFE410002A; Tue, 30 May 2023 19:12:28 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 26A8F23694B; Tue, 30 May 2023 19:12:28 +0200 (CEST) Received: from [10.252.5.129] (10.252.5.129) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Tue, 30 May 2023 19:12:22 +0200 Message-ID: Date: Tue, 30 May 2023 19:12:21 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [RFC PATCH 0/4] introduction of a remoteproc tee to load signed firmware images Content-Language: en-US To: Mathieu Poirier CC: Bjorn Andersson , Jens Wiklander , , , , , References: <20230523091350.292221-1-arnaud.pouliquen@foss.st.com> From: Arnaud POULIQUEN Organization: STMicroelectronics In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.252.5.129] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-05-30_12,2023-05-30_01,2023-05-22_02 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Mathieu, On 5/30/23 18:20, Mathieu Poirier wrote: > On Tue, May 23, 2023 at 11:13:46AM +0200, Arnaud Pouliquen wrote: >> This RFC proposes an implementation of a remoteproc tee driver to >> communicate with a TEE trusted application in charge of authenticating >> and loading remoteproc firmware image in an Arm secure context. >> >> The services implemented are the same as those offered by the Linux >> remoteproc framework: >> - load of a signed firmware >> - start/stop of a coprocessor >> - get the resource table >> >> >> The OP-TEE code in charge of providing the service in a trusted application >> is proposed for upstream here: >> https://github.com/OP-TEE/optee_os/pull/6027 >> >> For more details on the implementation a presentation is available here: >> https://resources.linaro.org/en/resource/6c5bGvZwUAjX56fvxthxds >> >> Arnaud Pouliquen (4): >> tee: Re-enable vmalloc page support for shared memory >> remoteproc: Add TEE support >> dt-bindings: remoteproc: add compatibility for TEE support >> remoteproc: stm32: Add support of an OP-TEE TA to load the firmware >> >> .../bindings/remoteproc/st,stm32-rproc.yaml | 33 +- >> drivers/remoteproc/Kconfig | 9 + >> drivers/remoteproc/Makefile | 1 + >> drivers/remoteproc/stm32_rproc.c | 234 +++++++++-- >> drivers/remoteproc/tee_remoteproc.c | 397 ++++++++++++++++++ >> drivers/tee/tee_shm.c | 24 +- >> include/linux/tee_remoteproc.h | 101 +++++ >> 7 files changed, 753 insertions(+), 46 deletions(-) >> create mode 100644 drivers/remoteproc/tee_remoteproc.c >> create mode 100644 include/linux/tee_remoteproc.h > > Looking at comments from Christoph, there seems to be a good refactoring > exercise in store for this pathset. Yes, a good opportunity to ramp-up on kernel memory management :) As such I will wait for the next revision > to look at it. That's fair. More than that I would prefer to focus first on OP-TEE part that provides the service. The OP-TEE pull request review could have significant impacts on the kernel implementation... Thanks, Arnaud > > Thanks, > Mathieu > >> >> -- >> 2.25.1 >>