Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3537927pxb; Mon, 1 Mar 2021 12:41:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJw1X6gPDtP6delDZ8Li3cozIcIUFELF95An0can64XhVaZq1Cy2Km8VxVtrO2zNSG0hdhVs X-Received: by 2002:aa7:de8a:: with SMTP id j10mr18525693edv.84.1614631276680; Mon, 01 Mar 2021 12:41:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614631276; cv=none; d=google.com; s=arc-20160816; b=kPzhRjMq5VO727ivLRncHOJIlViLewSGsgCQbSRbkFZZJ4rLfv2UKKFtyB50SsdBAe peouyeF0jjYBDOSQOYP5wLngPVKkGg2bnc/nl+57T86jop9j6tFc1zAOoMrwrcKN4fQq 0Z8wWcVD+AGHxlAhB9eGiivLRl8DfM/ZKq3LcKSR5cSiroja9dNJmAd++SbJ3EWSomjw drnrg0eKsiLSzFYALyb9ZB6aom4GfbHoA+Kt8FHUlWUFErrG55x/lzZoQtb7P0m74BOb EmBAL1j6mCbFbZ1obo5BMfbX53TvYpmOkzdZbZqCdlY2a2W4C3Mt5K87YAzU4n3fGYN5 bY7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=mlXMyINf/jR21mvJ3peLzXObYaHmgnbrsIwHG3x2+PU=; b=PoE50zER25lHRSrTR6sHnMrWhmKlY4IJXRiCG1Fvp9k6X8ECgREjupsgMbmIKrurXk 68eoCZihFGzhn3Ke2mJjKkZB1cDFpTn/o6BH/5HLZnFIOe2De/CRs786FUNfVYh+qoLn 0WucTP2N8AgZIQ80gKHT3731QLrwjOGgoTH8yx8i1UPSgCG9YqVAoRRPNNc0sQ+ROZG5 Ru18YkoaacwxqAud6Gbv9Bd5wV/DjomO3henExHB9VyOLgmwuGpGWz3wWMHB/NVDcRfs XCng1ImSTuqIk4EWeh/r6i6hEAxMVkGJpRIpPfBXwoqeVuD21hSUpbzcBLjBwgw1yD/f DBkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=La11i8yD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e2si11775487ejh.579.2021.03.01.12.40.53; Mon, 01 Mar 2021 12:41:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=La11i8yD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243539AbhCAUgj (ORCPT + 99 others); Mon, 1 Mar 2021 15:36:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:35192 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237393AbhCARIP (ORCPT ); Mon, 1 Mar 2021 12:08:15 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 62E4364F83; Mon, 1 Mar 2021 16:40:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614616855; bh=8wgMwc7LmJgtQd6NOmoMNzGIONIVgak4qsRa5KBJ08U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=La11i8yDHyKg/sJOqg0kK9q6S+i8dYLJrHQtBrkoyBrASE5IvsLlscJyz5irVhrxj KumUth/zlJwzEpLx4sDvMU4QlDgv0nmtToe+Bp0Nh9AVFyuhbqMdJDB2X4rmZSqj72 rFQDPW6JYdd8EnTjkeV1tiRemINAV3456sV4PcbA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Rob Herring , Frank Rowand , devicetree@vger.kernel.org, KarimAllah Ahmed , Quentin Perret , Rob Herring , Sasha Levin Subject: [PATCH 4.19 118/247] fdt: Properly handle "no-map" field in the memory region Date: Mon, 1 Mar 2021 17:12:18 +0100 Message-Id: <20210301161037.451876670@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161031.684018251@linuxfoundation.org> References: <20210301161031.684018251@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: KarimAllah Ahmed [ Upstream commit 86588296acbfb1591e92ba60221e95677ecadb43 ] Mark the memory region with NOMAP flag instead of completely removing it from the memory blocks. That makes the FDT handling consistent with the EFI memory map handling. Cc: Rob Herring Cc: Frank Rowand Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: KarimAllah Ahmed Signed-off-by: Quentin Perret Link: https://lore.kernel.org/r/20210115114544.1830068-2-qperret@google.com Signed-off-by: Rob Herring Signed-off-by: Sasha Levin --- drivers/of/fdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index 800ad252cf9c6..aa15e5d183c18 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c @@ -1173,7 +1173,7 @@ int __init __weak early_init_dt_reserve_memory_arch(phys_addr_t base, phys_addr_t size, bool nomap) { if (nomap) - return memblock_remove(base, size); + return memblock_mark_nomap(base, size); return memblock_reserve(base, size); } -- 2.27.0