From patchwork Thu Sep 5 08:27:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 825615 Delivered-To: patch@linaro.org Received: by 2002:adf:a345:0:b0:367:895a:4699 with SMTP id d5csp186597wrb; Thu, 5 Sep 2024 01:28:57 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXw5iljcsnrQQiuCVrLA30c+zSp3s80gaEsaZ8qI8RRl1qIgfF5+i68Ux4Rkt5B0usBlL3q1Q==@linaro.org X-Google-Smtp-Source: AGHT+IHv+qU/3NLKiqnErEB/yL3uK43HgBledZGRqGVciamyFtf5iip/WvyfQyp64vA3Ju8VzoNr X-Received: by 2002:a05:6402:540f:b0:5c2:7741:7d82 with SMTP id 4fb4d7f45d1cf-5c3c1f8a2c0mr6174322a12.11.1725524936730; Thu, 05 Sep 2024 01:28:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725524936; cv=none; d=google.com; s=arc-20240605; b=O+/7uFPYAra/3ef1pqG+M8MEbhJFYS9MECDVM3hq5A4p8UUnjUkOHSsctl3KxhDUaG W1YsR7AoO7+SeHb/VHZ3tN2m/SWLYHxHTmePjG/GCInlbGQIMZFbKuqVQX+OLgVInFdZ ZjMNW740hnSDDUlc3PGWTSUB6FFdmyKRcYp/kcenseutJtDtcfBQq0oE30EMUDk0Ijcf 3X4zgFU4GwiPnpGi4A/ishd3CPydKNFc2XmxXKj8Fl3h5w2gMGLjG/WdxezQJ7HrtxRc BT/WxU6wd5/hBcKV+yB7NyEWNNRLesFO2YmIcjAKNWPuqKbDaXX2JlmONfev/yEu+z6C VTNg== 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=YcOWo64A5Gy6DVo+7oiuW5wC7Xcfa5GGuBLUDPWkLBQ=; fh=xhhG27Jur2HVmyj6xWbgrQg2vRawqr6LmtjP4yz05ls=; b=Sd+GFL9GzD5RkE09aUmfPKl9cxlrdpASvGc/mQC7mEDCxEUdxoBrWZlLgtKBNaAlE/ IsAKWurw2lc9+6WijHvi2pPwCgJ1VxLQwqnXKKNwJdpfpoZ2cnuggA66eQee2ZiYceVk MK0X4ss1ujl8NGL4qyL1DHdO8FVg0VLbCOdEi14bkTwW4BC3cI1GvC0YBjTdQHsbndZF fiJajiq3HEuNcl0eQ/IgTyma3zzP7TGhB6PdMKGpREKYmYgcY+i8ElC8fe+lwWWH4BFO 0r0uOFjkUJhzhNZUmPaNBgP6GgeMMCYYsBqKbZL9em2qZ6R44uCEgUFOtiygHaj+Qamu zTgA==; 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 4fb4d7f45d1cf-5c3cc69a762si1148708a12.218.2024.09.05.01.28.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2024 01:28:56 -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 3644388CAC; Thu, 5 Sep 2024 10:28:43 +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 622BC88CA3; Thu, 5 Sep 2024 10:28:42 +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 6C90688BFF for ; Thu, 5 Sep 2024 10:28:40 +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 7193FFEC; Thu, 5 Sep 2024 01:29:06 -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 7F3743F66E; Thu, 5 Sep 2024 01:28:37 -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 02/16] lmb: add a flag to allow suppressing memory map change notification Date: Thu, 5 Sep 2024 13:57:57 +0530 Message-Id: <20240905082811.1585467-3-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 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 --- 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 45a06c3b99..ffba7e2889 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 da6a1595cc..419b31a651 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;