From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 66982C77B7A for ; Wed, 24 May 2023 06:51:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=xmoLY3pqK5ztHamiBKN9CRCxRPeMUbnd8U9mEbAB+/4=; b=mzF9HJOsXTfh/h 15D20GhayKvT30iJSZxsS8lBfjp+IE5pMttXo9Du4/7ipYje4U2BkKAOodwCitSyikfVIt8qf5dXH +dDQNLZdvZJA8Utwd7JYgSHzqhv8XYZzHJCCzcj+oLhDoMDGVC4EmeBr8dbdrE4nBTrxb16Fogig3 sb/hVmquXLcyN+7Lw/+fdQDyhd1prWUa/48ncTvp00KAfWzHpPMsoSiwitkmRalewalwiVY46VDON 4SfM3PGAKae4KKZ+2XCTkr1kamZOdsjWp6RkF2U6EL2S0Wqt5aToKOkzN0nGfBL2pzn84BQsbf+UX TFYGD1pkXvL2i3nVw8Zw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q1iKe-00CX9h-24; Wed, 24 May 2023 06:50:48 +0000 Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1q1iKd-00CX9Z-1L; Wed, 24 May 2023 06:50:47 +0000 Date: Tue, 23 May 2023 23:50:47 -0700 From: Christoph Hellwig To: Arnaud Pouliquen Cc: Bjorn Andersson , Mathieu Poirier , Jens Wiklander , 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 Subject: Re: [RFC PATCH 2/4] remoteproc: Add TEE support Message-ID: References: <20230523091350.292221-1-arnaud.pouliquen@foss.st.com> <20230523091350.292221-3-arnaud.pouliquen@foss.st.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230523091350.292221-3-arnaud.pouliquen@foss.st.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, May 23, 2023 at 11:13:48AM +0200, Arnaud Pouliquen wrote: > + struct tee_param param[MAX_TEE_PARAM_ARRY_MEMB]; > + struct tee_shm *fw_shm; > + int ret; > + > + fw_shm = tee_shm_register_kernel_buf(tee_rproc_ctx->tee_ctx, (void *)fw->data, fw->size); > + if (IS_ERR(fw_shm)) { > + /* Fallback: Try to allocate memory in OP-TEE space */ > + fw_shm = tee_shm_alloc_kernel_buf(tee_rproc_ctx->tee_ctx, fw->size); > +EXPORT_SYMBOL(tee_rproc_load_fw); Please stick to the EXPORT_SYMBOL_GPL of the underlying tee infrastructure. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel