From: anshuman.khandual@arm.com (Anshuman Khandual)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 4/5] arm64/numa: Report correct memblock range for the dummy node
Date: Sat, 22 Sep 2018 21:09:55 +0530 [thread overview]
Message-ID: <1537630796-14756-5-git-send-email-anshuman.khandual@arm.com> (raw)
In-Reply-To: <1537630796-14756-1-git-send-email-anshuman.khandual@arm.com>
The dummy node ID is marked into all memory ranges on the system. So the
dummy node really extends the entire memblock.memory. Hence report correct
extent information for the dummy node using memblock range helper functions
instead of the range [0LLU, PFN_PHYS(max_pfn) - 1)].
Fixes: 1a2db30034 ("arm64, numa: Add NUMA support for arm64 platforms")
Acked-by: Punit Agrawal <punit.agrawal@arm.com>
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
---
arch/arm64/mm/numa.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/mm/numa.c b/arch/arm64/mm/numa.c
index 146c04c..54529b4 100644
--- a/arch/arm64/mm/numa.c
+++ b/arch/arm64/mm/numa.c
@@ -432,7 +432,7 @@ static int __init dummy_numa_init(void)
if (numa_off)
pr_info("NUMA disabled\n"); /* Forced off on command line. */
pr_info("Faking a node at [mem %#018Lx-%#018Lx]\n",
- 0LLU, PFN_PHYS(max_pfn) - 1);
+ memblock_start_of_DRAM(), memblock_end_of_DRAM() - 1);
for_each_memblock(memory, mblk) {
ret = numa_add_memblk(0, mblk->base, mblk->base + mblk->size);
--
2.7.4
next prev parent reply other threads:[~2018-09-22 15:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-22 15:39 [PATCH 0/5] ARM64 MM Random Cleanups Anshuman Khandual
2018-09-22 15:39 ` [PATCH 1/5] arm64/mm: Use ESR_ELx_FSC macro while decoding fault exception Anshuman Khandual
2018-09-22 15:39 ` [PATCH 2/5] arm64/mm: Reorganize arguments for is_el1_permission_fault() Anshuman Khandual
2018-09-22 15:39 ` [PATCH 3/5] arm64/mm: Define esr_to_debug_fault_info() Anshuman Khandual
2018-09-22 15:39 ` Anshuman Khandual [this message]
2018-09-22 15:39 ` [PATCH 5/5] arm64/numa: Unify common error path in numa_init() Anshuman Khandual
2018-10-01 12:54 ` [PATCH 0/5] ARM64 MM Random Cleanups Catalin Marinas
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=1537630796-14756-5-git-send-email-anshuman.khandual@arm.com \
--to=anshuman.khandual@arm.com \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).