From patchwork Thu Jul 4 07:35:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 809942 Delivered-To: patch@linaro.org Received: by 2002:adf:a199:0:b0:367:895a:4699 with SMTP id u25csp1043736wru; Thu, 4 Jul 2024 00:42:41 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXCcp8JgqzGI2y7G3J7WsGoWzF2xl5+q1jh6nY/DpeKt/OQXG22ihdbrS4M6b4PMaI90SWcJ0GcM+YLjetz3CbI X-Google-Smtp-Source: AGHT+IGDQfO0mN6civVqDOu0xJzwe9JjL6oxWqw5R8gUGbyE3XgE5+XLzJ/IcL8OHmWuy/wlklUv X-Received: by 2002:a05:6402:2803:b0:58c:ea9e:2194 with SMTP id 4fb4d7f45d1cf-58e5c7301cdmr687597a12.32.1720078961562; Thu, 04 Jul 2024 00:42:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720078961; cv=none; d=google.com; s=arc-20160816; b=wVI+z3HghZjQXqtadc8jq6693OXsUIlQZdunASACEIba3tvDF8PmCZUpkpcrb98Rrd 8AY8J62KHied182gork6w1ZMr0rZ2INQcodAwVhmQT2xE+1ZurcyIvOxDiRHq9FZiLuj B/xexNk1dA5p0LGVb1hteU0gWlhNLswWmXv8LEtg9Ofrv31PX9nI/VROzksbcnBAHNQs JW5Hh+URQYcWaRzzeygmuqgjmffGFfQ4rNUrksmsixMKkuZmJdMSCctmUWfsoY1lYrAi 6D/s1DWnzaolnlSJ0ywyTdtroLf/fkZUhjcMmV0oBXKlemkeX83vKgo2N/wsb5jAHmsX sysA== 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=Sb6Oq+5z2CGapbXqFvGElsmklNqdvuDYUrh/rIXVATA=; fh=ez1zzjhC0XWyqTp7tWutqrA/nFdALDnQKrnQnXYhk5Q=; b=UDQw3XKvdfx9Bf3eQJ34gHSPSS1iuW1jH1hhMa2Bs9witVl3qJm/TYUmVPTi4c3yoO I4gn94CvpvDkV2kvKGLZvwCruF3KcUlhjn3ZXG/7rtbwN95SCQYmj/NbstVkOOXMeJZ5 DllZb998VPG9wZve8JuPcN2+fTWESRohCdkMluk+SPZ0smf6v2Ox1iGoOpjkQHevRh24 pw9hMC6CKo0neoUblp5el/+ooHQMwkGeWa/sXjX3fVZIGDm78kWLhaDGVmmT+FYZh73P VYxyeMfJxmAhJb65qYZtqp6Ul8nFazye6T1IgAAz74i0Js0s/nki1CWN33NNVtBa00wh yVPg==; 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-58b1cdf5a4fsi2874900a12.342.2024.07.04.00.42.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 00:42:41 -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 E1B5988960; Thu, 4 Jul 2024 09:38:15 +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 50895888C2; Thu, 4 Jul 2024 09:38:15 +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 64CAC88970 for ; Thu, 4 Jul 2024 09:38:13 +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 E6A5ADA7; Thu, 4 Jul 2024 00:38:37 -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 AE0BE3F762; Thu, 4 Jul 2024 00:38:09 -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 35/48] lmb: add a flag to allow suppressing memory map change notification Date: Thu, 4 Jul 2024 13:05:31 +0530 Message-Id: <20240704073544.670249-36-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 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: New patch include/lmb.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/lmb.h b/include/lmb.h index afab04426d..dbf3e9e30f 100644 --- a/include/lmb.h +++ b/include/lmb.h @@ -24,6 +24,7 @@ enum lmb_flags { LMB_NONE = BIT(0), LMB_NOMAP = BIT(1), LMB_NOOVERWRITE = BIT(2), + LMB_NONOTIFY = BIT(3), }; /**