From patchwork Fri Jun 7 18:52:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 802322 Delivered-To: patch@linaro.org Received: by 2002:adf:f147:0:b0:35b:5a80:51b4 with SMTP id y7csp949105wro; Fri, 7 Jun 2024 11:55:33 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVLif83v62QxXqc4TFMP3X0uZDxnjKvYvN7W/7+rbxZInDUhrSmMIbLTJ61mOGlCcvwEPeJvYxAt7H/FV0wBCSZ X-Google-Smtp-Source: AGHT+IF9rwqW0o2pxEk68j/WHtl9z9GlWxqyoPhG0S7E0sf93ZT/p34uznnrQpVLeZvTj7rAYGRS X-Received: by 2002:a17:906:180f:b0:a68:ad1d:b833 with SMTP id a640c23a62f3a-a6cd5dc4906mr209403766b.18.1717786532789; Fri, 07 Jun 2024 11:55:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1717786532; cv=none; d=google.com; s=arc-20160816; b=kPDJhIycHS9k8R4sScoQlosQCYgsNVlFGQ3+aNoE0SQ40CIIXokz198JpPQgu44wAR rfNoS4DkxqRVToq6NIsEY+6CzZF2z6T+VICluSoeW8qslmrfok1ojLT07W59Fsqf2K7w +FsRjABvU+3WH2CcUAnqrWj0Sd9VAkTUvQvblQL3/FhQ0ezomv592SxNTDzI6dT26Nu+ K5PC/+vKo0RLTLAn6dGdAgyeEf5t44YFlXv2mURtvyvaqnYyFlcbXLe/zXDwf8tPUnUI 7S+SXCUSOT0B7U0nh46nKalYuhUHjnBM0vpMfAccZeTj79Msmpo6MEg21W363Cu8LXwS W7Uw== 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=gdWab9vrpzKkRmaXDHaafZAaKmFFQ2X5XX5lApbd9xo=; fh=xLSOOz5Q0Mrmzd+lwBRTYS7D/8TpUWM8TEHgIjpMzow=; b=hB6WS//yM3t1g11yfuRYfY/0u7kLEK9ayll9XJZhUehPWC4P82C32HeOZO4BY8whtf Z3iVYj6doiSQ2y24CJZDufLAWrHq18SemX/RsbwXHT+90hShT+LQOYozBs2rD/pPnpQa IMGMEd16JkMZGnGQnR5tXYyBSYwWPogNOiR7hxhBEIqc/MjFZ1ptN523vgJY01WK+WNq kyYOHy8ZX3ynroQEysvFheXiSbGwWfiU6n8w8yo6MK3Wv2DkFU4hJmrT8L7Mcm+pj9rt F3eDUCOzo71X8Kg+xqnjMgiodELBBfSm3Tx67S/a2j7ZsK60ObABqNplknDkny3Asx65 coag==; 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-a6c8070851dsi212317966b.551.2024.06.07.11.55.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 11:55:32 -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 08319884D0; Fri, 7 Jun 2024 20:54:12 +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 C44BE88473; Fri, 7 Jun 2024 20:54:10 +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,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 B2A46884AA for ; Fri, 7 Jun 2024 20:54:08 +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 964D01480; Fri, 7 Jun 2024 11:54:32 -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 77E4D3F792; Fri, 7 Jun 2024 11:54:05 -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 , Sughosh Ganu Subject: [RFC PATCH 11/31] lib: Kconfig: add a config symbol for getting memory map updates Date: Sat, 8 Jun 2024 00:22:20 +0530 Message-Id: <20240607185240.1892031-12-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240607185240.1892031-1-sughosh.ganu@linaro.org> References: <20240607185240.1892031-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 some other 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 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/Kconfig b/lib/Kconfig index 189e6eb31a..9ea02ae006 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -74,6 +74,15 @@ config HAVE_PRIVATE_LIBGCC config LIB_UUID bool +config MEM_MAP_UPDATE_NOTIFY + bool "Get notified of any changes to the memory map" + default y if EVENT && LMB && EFI_LOADER + help + Enable this option to get notification on any changes to the + memory that is allocated or freed. This will allow different + modules that allocate memory to have a synchronous view of available + and allocated memory. + config RANDOM_UUID bool "GPT Random UUID generation" select LIB_UUID