From patchwork Tue Oct 8 18:14:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 833587 Delivered-To: patch@linaro.org Received: by 2002:adf:a1d9:0:b0:367:895a:4699 with SMTP id v25csp435390wrv; Tue, 8 Oct 2024 11:15:13 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUjtM6LkReB0/fd+VkvcCPLtTMcW/U+7By6CPKdetcYT3uLUemjka47jhNmGjFGbT91IeOO8w==@linaro.org X-Google-Smtp-Source: AGHT+IEJFtzr6PJb6FpKW2GJCpodQK7xNuC8Je4aMU8EHTnFGZJRpJluTh/M0rIztNd7+U2BBWBh X-Received: by 2002:a05:6e02:2412:b0:3a3:63c3:352e with SMTP id e9e14a558f8ab-3a375bb2c44mr165972515ab.19.1728411312939; Tue, 08 Oct 2024 11:15:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1728411312; cv=none; d=google.com; s=arc-20240605; b=VKCFGLSoICG2zI/rwFu19Qi89xFhKxbgvGIRY72F2CgrpXQbSKs0inoy9JIavEZHn5 bhe2ohyO6KB6+AzRtT7kFVJs6tLYUa8olqRE5OeHswxelZibHW1aszLwBoozdFTHKU7P Oa3801GSlVEF/odDLhW1VJ4q+cxCPDHX7YgYPOdDbo7/gAt8PtbjUrpUHJJfsmvmeM4I vmazJZniSJgKbUi0xixCttMvlkcVHxOaDhVdB3fzYwNEW8rZDG4tiF+dl4yK4//hrDc0 uL3op6hd1LPBjSMz76ha17oVApvYAuWwzBnHh1wQOFMF+BpTNqbGDQRuxlFmh2/Qksy/ AayA== 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=5lJffGgmYLVHdY29EoBEJrIUgk713/6nMn+bFGXWnaI=; fh=EURqIhM9Cs9+QDCQ9Vm6IsJQ8gNya1VBDuunKFxPiA8=; b=WDFe62FVbtLhJdHdxah93ZrM1hJNa5pBQucu5lgSmh/hclYILQDMFWKUTEuHkNH/0w wZLvAQWeL4/s74neY6jHbWNHUDfOD08jnpKdFRJGKYQxl0w1y1YQ25NyHD1R/iN8hTRG wwhxyE49OV5hAypufT9dwoSxpvhNBV17/muRIZIirhIeYlWlPjvynUtWvj9kMBrrA8kh +son3KLLd+VllZYlfX3VUTECsRnRJFbsfGiIoLB8giyIYRX6wvCxBK1IoGLuVMJOJY4i 2grltvaklunA74kyA2vnMeWOJH6SpTIsk+0dv8OtcIWcrtFZnkaics3jhjHlf5DjJmcV +c4Q==; 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 e9e14a558f8ab-3a37a86619csi42302145ab.94.2024.10.08.11.15.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 11:15:12 -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 F089588ED1; Tue, 8 Oct 2024 20:14:56 +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 ABA4988EE3; Tue, 8 Oct 2024 20:14:55 +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 B6D5E88ED1 for ; Tue, 8 Oct 2024 20:14:53 +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 C0D94DA7; Tue, 8 Oct 2024 11:15:22 -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 57EF03F64C; Tue, 8 Oct 2024 11:14:50 -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 02/14] lmb: add a flag to allow suppressing memory map change notification Date: Tue, 8 Oct 2024 23:44:23 +0530 Message-Id: <20241008181435.1753814-3-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 flag LMB_NONOTIFY that can be passed to the LMB API's for reserving memory. This will then result in no notification being sent from the LMB module for the changes to the LMB's memory map. Signed-off-by: Sughosh Ganu --- Changes since V1: None include/lmb.h | 1 + lib/lmb.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/lmb.h b/include/lmb.h index 0e8426f4379..a76262d520d 100644 --- a/include/lmb.h +++ b/include/lmb.h @@ -23,6 +23,7 @@ enum lmb_flags { LMB_NONE = 0, LMB_NOMAP = BIT(1), LMB_NOOVERWRITE = BIT(2), + LMB_NONOTIFY = BIT(3), }; /** diff --git a/lib/lmb.c b/lib/lmb.c index 0763f6174c1..a4886db4c45 100644 --- a/lib/lmb.c +++ b/lib/lmb.c @@ -30,7 +30,7 @@ static struct lmb lmb; static void lmb_print_region_flags(enum lmb_flags flags) { u64 bitpos; - const char *flag_str[] = { "none", "no-map", "no-overwrite" }; + const char *flag_str[] = { "none", "no-map", "no-overwrite", "no-notify" }; do { bitpos = flags ? fls(flags) - 1 : 0;