From: Calvin Zhang <calvinzhang.cool@gmail.com>
To: Rob Herring <robh+dt@kernel.org>, Frank Rowand <frowand.list@gmail.com>
Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
Calvin Zhang <calvinzhang.cool@gmail.com>
Subject: [PATCH] of: unmap memory regions in /memreserve node
Date: Wed, 24 Nov 2021 21:33:47 +0800 [thread overview]
Message-ID: <20211124133347.3861391-1-calvinzhang.cool@gmail.com> (raw)
Reserved memory regions in /memreserve node aren't and shouldn't
be referenced elsewhere. So mark them no-map to skip direct mapping
for them.
Signed-off-by: Calvin Zhang <calvinzhang.cool@gmail.com>
---
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 bdca35284ceb..9e88cc8445f6 100644
--- a/drivers/of/fdt.c
+++ b/drivers/of/fdt.c
@@ -638,7 +638,7 @@ void __init early_init_fdt_scan_reserved_mem(void)
fdt_get_mem_rsv(initial_boot_params, n, &base, &size);
if (!size)
break;
- early_init_dt_reserve_memory_arch(base, size, false);
+ early_init_dt_reserve_memory_arch(base, size, true);
}
fdt_scan_reserved_mem();
--
2.30.2
next reply other threads:[~2021-11-24 14:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-24 13:33 Calvin Zhang [this message]
2021-11-30 22:43 ` Rob Herring
2021-12-02 9:25 ` Mark Rutland
2021-12-03 1:11 ` Michael Ellerman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211124133347.3861391-1-calvinzhang.cool@gmail.com \
--to=calvinzhang.cool@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=frowand.list@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®