From patchwork Sun Oct 13 10:55:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 835070 Delivered-To: patch@linaro.org Received: by 2002:adf:b352:0:b0:37d:45d0:187 with SMTP id k18csp1536626wrd; Sun, 13 Oct 2024 03:56:27 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX2ZIP+RvfhgkXoBByI3Q+uLKnI4VFe2kMygEmOXkT40NWbvaEhQzNvdGrl9fEWdRgR9IKzBQ==@linaro.org X-Google-Smtp-Source: AGHT+IFzgzd6gy7Ow7iLh/6QoIlSnbCJnvi/lKBaGFEz3eWmrU7xv91RBRD4gsl1oE9FbnA+1msO X-Received: by 2002:a05:6602:48d:b0:82c:e4e1:2e99 with SMTP id ca18e2360f4ac-83794969502mr942276539f.11.1728816987195; Sun, 13 Oct 2024 03:56:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1728816987; cv=none; d=google.com; s=arc-20240605; b=LH6k8qbF+Ye8hgrIULq/Q5WcJG/xbd3GSKf9/ktSbrG4ALybZjP/pZjrUoeKIsvaY5 ag9Scd41dbnfA9QotwL6qlMCsFip0Wlywf1nUuWKuNrbpTh3mpZIt6ZhVgrX9eLWx0QV DyCxkmZqp5rg+3JoyFHIpYjexbGoBdRr5xCQLtUuo7P0AZDv9nwhMNYRM8Wc4wmmbyR2 ZQMtLfFS+tbBMJY+EUJ0Je7SqvHfXIp9fIdiFcP0o32zvGZk2FdKhktGseq716v9VK6V D0BV5Vcs4CYix7EdLtLBbRJU+Knmd3ajB8E2xHMEa9xK27Gmhmv5kdiVzr3g++tarZ9F zfnA== 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=gtwFGHa0zMihlk4x/vl2WYGuIrLEOt0hCrdJcrNYESc=; fh=DqKFq13hCy9hcb48ZltPVvgEKSF1g1c/m42wn0WwlIc=; b=Mc63DPULTOGsIIKKBFfEUKsAz0BXm23m8gnvRfW1nNWU3vw0IVlkFVROuZ9rtc4zKp 3ziv4uqwLCVZJ4RnGP+iuV34olztfRKjFL55vMqaTwjSpdQGVjW7DABMoXPMouNw90dL aY/FO5oo7adlf5db+WuPYPNVx3L8CECpf66NMQDg0vQvu0QSAGS9PIA/ZL8nVWjF0gaL rua8FB1r21OiQ1H2lp0kPxS8NzM7xKxZpJ9vdpi07hZfZoL4hWrS0Io6nJBJden6bOPI KnE6T+HoFIUa09p9MbO/UQsWP25/K2eu/dzy424tOppEjw/9UXN8ZVC8dFTKQPSZlfSw yeSQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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. [85.214.62.61]) by mx.google.com with ESMTPS id 8926c6da1cb9f-4dbc70bef1csi1300509173.1.2024.10.13.03.56.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Oct 2024 03:56:27 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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 C443888EDA; Sun, 13 Oct 2024 12:55:57 +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 7CE2688E12; Sun, 13 Oct 2024 12:55:56 +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_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_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 7967688EF9 for ; Sun, 13 Oct 2024 12:55:54 +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 849FD1063; Sun, 13 Oct 2024 03:56:23 -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 5D8593F71E; Sun, 13 Oct 2024 03:55:51 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Heinrich Schuchardt , Simon Glass , Tom Rini , Caleb Connolly , Jonas Karlman , Sughosh Ganu Subject: [PATCH v3 04/15] lib: Kconfig: add a config symbol for getting lmb memory map updates Date: Sun, 13 Oct 2024 16:25:11 +0530 Message-Id: <20241013105522.391414-5-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241013105522.391414-1-sughosh.ganu@linaro.org> References: <20241013105522.391414-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 V2: None lib/Kconfig | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/lib/Kconfig b/lib/Kconfig index 1dd4f27159..61452f7ac9 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