From patchwork Tue Oct 8 18:14:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 833589 Delivered-To: patch@linaro.org Received: by 2002:adf:a1d9:0:b0:367:895a:4699 with SMTP id v25csp435559wrv; Tue, 8 Oct 2024 11:15:35 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUwG8fvBeAVZXpzUjj0SJ/Gm1ufVnjAaVwrEn8qLCl+BZN3UQWnwYMC0QYmpepjShOL85WEjw==@linaro.org X-Google-Smtp-Source: AGHT+IF0XcxJrPyIaT/+6RwZceYgFBad2k0oKAmeBbn7vVUh7fAohfzBh7gT3wWEAVMIpyFtwBAQ X-Received: by 2002:a05:6e02:1c0c:b0:3a3:4175:79d2 with SMTP id e9e14a558f8ab-3a375b99bdfmr156807805ab.14.1728411335332; Tue, 08 Oct 2024 11:15:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1728411335; cv=none; d=google.com; s=arc-20240605; b=e+3Ch4AkNnDxB52yoplEgXac4d5x2llFCpAEsLjzu9m5zoOngUtnoQROZquwOb9JAy SLcns1zKEQbmrkI1qqycsGsVWcQtkSVK8HdS5vuwgFCHm0mt+yBBUz1GdcVs1EADHQsR +Kyyq9uvLyXy5EmfvdKn4w0/u2Aj1kJ9knxoy1QkR2GmPhQ7P2ifJMxT0aa20JNh4C9N iJLw6yAkM5DryYnbKAgW7HMfQjKeKhC3QCGRaTYcL0FNtnTchZH7vGb57LtT+8gYRx6B C1zbZlGnanGmLM6pPoMBmoPe9C3HU2gU4pPAwP3W5rDYR85g4Xz5klfjOG3UcSp3s/Xu suww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=mWe2tYxzp25MSw/bHU2KgQ9oEskDTn/nteTCDrS/cL0=; fh=EURqIhM9Cs9+QDCQ9Vm6IsJQ8gNya1VBDuunKFxPiA8=; b=DHKyJVpRN8xJYBM6XpTtV3B0TsfHar6sU4SkD5lmxjTw/OKLE7RNh2SXasGAjQEEOv gVPrivx4cfBo8ox5sDL9FpEMqyxJ0wVBZBipYjvoAqC/Lm2JdVsE3C1Tpn4AHIcbK0M7 zNiXH+i7deEsTTqchkQ8D1I4+nIu0h0tc+7h8BgGH0tUE5ynnrLLPrpRurrhAcIDoHXb 86O5++Put8sbiXsMWdHruWeMXBdN+tNCe5xhyvOZN6e57acBuyV/Z+9JEiHe9RsRxMUa UE2WTohIt0H+aQwsiklqc0J49woe/spmQ2Vwhc+RsWD3f+aOP+CFxZSoJgfuEd2i6v+5 +ocA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id 8926c6da1cb9f-4db9ee7f460si293190173.166.2024.10.08.11.15.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 11:15:35 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2E74E88EFE; Tue, 8 Oct 2024 20:15:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id BE4D488EE2; Tue, 8 Oct 2024 20:15:03 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.2 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id 87D4088EE3 for ; Tue, 8 Oct 2024 20:15:00 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sughosh.ganu@linaro.org Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9344ADA7; Tue, 8 Oct 2024 11:15:29 -0700 (PDT) Received: from a079122.blr.arm.com (a079122.arm.com [10.162.17.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2A1BB3F64C; Tue, 8 Oct 2024 11:14:56 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Heinrich Schuchardt , Simon Glass , Tom Rini , Bin Meng , Caleb Connolly , Jonas Karlman , Sughosh Ganu Subject: [PATCH v2 04/14] lib: Kconfig: add a config symbol for getting lmb memory map updates Date: Tue, 8 Oct 2024 23:44:25 +0530 Message-Id: <20241008181435.1753814-5-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241008181435.1753814-1-sughosh.ganu@linaro.org> References: <20241008181435.1753814-1-sughosh.ganu@linaro.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.8 at phobos.denx.de X-Virus-Status: Clean Add a Kconfig symbol to enable getting updates on any memory map changes that might be done by the LMB module. This notification mechanism can then be used to have a synchronous view of allocated and free memory. Signed-off-by: Sughosh Ganu --- Changes since V1: * Add a config for SPL stage lib/Kconfig | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/lib/Kconfig b/lib/Kconfig index 1dd4f271595..61452f7ac94 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -75,6 +75,23 @@ config LIB_UUID bool select SHA1 +config MEM_MAP_UPDATE_NOTIFY + bool "Get notified of any changes to the LMB memory map" + default y if EFI_LOADER + help + Enable this option to get notification on any changes to the + memory that is allocated or freed by the LMB module. This will + allow different modules that allocate memory or maintain a memory + map to have a synchronous view of available and allocated memory. + +config SPL_MEM_MAP_UPDATE_NOTIFY + bool "Get notified of any changes to the LMB memory map in SPL" + help + Enable this option to get notification on any changes to the + memory that is allocated or freed by the LMB module. This will + allow different modules that allocate memory or maintain a memory + map to have a synchronous view of available and allocated memory. + config RANDOM_UUID bool "GPT Random UUID generation" select LIB_UUID