From patchwork Thu Jul 4 07:35:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 809945 Delivered-To: patch@linaro.org Received: by 2002:adf:a199:0:b0:367:895a:4699 with SMTP id u25csp1043868wru; Thu, 4 Jul 2024 00:43:15 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXYY7xGMZUFKspYCPdBlpXhIajZ+MlJAdhZGZz/wJbQdeg0Egqi51dDbl19IFRxkrnoGw27yptfmUEpbuvVT/E6 X-Google-Smtp-Source: AGHT+IFIQdcarWOqcqNkoAN4N1tK9No9aTriaeU/tLZaxiLuF+lEctK8c8vvDlKfAsXVaxiaBggi X-Received: by 2002:a17:906:bc8d:b0:a6e:57ff:7700 with SMTP id a640c23a62f3a-a77ba48e5d5mr53182966b.42.1720078993797; Thu, 04 Jul 2024 00:43:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720078993; cv=none; d=google.com; s=arc-20160816; b=aDRLybR2ahZ7w1PqWXnA6NhUO6dJeO9O2PA8KHi+rQC0ndD8ePT3Z9qApgjSLChXHR /DaugWglcA36WvmK/MHIGTIri2OEvd38vC8rR4kPDrfNOrgrBGVGezPWyNTnPAlaL9aF nlwpfk1eNqP5MIOv20hQyvnrRpb60VN7pvC4dj2gY/6X3m9/iPKX/+s6XFYmw7GG7qfl /hVPw7U/L8V+8eky645iBjVRfQkp5ipWkJ/vk1egMKRU0XEq2D2H8cBvPGMSI8gdXkAw c3s/igRKWNQIwqxHwCmqco3w2p9EIcnMIyCc7UT7tVai8j5jpdad1vD4CFLxPr6SlrfC Y9eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=hJWrKQ2xs77FhQ8Fz5H7tDrLs6xXldbpHjuvRUISh1A=; fh=ez1zzjhC0XWyqTp7tWutqrA/nFdALDnQKrnQnXYhk5Q=; b=Ar+xfKnV5JZwYOwPt5bbD7lZ0e8AYYesBW5WZQi1j9FrN5EzOJqkFueTKSz0//ml+h eGwMYHyH2N0Mds2QDAZrSPaTpi8/n/UKH7vEeinoeHPQNFKqR3F3/sf4QZ08JQVW3/Vo XDQ/RSaE/UhkDJm5htlB411HHgj7XVWVTsSsgoqTwCWSrfeehvDdLity8p8AaWIkrfrr jcp2eAsIGHxeYLyTALsBfoGbp/ylylRWfB83BSZMFKGAn/8HQXKPkG4q07L/WRDDvBub LcLXNibbPyFhkcg+pZ9qbxb5nVF94CBgvspM7IXjks7aSKjdZyj1qnJhqdL0P6fpSwUR zE4A==; 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 a640c23a62f3a-a77affec0bcsi79263766b.270.2024.07.04.00.43.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 00:43:13 -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 14871888C2; Thu, 4 Jul 2024 09:38:28 +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 998D3888C2; Thu, 4 Jul 2024 09:38:26 +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_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 A515E8897B for ; Thu, 4 Jul 2024 09:38:24 +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 320FADA7; Thu, 4 Jul 2024 00:38:49 -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 EBABD3F762; Thu, 4 Jul 2024 00:38:20 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Tom Rini , Ilias Apalodimas , Heinrich Schuchardt , Simon Glass , Marek Vasut , Mark Kettenis , Fabio Estevam , Michal Simek , Sughosh Ganu Subject: [RFC PATCH v2 38/48] lib: Kconfig: add a config symbol for getting lmb memory map updates Date: Thu, 4 Jul 2024 13:05:34 +0530 Message-Id: <20240704073544.670249-39-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240704073544.670249-1-sughosh.ganu@linaro.org> References: <20240704073544.670249-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: * Change the description to highlight only LMB notifications. * Add a separate line for dependencies. lib/Kconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/Kconfig b/lib/Kconfig index 7eea517b3b..b422183a0f 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -74,6 +74,16 @@ 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 EVENT && LMB && EFI_LOADER + 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