LKML Archive on
help / color / mirror / Atom feed
From: Greentime Hu <>
Subject: [PATCH 1/3] nds32: Fix the virtual address may map too much range by tlbop issue.
Date: Mon, 30 Apr 2018 15:20:39 +0800	[thread overview]
Message-ID: <> (raw)

We use tlbop to map virtual address in the first beginning, however it
may map too much if DRAM size is not that big. We have to invalidate the
mapping when the page table is created.

Signed-off-by: Greentime Hu <>
 arch/nds32/kernel/setup.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/nds32/kernel/setup.c b/arch/nds32/kernel/setup.c
index ba910e9e4ecb..2f5b2ccebe47 100644
--- a/arch/nds32/kernel/setup.c
+++ b/arch/nds32/kernel/setup.c
@@ -293,6 +293,9 @@ void __init setup_arch(char **cmdline_p)
 	/* paging_init() sets up the MMU and marks all pages as reserved */
+	/* invalidate all TLB entries because the new mapping is created */
+	__nds32__tlbop_flua();
 	/* use generic way to parse */

             reply	other threads:[~2018-04-30  7:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-30  7:20 Greentime Hu [this message]
2018-04-30  7:20 ` [PATCH 2/3] nds32: To refine readability of INT_MASK_INITAIAL_VAL Greentime Hu
2018-04-30  7:20 ` [PATCH 3/3] nds32: To fix a cache inconsistency issue by setting correct cacheability of NTC Greentime Hu

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \
    --subject='Re: [PATCH 1/3] nds32: Fix the virtual address may map too much range by tlbop issue.' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).