1. Mar 15, 2022
    • Will Deacon's avatar
      Merge branch 'for-next/perf' into for-next/core · b5ef94fb
      Will Deacon authored
      * for-next/perf: (25 commits)
        perf/marvell: Fix !CONFIG_OF build for CN10K DDR PMU driver
        drivers/perf: Add Apple icestorm/firestorm CPU PMU driver
        drivers/perf: arm_pmu: Handle 47 bit counters
        arm64: perf: Consistently make all event numbers as 16-bits
        arm64: perf: Expose some Armv9 common events under sysfs
        perf/marvell: cn10k DDR perf event core ownership
        perf/marvell: cn10k DDR perfmon event overflow handling
        perf/marvell: CN10k DDR performance monitor support
        dt-bindings: perf: marvell: cn10k ddr performance monitor
        perf/arm-cmn: Update watchpoint format
        perf/arm-cmn: Hide XP PUB events for CMN-600
        perf: replace bitmap_weight with bitmap_empty where appropriate
        perf: Replace acpi_bus_get_device()
        perf/marvell_cn10k: Fix unused variable warning when W=1 and CONFIG_OF=n
        perf/arm-cmn: Make arm_cmn_debugfs static
        perf: MARVELL_CN10K_TAD_PMU should depend on ARCH_THUNDER
        perf/arm-ccn: Use platform_get_irq() to get the interrupt
        irqchip/apple-aic: Move PMU-specific registers to their own include file
        arm64: dts: apple: Add t8303 PMU nodes
        arm64: dts: apple: Add t8103 PMU interrupt affinities
        ...
      b5ef94fb
    • Will Deacon's avatar
      Merge branch 'for-next/pauth' into for-next/core · 292ca2d8
      Will Deacon authored
      * for-next/pauth:
        arm64: Add support of PAuth QARMA3 architected algorithm
        arm64: cpufeature: Mark existing PAuth architected algorithm as QARMA5
        arm64: cpufeature: Account min_field_value when cheking secondaries for PAuth
      292ca2d8
    • Will Deacon's avatar
      Merge branch 'for-next/mte' into for-next/core · bf587af2
      Will Deacon authored
      * for-next/mte:
        docs: sysfs-devices-system-cpu: document "asymm" value for mte_tcf_preferred
        arm64/mte: Remove asymmetric mode from the prctl() interface
        kasan: fix a missing header include of static_keys.h
        arm64/mte: Add userspace interface for enabling asymmetric mode
        arm64/mte: Add hwcap for asymmetric mode
        arm64/mte: Add a little bit of documentation for mte_update_sctlr_user()
        arm64/mte: Document ABI for asymmetric mode
        arm64: mte: avoid clearing PSTATE.TCO on entry unless necessary
        kasan: split kasan_*enabled() functions into a separate header
      bf587af2
    • Will Deacon's avatar
      Merge branch 'for-next/mm' into for-next/core · 20fd2ed1
      Will Deacon authored
      * for-next/mm:
        Documentation: vmcoreinfo: Fix htmldocs warning
        arm64/mm: Drop use_1G_block()
        arm64: avoid flushing icache multiple times on contiguous HugeTLB
        arm64: crash_core: Export MODULES, VMALLOC, and VMEMMAP ranges
        arm64/hugetlb: Define __hugetlb_valid_size()
        arm64/mm: avoid fixmap race condition when create pud mapping
        arm64/mm: Consolidate TCR_EL1 fields
      20fd2ed1
    • Will Deacon's avatar
      Merge branch 'for-next/misc' into for-next/core · b3ea0eaf
      Will Deacon authored
      * for-next/misc:
        arm64: mm: Drop 'const' from conditional arm64_dma_phys_limit definition
        arm64: clean up tools Makefile
        arm64: drop unused includes of <linux/personality.h>
        arm64: Do not defer reserve_crashkernel() for platforms with no DMA memory zones
        arm64: prevent instrumentation of bp hardening callbacks
        arm64: cpufeature: Remove cpu_has_fwb() check
        arm64: atomics: remove redundant static branch
        arm64: entry: Save some nops when CONFIG_ARM64_PSEUDO_NMI is not set
      b3ea0eaf
    • Will Deacon's avatar
      Merge branch 'for-next/linkage' into for-next/core · 563c4635
      Will Deacon authored
      * for-next/linkage:
        arm64: module: remove (NOLOAD) from linker script
        linkage: remove SYM_FUNC_{START,END}_ALIAS()
        x86: clean up symbol aliasing
        arm64: clean up symbol aliasing
        linkage: add SYM_FUNC_ALIAS{,_LOCAL,_WEAK}()
      563c4635
    • Will Deacon's avatar
      Merge branch 'for-next/kselftest' into for-next/core · 839d0758
      Will Deacon authored
      * for-next/kselftest:
        kselftest/arm64: Log the PIDs of the parent and child in sve-ptrace
        kselftest/arm64: signal: Allow tests to be incompatible with features
        kselftest/arm64: mte: user_mem: test a wider range of values
        kselftest/arm64: mte: user_mem: add more test types
        kselftest/arm64: mte: user_mem: add test type enum
        kselftest/arm64: mte: user_mem: check different offsets and sizes
        kselftest/arm64: mte: user_mem: rework error handling
        kselftest/arm64: mte: user_mem: introduce tag_offset and tag_len
        kselftest/arm64: Remove local definitions of MTE prctls
        kselftest/arm64: Remove local ARRAY_SIZE() definitions
      839d0758
    • Will Deacon's avatar
      Merge branch 'for-next/insn' into for-next/core · b7323ae6
      Will Deacon authored
      * for-next/insn:
        arm64: insn: add encoders for atomic operations
        arm64: move AARCH64_BREAK_FAULT into insn-def.h
        arm64: insn: Generate 64 bit mask immediates correctly
      b7323ae6
    • Will Deacon's avatar
      Merge branch 'for-next/errata' into for-next/core · cd92fdfc
      Will Deacon authored
      * for-next/errata:
        arm64: Add cavium_erratum_23154_cpus missing sentinel
        irqchip/gic-v3: Workaround Marvell erratum 38545 when reading IAR
      cd92fdfc
    • Will Deacon's avatar
      Merge branch 'for-next/docs' into for-next/core · b523d6b8
      Will Deacon authored
      * for-next/docs:
        arm64/mte: Clarify mode reported by PR_GET_TAGGED_ADDR_CTRL
        arm64: booting.rst: Clarify on requiring non-secure EL2
      b523d6b8
    • Will Deacon's avatar
      Merge branch 'for-next/coredump' into for-next/core · 0d3d0315
      Will Deacon authored
      * for-next/coredump:
        arm64: Change elfcore for_each_mte_vma() to use VMA iterator
        arm64: mte: Document the core dump file format
        arm64: mte: Dump the MTE tags in the core file
        arm64: mte: Define the number of bytes for storing the tags in a page
        elf: Introduce the ARM MTE ELF segment type
        elfcore: Replace CONFIG_{IA64, UML} checks with a new option
      0d3d0315
  2. Mar 10, 2022
  3. Mar 09, 2022
  4. Mar 08, 2022
  5. Feb 25, 2022
    • Mark Brown's avatar
      arm64/mte: Add userspace interface for enabling asymmetric mode · 766121ba
      Mark Brown authored
      
      
      The architecture provides an asymmetric mode for MTE where tag mismatches
      are checked asynchronously for stores but synchronously for loads. Allow
      userspace processes to select this and make it available as a default mode
      via the existing per-CPU sysfs interface.
      
      Since there PR_MTE_TCF_ values are a bitmask (allowing the kernel to choose
      between the multiple modes) and there are no free bits adjacent to the
      existing PR_MTE_TCF_ bits the set of bits used to specify the mode becomes
      disjoint. Programs using the new interface should be aware of this and
      programs that do not use it will not see any change in behaviour.
      
      When userspace requests two possible modes but the system default for the
      CPU is the third mode (eg, default is synchronous but userspace requests
      either asynchronous or asymmetric) the preference order is:
      
         ASYMM > ASYNC > SYNC
      
      This situation is not currently possible since there are only two modes and
      it is mandatory to have a system default so there could be no ambiguity and
      there is no ABI change. The chosen order is basically arbitrary as we do not
      have a clear metric for what is better here.
      
      If userspace requests specifically asymmetric mode via the prctl() and the
      system does not support it then we will return an error, this mirrors
      how we handle the case where userspace enables MTE on a system that does
      not support MTE at all and the behaviour that will be seen if running on
      an older kernel that does not support userspace use of asymmetric mode.
      
      Attempts to set asymmetric mode as the default mode will result in an error
      if the system does not support it.
      
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      Reviewed-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      Reviewed-by: default avatarVincenzo Frascino <Vincenzo.Frascino@arm.com>
      Tested-by: default avatarBranislav Rankov <branislav.rankov@arm.com>
      Link: https://lore.kernel.org/r/20220216173224.2342152-5-broonie@kernel.org
      
      
      Signed-off-by: default avatarWill Deacon <will@kernel.org>
      766121ba