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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7A6DFFD8779 for ; Wed, 18 Mar 2026 00:07:48 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BAF6183FF5; Wed, 18 Mar 2026 01:07:46 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=mailbox.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; secure) header.d=mailbox.org header.i=@mailbox.org header.b="ivMKebPJ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6883483FD3; Wed, 18 Mar 2026 01:07:45 +0100 (CET) Received: from mout-p-103.mailbox.org (mout-p-103.mailbox.org [IPv6:2001:67c:2050:0:465::103]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 43C9C83F6D for ; Wed, 18 Mar 2026 01:07:43 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=mailbox.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=marek.vasut@mailbox.org Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4fb8KT1RNDz9tdm; Wed, 18 Mar 2026 01:07:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1773792461; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SaByJ3ExnGP7nGqpBBM2wQQCAwomTgUW/nMs/yir44s=; b=ivMKebPJGuMpz0wKR1OULPz3xjgcPQulYP4X/l1+x/66gC/EY+nGwU6r7PEo4HN2QwmihK SYULGuDNJB8nnbfsiNvClU5NKCwAahq3svmgKTP9SwNQicaB7bAaCiOC5Zu8vWdtJZ6foN q6Wt/dPs6IU7KdOjWv+D44zB6TqyG0FvXGoFd7MV9RumhvdaQAQx9dt/AnycZu5vYAhroB 06HSBpm+AhB5MxgUGC24pYTQZEzP94cykl4W5MoNE582gWO8GRQK5o4rwKsB2j3Fjt4cDm 0u4zsWfqe2kWfzYox3nbcKDZPn5b6GNovUsriGZqu2vBC/RKJV8PwQJTQLe0Hg== Message-ID: <760d0cc1-f45f-4370-9331-7dd53ee4e10d@mailbox.org> Date: Tue, 17 Mar 2026 20:40:07 +0100 MIME-Version: 1.0 Subject: Re: [PATCH] optee: Correct dependencies for BOOTM_OPTEE To: Tom Rini Cc: u-boot@lists.denx.de, Bryan O'Donoghue , Fabio Estevam , Patrice Chotard , Patrick Delaunay , u-boot@dh-electronics.com References: <20260317012452.4162719-1-trini@konsulko.com> <533317d3-76f5-4e6f-a8f1-d879fc642de2@mailbox.org> <20260317133843.GP502704@bill-the-cat> Content-Language: en-US From: Marek Vasut In-Reply-To: <20260317133843.GP502704@bill-the-cat> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-MBO-RS-META: iehq6icqwj65awuhqym4k37i7h6yf1h3 X-MBO-RS-ID: 82320a781187451df7f X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On 3/17/26 2:38 PM, Tom Rini wrote: > On Tue, Mar 17, 2026 at 03:32:16AM +0100, Marek Vasut wrote: >> On 3/17/26 2:24 AM, Tom Rini wrote: >>> As exposed by "make randconfig", we have an issue with the dependencies >>> for BOOTM_OPTEE. This symbol needs to select BOOTM_LINUX and in turn >>> that is only valid for CMD_BOOTM or CMD_BOOTZ. Add this dependency. >>> >>> Signed-off-by: Tom Rini >>> --- >>> I am looking for feedback on this, so I've added the board maintainers >>> for the platforms which enable this option. It looks like this is only >>> valid on 32bit ARM platforms, to start with and not 64bit, is that >>> correct? That's why I excluded CMD_BOOTI from the list. I suspect that >>> this should really depend on CMD_BOOT{M,Z} and BOOTM_LINUX, and not >>> select it. If someone can confirm, I can do that instead, or someone can >>> just do the replacement patch for this. Thanks! >>> >>> Cc: "Bryan O'Donoghue" >>> Cc: Fabio Estevam >>> Cc: Marek Vasut >>> Cc: Patrice Chotard >>> Cc: Patrick Delaunay >>> Cc: u-boot@dh-electronics.com >>> --- >>> lib/optee/Kconfig | 1 + >>> 1 file changed, 1 insertion(+) >>> >>> diff --git a/lib/optee/Kconfig b/lib/optee/Kconfig >>> index 34b9d8afe675..9251faf73cd7 100644 >>> --- a/lib/optee/Kconfig >>> +++ b/lib/optee/Kconfig >>> @@ -40,6 +40,7 @@ config OPTEE_TZDRAM_SIZE >>> config BOOTM_OPTEE >>> bool "Support OPTEE bootm command" >>> + depends on CMD_BOOTM || CMD_BOOTZ >> ARM32 SPL arch/arm/lib/spl.c has this piece of code, which does not depend >> on "bootm" command. This is used by falcon boot to jump into optee-os , with >> the optee-os return address being Linux kernel entry point. So I don't think >> depending on CMD_BOOT{M,Z,I} is enough ? >> >> 77 #if defined(CONFIG_BOOTM_OPTEE) && defined(CONFIG_ARM) && >> !defined(CONFIG_ARM64) >> 78 if (spl_image->optee_addr) >> 79 boot_jump_linux_via_optee((void >> *)(spl_image->entry_point), > > Ah right, I forgot about xPL_LIB_BOOTM. But, is this 32bit only? For now ... I think boot of optee from U-Boot on arm64 is coming in the near future.