Merge tag 'nios2-v5.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/lftan...
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 10 Mar 2019 17:13:37 +0000 (10:13 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 10 Mar 2019 17:13:37 +0000 (10:13 -0700)
Pull nios2 updates from Ley Foon Tan:
 "Most of updates are MMU related"

* tag 'nios2-v5.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/lftan/nios2:
  nios2: Fix update_mmu_cache preload the TLB with the new PTE
  nios2: update_mmu_cache preload the TLB with the new PTE
  nios2: User address TLB flush break after finding the matching entry
  nios2: flush_tlb_all use TLBMISC way auto-increment feature
  nios2: improve readability of tlb functions
  nios2: flush_tlb_mm flush only the pid
  nios2: flush_tlb_pid can just restore TLBMISC once
  nios2: TLBMISC writes do not require PID bits to be set
  nios2: Use an invalid TLB entry address helper function
  nios2: pte_clear does not need to flush TLB
  nios2: flush_tlb_page use PID based flush
  nios2: update_mmu_cache clear the old entry from the TLB
  nios2: remove redundant 'default n' from Kconfig-s
  nios2: ksyms: Add missing symbol exports

1  2 
arch/nios2/Kconfig
arch/nios2/mm/fault.c

diff --combined arch/nios2/Kconfig
index c3e913ef4f0c4cfc1b88bbe616373c96f8bbaccb,c382103bc39df5bba60221b2cafbf724f16d7061..4ef15a61b7bc33ee199a84fb6c8ef36be2a9deac
@@@ -1,7 -1,6 +1,7 @@@
  # SPDX-License-Identifier: GPL-2.0
  config NIOS2
        def_bool y
 +      select ARCH_32BIT_OFF_T
        select ARCH_HAS_SYNC_DMA_FOR_CPU
        select ARCH_HAS_SYNC_DMA_FOR_DEVICE
        select ARCH_NO_SWAP
@@@ -123,7 -122,6 +123,6 @@@ config NIOS2_CMDLINE_IGNORE_DT
  
  config NIOS2_PASS_CMDLINE
        bool "Passed kernel command line from u-boot"
-       default n
        help
          Use bootargs env variable from u-boot for kernel command line.
          will override "Default kernel command string".
diff --combined arch/nios2/mm/fault.c
index eb65f17c158dd3c67f0181c88886b7730bd906f8,cf76fa3f457bd2385cc9d0a6f6baffd73a388d5c..6a2e716b959f7e9e8e962e5c901e0770bca22485
@@@ -24,6 -24,7 +24,6 @@@
  #include <linux/mm.h>
  #include <linux/extable.h>
  #include <linux/uaccess.h>
 -#include <linux/ptrace.h>
  
  #include <asm/mmu_context.h>
  #include <asm/traps.h>
@@@ -270,7 -271,7 +270,7 @@@ vmalloc_fault
                if (!pte_present(*pte_k))
                        goto no_context;
  
-               flush_tlb_one(address);
+               flush_tlb_kernel_page(address);
                return;
        }
  }