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 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 1C5C5C636D6 for ; Wed, 22 Feb 2023 16:48:08 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DB08D85BD7; Wed, 22 Feb 2023 17:38:17 +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="Q2L66S/0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B481785AED; Wed, 22 Feb 2023 17:36:25 +0100 (CET) Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) (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 3B46285B3F for ; Wed, 22 Feb 2023 17:35:15 +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-xd2e.google.com with SMTP id y140so4015268iof.6 for ; Wed, 22 Feb 2023 08:35:14 -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=9RHLxCbdw6YUwG0Hf33G4VTae8JtCBQS+NzKHiQZLN0=; b=Q2L66S/0MJnn59zQEYI9saV0gka82wDHF5vRwiYHecWHDi1mrmDbxTr5N63IvXQfJ/ hQ3BVnOl0yp6k5CwJ+HBiti0/aHRiwN/Kv95V5SR+mS0gGueER/kBCEVHOPRBsRGkm2Q D/x7dbpuz0jYblrIa1WeJAlAZQ5QyW2ZdDw9Q= 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=9RHLxCbdw6YUwG0Hf33G4VTae8JtCBQS+NzKHiQZLN0=; b=eRxdLi8PKfkDZy7FUS6cac7PIgnsm+zAAdbva6EIqgnoQ4IxnKmFR9Z1RXcC2jq0zi uhRDsA0Bxiebpv5+eDyc9qIcF+iPKU2M7Abiu43CAlKenWJlZEjBAxe+/aH+QfSe97Q3 ZIZYGCbtQ0LLn6hDrlT2Zgn/ORSpooh3wV6w0EzxtbKZoZFC73yQuKgWSypIrPWEheWp yJru/sJQcHvCB6tfqJL7Z8MxvOh0VnKPjYP8wcuAeNzS54CLM52gchLo6GVEIpekEB/0 2bgI8YREWGtjeaTaTT1wItBNH6nO1T03iiZkwjV0h9b4InGgYb1w90YCa5rfM1Ydh2ZN V8Hw== X-Gm-Message-State: AO0yUKVhEnbJhmhrxV9A9E4lu4L7orMsFqaAvIkMzo1pRvcv+DoGtARr D3XZZ52yk4EeWW5bpb7MSNy4CtnXc3rCkU7F X-Google-Smtp-Source: AK7set+kLvk/9e/PFr91nZ1YWmVlgeGbPBdAupyZsXhPeDc/Dh6nG63p8qqgjJkCnYBdINjOY33zBg== X-Received: by 2002:a5e:a711:0:b0:74c:7f03:278d with SMTP id b17-20020a5ea711000000b0074c7f03278dmr4839400iod.10.1677083709904; Wed, 22 Feb 2023 08:35:09 -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 z26-20020a056602005a00b00716eb44b97esm2164541ioz.27.2023.02.22.08.35.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Feb 2023 08:35:09 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass , Stefan Roese Subject: [PATCH v5 33/44] Add VPL options for BLOBLIST Date: Wed, 22 Feb 2023 09:34:14 -0700 Message-Id: <20230222163425.2043934-34-sjg@chromium.org> X-Mailer: git-send-email 2.39.2.637.g21b0678d19-goog In-Reply-To: <20230222163425.2043934-1-sjg@chromium.org> References: <20230222163425.2043934-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 33c3b1dbf0f..a6b10a251a0 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -1063,7 +1063,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. @@ -1086,6 +1086,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" -- 2.39.2.637.g21b0678d19-goog