From patchwork Sun Feb 12 23:16:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1741205 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=DSrqTJOn; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PFNrC6xKGz23qt for ; Mon, 13 Feb 2023 10:25:47 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8864785967; Mon, 13 Feb 2023 00:21:20 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="DSrqTJOn"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B4FEA856CB; Mon, 13 Feb 2023 00:18:30 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 426568580A for ; Mon, 13 Feb 2023 00:18:06 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd35.google.com with SMTP id y7so3945947iob.6 for ; Sun, 12 Feb 2023 15:18:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8zgU8bgRSXhXtIL+vHLdKQO15yWkZ1TznmtkHIC3Sjc=; b=DSrqTJOnYYWfIyX5Mvpo7VyvcvXjstZxkUZli581b9U6HjaLcb6E0N5rjEvWXCkKuN 9tXFM2nGoCg0VyGFQ3MxMJBsWBpRh2qhMODjJ7sIXhjDecXscFnx+GiUsTTXEwtxf35V y1jleANf8VNSdLu07zNO0lGX5IG5mQBG//axY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8zgU8bgRSXhXtIL+vHLdKQO15yWkZ1TznmtkHIC3Sjc=; b=yaG2fSVq+6pUC6SvgC3e8blOS6y6H8d8yFvBqVCLju1J21bH2zPDDJSZiyIhD+U6HZ 9k0Q7PFLLARwQoG5+s+r9vsFHVfB88aoI6J8pyLC7XZtJ2l74jAqcwQiqckaGVptdKi9 6a4XgVK1BskkVX8wBnGhcgnEOwdxvUMu4AhOPTIDUAhxsZqkjrRJdeajNbUtvT40Srcn p/PeuXMNT8dXGTrbPpDcKpGUzS8HA0qpwsWPg28Xst2fMpYfIYnyPyP8k2F4+NDvgoO4 2BueCCGhkbXIkgvJSql5u+fNR5MSHfkM+GrnE3u2OzTLiU5UdfoaqdZMRELYEHs6lesi bKcQ== X-Gm-Message-State: AO0yUKU6wV4ANZvNTg3R//GHPJnrSpiZu+2mF4JpX4CsC/VKxbq9cVn9 bgjWPsXutK1i9yNraU8M3pJXplb9l5r2kAms X-Google-Smtp-Source: AK7set+8Rp1uMImhC+Dkuxmnt4BsdcW2Jgvlc3HWn9lI6n5GXkVTTOn9p7TUWM0fu5cNlUOrPxakEw== X-Received: by 2002:a5d:8ad9:0:b0:712:cf90:e3e with SMTP id e25-20020a5d8ad9000000b00712cf900e3emr20029643iot.2.1676243883942; Sun, 12 Feb 2023 15:18:03 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id n16-20020a6b8b10000000b006dfbd35e995sm3627849iod.21.2023.02.12.15.18.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Feb 2023 15:18:03 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass Subject: [PATCH v3 64/95] Add VPL options for BLOBLIST Date: Sun, 12 Feb 2023 16:16:07 -0700 Message-Id: <20230212231638.1134219-65-sjg@chromium.org> X-Mailer: git-send-email 2.39.1.581.gbfd45094c4-goog In-Reply-To: <20230212231638.1134219-1-sjg@chromium.org> References: <20230212231638.1134219-1-sjg@chromium.org> MIME-Version: 1.0 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.6 at phobos.denx.de X-Virus-Status: Clean We can use this feature in VPL, so add some options for it. Also fix a typo in the SPL help while we are here. Signed-off-by: Simon Glass --- (no changes since v1) common/Kconfig | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/common/Kconfig b/common/Kconfig index 58008321d53..7d98976416b 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -1071,7 +1071,7 @@ choice prompt "Bloblist location in TPL" help Select the location of the bloblist, via various means. Typically - you should use the same value for SPL as for U-Boot, since they need + you should use the same value for TPL as for U-Boot, since they need to look in the same place. But if BLOBLIST_ALLOC is used, then a fresh bloblist will be created each time, since there is no shared address (between phases) for the bloblist. @@ -1094,6 +1094,35 @@ endchoice endif # TPL_BLOBLIST +if VPL_BLOBLIST + +choice + prompt "Bloblist location in VPL" + help + Select the location of the bloblist, via various means. Typically + you should use the same value for VPL as for U-Boot, since they need + to look in the same place. But if BLOBLIST_ALLOC is used, then a + fresh bloblist will be created each time, since there is no shared + address (between phases) for the bloblist. + +config VPL_BLOBLIST_FIXED + bool "Place bloblist at a fixed address in memory" + help + Select this to used a fixed memory address for the bloblist. If the + bloblist exists at this address from a previous phase, it used as is. + If not it is created at this address in VPL. + +config VPL_BLOBLIST_ALLOC + bool "Allocate bloblist" + help + Allocate the bloblist using malloc(). This avoids the need to + specify a fixed address on systems where this is unknown or can + change at runtime. + +endchoice + +endif # VPL_BLOBLIST + endmenu source "common/spl/Kconfig"