1. 12 Feb, 2021 5 commits
    • Will Deacon's avatar
      Merge branch 'for-next/faultaround' into for-next/core · 6b76c3ae
      Will Deacon authored
      Initialise prefaulted PTEs as 'old' for arm64 when hardware access-flag
      updates are supported, which drastically improves vmscan performance.
      
      * for-next/faultaround:
        mm: filemap: Fix microblaze build failure with 'mmu_defconfig'
        mm/nommu: Fix return type of filemap_map_pages()
        mm: Mark anonymous struct field of 'struct vm_fault' as 'const'
        mm: Use static initialisers for immutable fields of 'struct vm_fault'
        mm: Avoid modifying vmf.address in __collapse_huge_page_swapin()
        mm: Pass 'address' to map to do_set_pte() and drop FAULT_FLAG_PREFAULT
        mm: Move immutable fields of 'struct vm_fault' into anonymous struct
        arm64: mm: Implement arch_wants_old_prefaulted_pte()
        mm: Allow architectures to request 'old' entries when prefaulting
        mm: Cleanup faultaround and finish_fault() codepaths
      6b76c3ae
    • Will Deacon's avatar
      Merge branch 'for-next/errata' into for-next/core · 90eb8c9d
      Will Deacon authored
      Rework of the workaround for Cortex-A76 erratum 1463225 to fit in better
      with the ongoing exception entry cleanups and changes to the detection
      code for Cortex-A55 erratum 1024718 since it applies to all revisions of
      the silicon.
      
      * for-next/errata:
        arm64: entry: consolidate Cortex-A76 erratum 1463225 workaround
        arm64: Extend workaround for erratum 1024718 to all versions of Cortex-A55
      90eb8c9d
    • Will Deacon's avatar
      Merge branch 'for-next/crypto' into for-next/core · f96a816f
      Will Deacon authored
      Introduce a new macro to allow yielding the vector unit if preemption
      is required. The initial users of this are being merged via the crypto
      tree for 5.12.
      
      * for-next/crypto:
        arm64: assembler: add cond_yield macro
      f96a816f
    • Will Deacon's avatar
      Merge branch 'for-next/cpufeature' into for-next/core · 88ddf0df
      Will Deacon authored
      Support for overriding CPU ID register fields on the command-line, which
      allows us to disable certain features which the kernel would otherwise
      use unconditionally when detected.
      
      * for-next/cpufeature: (22 commits)
        arm64: cpufeatures: Allow disabling of Pointer Auth from the command-line
        arm64: Defer enabling pointer authentication on boot core
        arm64: cpufeatures: Allow disabling of BTI from the command-line
        arm64: Move "nokaslr" over to the early cpufeature infrastructure
        KVM: arm64: Document HVC_VHE_RESTART stub hypercall
        arm64: Make kvm-arm.mode={nvhe, protected} an alias of id_aa64mmfr1.vh=0
        arm64: Add an aliasing facility for the idreg override
        arm64: Honor VHE being disabled from the command-line
        arm64: Allow ID_AA64MMFR1_EL1.VH to be overridden from the command line
        arm64: cpufeature: Add an early command-line cpufeature override facility
        arm64: Extract early FDT mapping from kaslr_early_init()
        arm64: cpufeature: Use IDreg override in __read_sysreg_by_encoding()
        arm64: cpufeature: Add global feature override facility
        arm64: Move SCTLR_EL1 initialisation to EL-agnostic code
        arm64: Simplify init_el2_state to be non-VHE only
        arm64: Move VHE-specific SPE setup to mutate_to_vhe()
        arm64: Drop early setting of MDSCR_EL2.TPMS
        arm64: Initialise as nVHE before switching to VHE
        arm64: Provide an 'upgrade to VHE' stub hypercall
        arm64: Turn the MMU-on sequence into a macro
        ...
      88ddf0df
    • Will Deacon's avatar
      Merge branch 'for-next/cosmetic' into for-next/core · bab8443b
      Will Deacon authored
      Cosmetic changes to tidy up stale comments and fix inconsistent
      whitespace. No functional changes here!
      
      * for-next/cosmetic:
        mm/arm64: Correct obsolete comment in do_page_fault()
        arm64: improve whitespace
      bab8443b
  2. 10 Feb, 2021 1 commit
  3. 09 Feb, 2021 18 commits
  4. 08 Feb, 2021 6 commits
  5. 05 Feb, 2021 1 commit
  6. 04 Feb, 2021 1 commit
  7. 03 Feb, 2021 1 commit
  8. 28 Jan, 2021 1 commit
  9. 21 Jan, 2021 5 commits
  10. 20 Jan, 2021 1 commit
    • Will Deacon's avatar
      arm64: mm: Implement arch_wants_old_prefaulted_pte() · 0388f9c7
      Will Deacon authored
      On CPUs with hardware AF/DBM, initialising prefaulted PTEs as 'old'
      improves vmscan behaviour and does not appear to introduce any overhead
      elsewhere.
      
      Implement arch_wants_old_prefaulted_pte() to return 'true' if we detect
      hardware access flag support at runtime. This can be extended in future
      based on MIDR matching if necessary.
      
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Signed-off-by: default avatarWill Deacon <will@kernel.org>
      0388f9c7