From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) (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 113BA14B959 for ; Mon, 9 Jun 2025 15:23:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749482594; cv=none; b=Jx7TyCT/AqBYppW3sHdgBQJfQnvBuBtfnnxeprxxYXykKoJ+m8ZAFWHrSO+Xu1OiHeQaqGtAmqVsLXVmGBSN71vkvU13NouC6XAyjtboIqrJSdSgy+l29Nm0capk6yZI0DFK6IJ/5NfN+1hdZDM4xLaUnGbNLfzDXtAeUNpysYY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749482594; c=relaxed/simple; bh=y4AY4K62fedPencGjJKnWwfhgTpyhRQDI5r8TTyeqzk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=uuFXJbFOnOGONhUfA71AEt19zxMqwmaZkUwRPANZr/Io3poSxndoNd1Fh28EEhraJtwFNT0rdyPAAvUMKU9GOZvT29XzmFHlNsiexC08dgTd3zb3FkROOFcOhM+rJensVg8ENoueQPtSacK1bc0gx/ZAXnP7InXN2rO71csFyGc= 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.177 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-f177.google.com with SMTP id 41be03b00d2f7-b1396171fb1so2315174a12.2 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=h0hetuYktV7hdwjkt9Im43Vf39oxC25DUYZB3ueqD/kfVTu32rKy6fqTQecvqgTbKN izFwQSkl6nLn/EElThxvkviEQSJUYVDNx+iRZQZY8f+YIAJ8fv7ARd+DYH4tfpxC0pcb 6xx1JtvSX7e3HzbVsZDrux4mlbwp1kAYy/wjttNMv9AH9fgbfMzkZ4Kou39kDiNI9a4R k0hTjegcOw0dZD2fT8mXeQFqf1X8udN3QABGiyK+ADpETtegLpRILqC00HH7oYC9ij2w /wHzvlbxKpjBjjUqckm5JPYTtPyowJYWHoHxklGH28Jmk4KPoXzZkUob6FM9cxX2kUcz XIqQ== X-Forwarded-Encrypted: i=1; AJvYcCX+dwESVL0izQoEPczrTwQQqQtIXXxpq9p834xmLO0h0PqYE0sBJgMybyW/zkHGbFRIYsMcelMC5/5h9VNbBxc2@vger.kernel.org X-Gm-Message-State: AOJu0YwQz6EQcgGtKDhzgtezsfUeZffi6KQNxgB+jfCpE401BNXZ7m8P xwAs8kE/1fOyEcuYfEiaRkIClNvC4IPO8Fwl8+EZzgRczSsx3TW2EhfZiqvkFgCFqYA= X-Gm-Gg: ASbGncvBGpirSof70/6JrllbkS7i+c/C3QPWn+0XZpnVct45NGdCqk8+LNYoq/BNkf7 ibLrfSX5FVh38WrnJpGw9WVoPRn3uHVHsCCL84GeKhDKIOUlaMBuF7yaHsRNKUTEHKffXPXSbjM LNDlIj6xPIVjPn3SQlHUrrAzWHNcgOQXXItdSxoI6voNVUa1MssIm70YcQuRyZTA4xSjtdRJJSz 0FzMjeTIFn9fnrWRQv3vpuV//IBH7X54ewwQizYzjgZDxYGsJK/7VxOcAum0vg04FIPoikC+u6O YbtBAadN8AIi1O9g/+ZvunM7f9Cs4iFqziIaGiEJaWHmPNx1Ge3YCvNMWBX6EesSScVq+FjiwQy t 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: linux-remoteproc@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 >