From patchwork Sun Oct 13 10:55:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 835068 Delivered-To: patch@linaro.org Received: by 2002:adf:b352:0:b0:37d:45d0:187 with SMTP id k18csp1536564wrd; Sun, 13 Oct 2024 03:56:08 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUYrsdypcQqsHG4Y6lZ0WKHGtKxVzDvCVfdLn/57lIXuJ98Y8VixnXRzlvO76vrK/yXVUOqkA==@linaro.org X-Google-Smtp-Source: AGHT+IFnkVGcBxjtsV42Y2RlIv9i88speZek8EhwA4cSFdOlnl24tAk/tz2UDSb659u01q9r3iJM X-Received: by 2002:a05:6602:1541:b0:834:f2d5:c758 with SMTP id ca18e2360f4ac-83a64d854c3mr361980639f.13.1728816967784; Sun, 13 Oct 2024 03:56:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1728816967; cv=none; d=google.com; s=arc-20240605; b=ibDlpgXEjBO5ZRWw9jr5DOXP7cU2i7Ep+RS1JkS4epnU9PWrtAZXQsKN0wtiWa50w1 GWiPXw2oO8f0V1g6mzZLgqk8lDeaW7ZXlbr7DtS+M15vaUucLlD4ntLqzv/M5NoSzCKe 83aoNAifZFlvsXZVIazbMlkwf4II0mdKei9IMi3xftCJ2UiSv+KTGBRmhwsotzu5IlVw 8VSomAxu8YOSfAYBWtizUbkAbcEtRMtSaRFyAriDCLnxmNJ7SRy79Q0ahmHdTH5GR+Og BVFi5TkhLqUM8+DJhZy+btrDlCCE2F9ICJv3HfrPxHCcwEXD7ou8KRkuxUPoQd9Qv9Eg 0Xeg== 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=g+hH+4Vj2Ce7a2KzoQ79z1gGvNEheErbil/aM7hguMU=; fh=DqKFq13hCy9hcb48ZltPVvgEKSF1g1c/m42wn0WwlIc=; b=feus4K/OxqssdDDnmNg40QLzxrPx49bVl9lSg7qZdqNIHOAU28ySVesBrsBjxD+r9K iqGWk+4lH7bB6GzL9hnbar2noZPoi+4aLzIDALFZyiqOqYrqQelLM2uXlM+iOb/I7Ss/ ORcGq0X3nryUzQYm6BM/EVx24s0p2ouEY05Mh1sCw1nZdhuQlceYaVvKsVFJeb2LJUXE ZYyioMQdebXiagOP6br4LbpXabo/s8gVb/n4nLksEhTvNH5iXvdkaWgMhPh/QXUFE1uU WeZIFQz7Bueco2m/dW/97F/wW8S3Df9yfBC8607q02myMUREqEgzLvOn06zflaiIrYCC Ouew==; 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 ca18e2360f4ac-8354ba662c3si329623939f.115.2024.10.13.03.56.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Oct 2024 03:56:07 -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 0065388ED5; Sun, 13 Oct 2024 12:55:52 +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 3A4C288E6F; Sun, 13 Oct 2024 12:55:50 +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_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 46D0E88C7C for ; Sun, 13 Oct 2024 12:55:48 +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 57D771007; Sun, 13 Oct 2024 03:56:17 -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 3002D3F71E; Sun, 13 Oct 2024 03:55:44 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Heinrich Schuchardt , Simon Glass , Tom Rini , Caleb Connolly , Jonas Karlman , Sughosh Ganu Subject: [PATCH v3 02/15] lmb: add a flag to allow suppressing memory map change notification Date: Sun, 13 Oct 2024 16:25:09 +0530 Message-Id: <20241013105522.391414-3-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241013105522.391414-1-sughosh.ganu@linaro.org> References: <20241013105522.391414-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 V2: 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 0e8426f437..a76262d520 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 a38537af9c..e1e616679f 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;