From patchwork Thu Sep 5 08:28:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 825618 Delivered-To: patch@linaro.org Received: by 2002:adf:a345:0:b0:367:895a:4699 with SMTP id d5csp186760wrb; Thu, 5 Sep 2024 01:29:28 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUr/vahCvq332UPyrzuvmYbp5iDtjGGehAmp9kznT2baKo3a+9UfI0WxUkUdexHhFwXIWRojA==@linaro.org X-Google-Smtp-Source: AGHT+IEA8kwIV+VQZNx5S872iY8UtF8lq3j3L/vdQUxKkEOhy2eNJli9a7P0aj6LbCzuESpOrz7Z X-Received: by 2002:a05:6512:3ca3:b0:533:97b:e26e with SMTP id 2adb3069b0e04-53546a5de53mr13414963e87.0.1725524967927; Thu, 05 Sep 2024 01:29:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725524967; cv=none; d=google.com; s=arc-20240605; b=fY7ryYReUhnfCkbrj8bk9ulF55Y538r5SIP1TwN9kRMDcTyHCgb5y7CYhsDtLSJQXy NleYKODHJ7z0Ncv4cCBmQsyPn9afDG3hBJlMYlmoyWtlWtO05ercMjOSex5y4V+LsHyc CirlwdFQsxn5qnPFgyTKxkUxVNJPrYeVumjEhYrcy+vB7wG8FD5PRP0EvrPiT2UVaPbo z+p5KZU2ud1Z7fCTeg0st0h1RHVG8avRxPScihHqe5hKMQ7hbYTJLjggUhmFOJD1mK6c KrVHVV1rg2iKJxOfNA4FrikgnhU4heJvf+yll1qBYRmtp4OL1k+HkTHhuMX22lpWeaXQ F7LQ== 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=dj+brSJ4Xt/kx/a1xMwCkmQHgRCKQP6rA+9LVjI9odo=; fh=xhhG27Jur2HVmyj6xWbgrQg2vRawqr6LmtjP4yz05ls=; b=Lmjavp+v5c9zI0wTNxcTOl4kXzhO6E4qFl+8Sa0NVAF6MWOzm312gp/9MAg1efsDBq FUvsiseDXiwCJBcZIib7sw8iaXwEE8gYmb8FHAWbPU/M720MBX6aoEQX1wp7AsFiVGAT Mey//QrWTOsZNpQMpiDfKEKJATuovAQF9l4oIdZrK0XQyms3bEbOtFq1o+9RGNTxYjGe fdY0GYu6xMvhGYo6hBmg6saYmiar4dw0PEgqWP8Lit/2WeZlrREvE43dOou+y3Gwwa8q z5QW5O2x3atNcElnkEg9Sy86fD6lnhunp5A7nZlllSWtLwQWqs67CsL8JTnFhJnsYxAd nvcg==; 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 a640c23a62f3a-a8a6237945bsi115656466b.472.2024.09.05.01.29.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2024 01:29: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 7859788CC5; Thu, 5 Sep 2024 10:28:52 +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 2317888C94; Thu, 5 Sep 2024 10:28:51 +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_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED, SPF_HELO_NONE,SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE 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 2CB6888C51 for ; Thu, 5 Sep 2024 10:28:49 +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 396BF1063; Thu, 5 Sep 2024 01:29:15 -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 46B1C3F66E; Thu, 5 Sep 2024 01:28:46 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Heinrich Schuchardt , Simon Glass , Tom Rini , Bin Meng , Sughosh Ganu Subject: [PATCH 05/16] lib: Kconfig: add a config symbol for getting lmb memory map updates Date: Thu, 5 Sep 2024 13:58:00 +0530 Message-Id: <20240905082811.1585467-6-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240905082811.1585467-1-sughosh.ganu@linaro.org> References: <20240905082811.1585467-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 --- lib/Kconfig | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/Kconfig b/lib/Kconfig index 5f282ecb54..2e73cda580 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -74,6 +74,17 @@ config HAVE_PRIVATE_LIBGCC config LIB_UUID bool +config MEM_MAP_UPDATE_NOTIFY + bool "Get notified of any changes to the LMB memory map" + depends on LMB && EFI_LOADER + select EVENT + default y + 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