From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) (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 0B7161DA5F for ; Mon, 9 Jun 2025 15:23:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749482595; cv=none; b=UfPKS74iFo9KjLAwjBe/Aw+3BWQY6zvra1M/jt43xyemGUylSCrakc1xbPMDg40imFfxPZNlxq1zd9zOIdPhuIrAQx5cbc3dEF4M/NaUeEt3X/BO+tLOxTLnSqsLhmsjM2HQECvwN4LtyKKLDxhLlCaiCrHAlle4AFDms8l3ylQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749482595; c=relaxed/simple; bh=y4AY4K62fedPencGjJKnWwfhgTpyhRQDI5r8TTyeqzk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IcA55uDuKxpLlyaf5RU3m7T7pQsKqyaChhcS2Wwwq3fwBLzmx3oL4/AwzuDu3T6weJ4ANrGgv1crUOYlcuVXZB/960cYWo9SZpUNFAwg5Irict9yHoy4Lpcon0e0Jok1RVedXvX/3W2bMK+bGQixlk6IXyNdMIcqI7oIhnZrzV4= 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=XgXgzR5A; arc=none smtp.client-ip=209.85.215.179 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="XgXgzR5A" Received: by mail-pg1-f179.google.com with SMTP id 41be03b00d2f7-af51596da56so3034766a12.0 for ; Mon, 09 Jun 2025 08:23:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1749482592; x=1750087392; 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=4+Mg6PW+/K0QnsP+hIHi7hEEWjzJrekcG6Ta5Fzf3T0=; b=XgXgzR5ANHitIHH0VJjxs3FyAjGiHv+rBlOwj1v8iFspna7K0lqlMO+uaD/t6uJy0t rNuUeoeiSJvpbIapxpWmkDan5gda5AAWG1Ek+LDI1hw00stscPSd1e90s9VKZJFgbx0a wjQxkyUb3gB9xq5L6/C6jchjBFtbqcb8pWT/D+EInouXBpnWQgQNsZMAUVvJbaQ/nV4e JQ/4/GwEokHpWlNxRUuSTvcf1TMaZ6kYq+wNzCBVjyQJrEjqVazUU0Iu9mwJdLjuvTvx QEM/LTa+zUbeMwzQDf7IX0ke11Yfrs+LVeI05iOjN+OEKMJZ+Ods8omu/NMGB+qsXmUV mlZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749482592; x=1750087392; 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=4+Mg6PW+/K0QnsP+hIHi7hEEWjzJrekcG6Ta5Fzf3T0=; b=rPiTe29uBprv84jhkwSjpowRSf1gGtg/DJ8fDwXi+UTrssj0Fc4Vc4a7C5K/lE3cqm wX0u03WpF7XBgrsrkjMEMRVxz7VOYwdRbY5kswNhGo7Cd+XaLYq/MaYVARvl5XOoz11W u8mFiHb4Z+RTBsEhrKXHDyLG+qUMKz9bYA7WYylxVWTV1hSadqKWcL7e/DH9oU3S+y0u dnpY8MBQR141vBjScIfBHf1z4GkTsh4GVCNnXAFSQorajwbYzLLAjt4Nzi8wte25eGsQ noHOoNl/leguKlIcsxMnks+KqqlaTykzulUJKNeQaFywiiiooAlqzkxJRiJ6Ozxn0AO5 yzzQ== X-Forwarded-Encrypted: i=1; AJvYcCUfy5xdR3pJO6RScAl9Zxe1lgbLRVfj0H5NxRVgbQtQRgTrLqVEJR9Zd9b+Wg4F6CMG5BDWO8Mt5GKc@vger.kernel.org X-Gm-Message-State: AOJu0YwA88RasFiM8iMACzsiMqX4d6LRi09MaPXBYJuJj3JujTikXDEq qCb3eM190R4n7nfIkPG19PaJulx3iPoL1DCZ1g2w9oycShPqjY8MqWz+ArtDS83sk/Y= X-Gm-Gg: ASbGncucpN4EqPRyClRy/z1y6JPHaJLGMQYY7jac/LHAnJx6G1HzlAZal3dT7MolFm/ 8pISQI69OdFH/Bywkp2FOwk93/pAQDJySijWp5BoAmAVBj6Vl+y7MzDqVnDQ7iD/Ff15HHQJtrN zSlawuEArijBO3hpXa+2OChIE/O1lKqmL8b13I88Gt/d6cB3I8XlFUCd4sr/0B1ODZQJBxN37cK 4Z210i8ZGC0JvWbuoMciocQU6tCtDTofrt3s1tIt8hyPDt7obhOwcfkSy04Qbe6xbk3vb2YGaFJ PuDrIKCephT9X2BjZnpNvylVAQZd21v1cFoN24H8NcCDqAeDDdDgPZviAx9rMC3AEeFM6C1X1ro 0 X-Google-Smtp-Source: AGHT+IEHQs24xS7vzskFJPPr8eh6p9W8ZrujNawhU2iz0AreagkiHluW65S1z22AdhoPCthNzNJd4g== X-Received: by 2002:a17:90b:3891:b0:312:26d9:d5b4 with SMTP id 98e67ed59e1d1-3134740b55cmr21132387a91.17.1749482592330; Mon, 09 Jun 2025 08:23:12 -0700 (PDT) Received: from p14s ([2604:3d09:148c:c800:1329:68ff:ffeb:cd9c]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-31349fc374asm5791390a91.29.2025.06.09.08.23.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Jun 2025 08:23:11 -0700 (PDT) Date: Mon, 9 Jun 2025 09:23:09 -0600 From: Mathieu Poirier To: Arnaud Pouliquen Cc: Bjorn Andersson , Jens Wiklander , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, op-tee@lists.trustedfirmware.org, devicetree@vger.kernel.org Subject: Re: [RESEND PATCH v16 0/6] Introduction of a remoteproc tee to load signed firmware Message-ID: References: <20250603100808.1074812-1-arnaud.pouliquen@foss.st.com> Precedence: bulk X-Mailing-List: devicetree@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: <20250603100808.1074812-1-arnaud.pouliquen@foss.st.com> On Tue, Jun 03, 2025 at 12:08:02PM +0200, Arnaud Pouliquen wrote: > Hello Bjorn and Mathieu, > > I am resending this series after waiting for over two months for Bjorn's > feedback, despite a prior reminder. > > Please could you coordinate between yourselves to determine who will continue > reviewing this series? It would be greatly appreciated if the review could > proceed within a more reasonable timeframe. > > Thanks in advance and best regards, > Arnaud > > > Main updates from version V15[1]: > - Removed the rproc_ops:load_fw() operation introduced in the previous version. > - Returned to managing the remoteproc firmware loading in rproc_tee_parse_fw to > load and authenticate the firmware before getting the resource table. > - Added spinlock and dev_link mechanisms in remoteproc TEE to better manage > bind/unbind. > Have all pending issues been resolved or is there still questions about some aspects of the design? > More details are available in each patch commit message. > > [1] https://lore.kernel.org/linux-remoteproc/20241128084219.2159197-7-arnaud.pouliquen@foss.st.com/T/ > > Tested-on: commit 0ff41df1cb26 ("Linux 6.15") > > Description of the feature: > -------------------------- > This series proposes the implementation of a remoteproc tee driver to > communicate with a TEE trusted application responsible for authenticating > and loading the remoteproc firmware image in an Arm secure context. > > 1) Principle: > > The remoteproc tee driver provides services to communicate with the OP-TEE > trusted application running on the Trusted Execution Context (TEE). > The trusted application in TEE manages the remote processor lifecycle: > > - authenticating and loading firmware images, > - isolating and securing the remote processor memories, > - supporting multi-firmware (e.g., TF-M + Zephyr on a Cortex-M33), > - managing the start and stop of the firmware by the TEE. > > 2) Format of the signed image: > > Refer to: > https://github.com/OP-TEE/optee_os/blob/master/ta/remoteproc/src/remoteproc_core.c#L18-L57 > > 3) OP-TEE trusted application API: > > Refer to: > https://github.com/OP-TEE/optee_os/blob/master/ta/remoteproc/include/ta_remoteproc.h > > 4) OP-TEE signature script > > Refer to: > https://github.com/OP-TEE/optee_os/blob/master/scripts/sign_rproc_fw.py > > Example of usage: > sign_rproc_fw.py --in --in --out --key ${OP-TEE_PATH}/keys/default.pem > > > 5) Impact on User space Application > > No sysfs impact. The user only needs to provide the signed firmware image > instead of the ELF image. > > > For more information about the implementation, a presentation is available here > (note that the format of the signed image has evolved between the presentation > and the integration in OP-TEE). > > https://resources.linaro.org/en/resource/6c5bGvZwUAjX56fvxthxds > > Arnaud Pouliquen (6): > remoteproc: core: Introduce rproc_pa_to_va helper > remoteproc: Add TEE support > remoteproc: Introduce release_fw optional operation > dt-bindings: remoteproc: Add compatibility for TEE support > remoteproc: stm32: Create sub-functions to request shutdown and > release > remoteproc: stm32: Add support of an OP-TEE TA to load the firmware > > .../bindings/remoteproc/st,stm32-rproc.yaml | 58 +- > drivers/remoteproc/Kconfig | 10 + > drivers/remoteproc/Makefile | 1 + > drivers/remoteproc/remoteproc_core.c | 52 ++ > drivers/remoteproc/remoteproc_internal.h | 6 + > drivers/remoteproc/remoteproc_tee.c | 619 ++++++++++++++++++ > drivers/remoteproc/stm32_rproc.c | 139 +++- > include/linux/remoteproc.h | 4 + > include/linux/remoteproc_tee.h | 90 +++ > 9 files changed, 935 insertions(+), 44 deletions(-) > create mode 100644 drivers/remoteproc/remoteproc_tee.c > create mode 100644 include/linux/remoteproc_tee.h > > > base-commit: 0ff41df1cb268fc69e703a08a57ee14ae967d0ca > -- > 2.25.1 >