Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp387437lqp; Wed, 22 May 2024 07:32:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXjEvnjgifV0S0XYC6D3Z0pSq2K+kfAnXUsnMw6RdsIUqElaGlDthwUvSEBjeeraBAoRDcE0Gz1EqrOMTf7/ZfR7K6CbEa8sZFhPXQDqg== X-Google-Smtp-Source: AGHT+IGDqCiIhrJgu+XHa4GAodsZZ7wkDibqBM+FSFDB8AB/fX3sL9ZEMuTqkI2AWmqs+Cx5VVWH X-Received: by 2002:a05:6a00:998:b0:6f3:ef3d:60f3 with SMTP id d2e1a72fcca58-6f6d61ad980mr2261728b3a.29.1716388346137; Wed, 22 May 2024 07:32:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716388346; cv=pass; d=google.com; s=arc-20160816; b=A6TvQWq2egwI0z49iv3W5Ts8Ex7TKFF3XQwNGnZizUvZWny/IAzoGQRwH1a6SxHQvG 8wH6M1BQYrgKbzCpfTgEh+q+zIVAvJ62Z/ZgBUeU0yDPokktzrWtrYvVNCu7PuuXnjvJ Qvchtl4/MO4EYA5R70UflP9N9RGI/+YCbArGgmbBBVx/G7ubm/nXCSDiwYchWv/iRI+a cC1PVPLhKAfg9iN+BIAfeag+XgeqiZrPPImRsNJcrUPv60j4w3J5BPOZJbIIHc889vnS lJ7eifXEt91JE2V350Ua++lTVauo6KIIStNumjv2E7f36hakm9arqWmMbZ654CwT8+fN IQbg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4nMIaO6l8Ez/ZkJ4XFdhqQZXvfKgQdJzTq9ztBOcp8U=; fh=egPhe+sk684S1iWIECt6mYJXuRN7ROvasY6pld61nsc=; b=jBDNYITNiHuJBtFq7CHrIRSBE25ndOvDkrm7Sg1QI8bAVspHouUqqIQryV4D9xcTn8 NrHbffwz1pS+ppT7hVfrVdDcaqnaLOyAgmz+ru9HY7l1WqOjjJZESu2E/MUpAp0iNofi eC7IhqQ4QLKtB/eHtESfNDlsue8RtjfS3F1hu7fvOdypVJB8PSKTRDte9oat/kJx4TmG 8x29nXO1gCZoRcitqZMY8rdvv8Lt89V0dDmomVWxtF2SZuyjfu1k32wh+oRbJsSCmge4 bIUpo6QTX0B9+UH6jNRhb7CodJtRmtm1cmZSuAcnQI19DJOsAxGDWohD8G03cAA6N+Bl 5F8w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="J9pkbY/o"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-186367-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186367-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2aef0d9si26704745b3a.193.2024.05.22.07.32.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 07:32:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186367-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="J9pkbY/o"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-186367-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186367-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B016B284776 for ; Wed, 22 May 2024 14:31:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2B70417BD3; Wed, 22 May 2024 14:31:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="J9pkbY/o" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4A3AF8F6D; Wed, 22 May 2024 14:31:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716388292; cv=none; b=mvbBumpfLbGi5tKSkTHVEkVE+ygpvWbqEZ8ZJh+n3XSQ0vPRJ1m5ZkT4pCGU8dZopHC5SVljDf7VhFZHkxx+x9jp8qIqlfFEYPLChhLpqxJ7N0uXG0wB3w/dNjPuGTUMw5kdtfANK2SKCb7znLtPKcvWmgAEBrc4Lg1EK+bnbVU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716388292; c=relaxed/simple; bh=caxlHLkLA7Kyl2xhI0wkWw8AtvfOM+yyH8wCjBO9scI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=C37/EIN0ROr4gD3SqHp3WwD6dk8RNkssNk0b7lyZIJPl9po+xHNrf23SDUXx1i22jeGVmZcVDuEoolB5KYC/7fOxs49HQPeyZFWLkP2HF7+aA5JO/tQmuTB+E+SsJI8DYP+DiIfLCG8sEu8k95GCnOo3mnouOPS6AL29dTOsKPc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=J9pkbY/o; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88564C2BBFC; Wed, 22 May 2024 14:31:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716388290; bh=caxlHLkLA7Kyl2xhI0wkWw8AtvfOM+yyH8wCjBO9scI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=J9pkbY/oQCevl7mOH3JJXSgFZZOrwY2EaiGTjT8Qvv42x3YKAakriYSPEhSm7/KqX 05892MJl4SjdKnQ5Z8EygCt+PzSVMSLX1ThcbkbQy2Thj0ibC6PxwSuS4xeDSYHrYQ 2d1HSVKTf4d5DvLDe0hqNcp9+dCb4GCcYr92NOht2cTMFClds7a2SfDhgwPdB9EE7G Mw49zWiygkpLHxgM2eEXsf797PqZb10QM3kAaW6l7R0S7mBde/SbVRXaBh7V6PKhH5 YPSxlvClXZXKD1wcVZue7IpXSclgliHTDcvRlCrR7vDdXSUYLZ/zK7+P/djy4uGwAd 8gNRRpFg7CiMQ== Date: Wed, 22 May 2024 09:31:29 -0500 From: Rob Herring To: skseofh@gmail.com Cc: lkp@intel.com, daero_le.lee@samsung.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, rppt@kernel.org, saravanak@google.com Subject: Re: [PATCH v2] of: of_reserved_mem: clean-up reserved memory with no-map Message-ID: <20240522143129.GA3244910-robh@kernel.org> References: <202405011208.qsZQwChO-lkp@intel.com> <20240501132359.488616-1-skseofh@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240501132359.488616-1-skseofh@gmail.com> On Wed, May 01, 2024 at 10:23:59PM +0900, skseofh@gmail.com wrote: > From: Daero Lee > > In early_init_dt_reserve_memory we only add memory w/o no-map flag to > memblock.reserved. But we need to add memory w/ no-map flag to > memblock.reserved, because NOMAP and memblock.reserved are semantically > different. > > Signed-off-by: Daero Lee > --- > drivers/of/of_reserved_mem.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/drivers/of/of_reserved_mem.c b/drivers/of/of_reserved_mem.c > index 8236ecae2953..d00a17a9cebc 100644 > --- a/drivers/of/of_reserved_mem.c > +++ b/drivers/of/of_reserved_mem.c > @@ -81,6 +81,7 @@ static void __init fdt_reserved_mem_save_node(unsigned long node, const char *un > static int __init early_init_dt_reserve_memory(phys_addr_t base, > phys_addr_t size, bool nomap) > { > + int err = 0; > if (nomap) { > /* > * If the memory is already reserved (by another region), we > @@ -91,7 +92,10 @@ static int __init early_init_dt_reserve_memory(phys_addr_t base, > memblock_is_region_reserved(base, size)) > return -EBUSY; > > - return memblock_mark_nomap(base, size); > + > + err = memblock_mark_nomap(base, size); The last time this was touched, it was to make the handling aligned with EFI memory map handling. Is that still going to be the case with this change? Or does EFI memory map handling have the same issue? > + if (err) > + return err; > } > return memblock_reserve(base, size); > } > -- > 2.25.1 >