Skip to content

Commit 103916f

Browse files
committed
Merge tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
Pull arm64 updates from Will Deacon: "The most interesting parts are probably the mm changes from Ryan which optimise the creation of the linear mapping at boot and (separately) implement write-protect support for userfaultfd. Outside of our usual directories, the Kbuild-related changes under scripts/ have been acked by Masahiro whilst the drivers/acpi/ parts have been acked by Rafael and the addition of cpumask_any_and_but() has been acked by Yury. ACPI: - Support for the Firmware ACPI Control Structure (FACS) signature feature which is used to reboot out of hibernation on some systems Kbuild: - Support for building Flat Image Tree (FIT) images, where the kernel Image is compressed alongside a set of devicetree blobs Memory management: - Optimisation of our early page-table manipulation for creation of the linear mapping - Support for userfaultfd write protection, which brings along some nice cleanups to our handling of invalid but present ptes - Extend our use of range TLBI invalidation at EL1 Perf and PMUs: - Ensure that the 'pmu->parent' pointer is correctly initialised by PMU drivers - Avoid allocating 'cpumask_t' types on the stack in some PMU drivers - Fix parsing of the CPU PMU "version" field in assembly code, as it doesn't follow the usual architectural rules - Add best-effort unwinding support for USER_STACKTRACE - Minor driver fixes and cleanups Selftests: - Minor cleanups to the arm64 selftests (missing NULL check, unused variable) Miscellaneous: - Add a command-line alias for disabling 32-bit application support - Add part number for Neoverse-V2 CPUs - Minor fixes and cleanups" * tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux: (64 commits) arm64/mm: Fix pud_user_accessible_page() for PGTABLE_LEVELS <= 2 arm64/mm: Add uffd write-protect support arm64/mm: Move PTE_PRESENT_INVALID to overlay PTE_NG arm64/mm: Remove PTE_PROT_NONE bit arm64/mm: generalize PMD_PRESENT_INVALID for all levels arm64: simplify arch_static_branch/_jump function arm64: Add USER_STACKTRACE support arm64: Add the arm64.no32bit_el0 command line option drivers/perf: hisi: hns3: Actually use devm_add_action_or_reset() drivers/perf: hisi: hns3: Fix out-of-bound access when valid event group drivers/perf: hisi_pcie: Fix out-of-bound access when valid event group kselftest: arm64: Add a null pointer check arm64: defer clearing DAIF.D arm64: assembler: update stale comment for disable_step_tsk arm64/sysreg: Update PIE permission encodings kselftest/arm64: Remove unused parameters in abi test perf/arm-spe: Assign parents for event_source device perf/arm-smmuv3: Assign parents for event_source device perf/arm-dsu: Assign parents for event_source device perf/arm-dmc620: Assign parents for event_source device ...
2 parents 1338acf + 54e1a2a commit 103916f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+859
-376
lines changed

Documentation/admin-guide/kernel-parameters.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,9 @@
431431
arcrimi= [HW,NET] ARCnet - "RIM I" (entirely mem-mapped) cards
432432
Format: <io>,<irq>,<nodeID>
433433

434+
arm64.no32bit_el0 [ARM64] Unconditionally disable the execution of
435+
32 bit applications.
436+
434437
arm64.nobti [ARM64] Unconditionally disable Branch Target
435438
Identification support
436439

Documentation/admin-guide/perf/hisi-pmu.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ interrupt, and the PMU driver shall register perf PMU drivers like L3C,
2020
HHA and DDRC etc. The available events and configuration options shall
2121
be described in the sysfs, see:
2222

23-
/sys/devices/hisi_sccl{X}_<l3c{Y}/hha{Y}/ddrc{Y}>/, or
2423
/sys/bus/event_source/devices/hisi_sccl{X}_<l3c{Y}/hha{Y}/ddrc{Y}>.
2524
The "perf list" command shall list the available events from sysfs.
2625

Documentation/admin-guide/perf/hns3-pmu.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ HNS3 PMU driver
1616

1717
The HNS3 PMU driver registers a perf PMU with the name of its sicl id.::
1818

19-
/sys/devices/hns3_pmu_sicl_<sicl_id>
19+
/sys/bus/event_source/devices/hns3_pmu_sicl_<sicl_id>
2020

2121
PMU driver provides description of available events, filter modes, format,
2222
identifier and cpumask in sysfs.
@@ -40,9 +40,9 @@ device.
4040

4141
Example usage of checking event code and subevent code::
4242

43-
$# cat /sys/devices/hns3_pmu_sicl_0/events/dly_tx_normal_to_mac_time
43+
$# cat /sys/bus/event_source/devices/hns3_pmu_sicl_0/events/dly_tx_normal_to_mac_time
4444
config=0x00204
45-
$# cat /sys/devices/hns3_pmu_sicl_0/events/dly_tx_normal_to_mac_packet_num
45+
$# cat /sys/bus/event_source/devices/hns3_pmu_sicl_0/events/dly_tx_normal_to_mac_packet_num
4646
config=0x10204
4747

4848
Each performance statistic has a pair of events to get two values to
@@ -60,7 +60,7 @@ computation to calculate real performance data is:::
6060

6161
Example usage of checking supported filter mode::
6262

63-
$# cat /sys/devices/hns3_pmu_sicl_0/filtermode/bw_ssu_rpu_byte_num
63+
$# cat /sys/bus/event_source/devices/hns3_pmu_sicl_0/filtermode/bw_ssu_rpu_byte_num
6464
filter mode supported: global/port/port-tc/func/func-queue/
6565

6666
Example usage of perf::

Documentation/admin-guide/perf/qcom_l2_pmu.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ There is one logical L2 PMU exposed, which aggregates the results from
1010
the physical PMUs.
1111

1212
The driver provides a description of its available events and configuration
13-
options in sysfs, see /sys/devices/l2cache_0.
13+
options in sysfs, see /sys/bus/event_source/devices/l2cache_0.
1414

1515
The "format" directory describes the format of the events.
1616

Documentation/admin-guide/perf/qcom_l3_pmu.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ PMU with device name l3cache_<socket>_<instance>. User space is responsible
99
for aggregating across slices.
1010

1111
The driver provides a description of its available events and configuration
12-
options in sysfs, see /sys/devices/l3cache*. Given that these are uncore PMUs
12+
options in sysfs, see /sys/bus/event_source/devices/l3cache*. Given that these are uncore PMUs
1313
the driver also exposes a "cpumask" sysfs attribute which contains a mask
1414
consisting of one CPU per socket which will be used to handle all the PMU
1515
events on that socket.

Documentation/admin-guide/perf/thunderx2-pmu.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The thunderx2_pmu driver registers per-socket perf PMUs for the DMC and
2222
L3C devices. Each PMU can be used to count up to 4 (DMC/L3C) or up to 8
2323
(CCPI2) events simultaneously. The PMUs provide a description of their
2424
available events and configuration options under sysfs, see
25-
/sys/devices/uncore_<l3c_S/dmc_S/ccpi2_S/>; S is the socket id.
25+
/sys/bus/event_source/devices/uncore_<l3c_S/dmc_S/ccpi2_S/>; S is the socket id.
2626

2727
The driver does not support sampling, therefore "perf record" will not
2828
work. Per-task perf sessions are also not supported.

Documentation/admin-guide/perf/xgene-pmu.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ PMU (perf) driver
1313

1414
The xgene-pmu driver registers several perf PMU drivers. Each of the perf
1515
driver provides description of its available events and configuration options
16-
in sysfs, see /sys/devices/<l3cX/iobX/mcbX/mcX>/.
16+
in sysfs, see /sys/bus/event_source/devices/<l3cX/iobX/mcbX/mcX>/.
1717

1818
The "format" directory describes format of the config (event ID),
1919
config1 (agent ID) fields of the perf_event_attr structure. The "events"

Documentation/process/changes.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ Sphinx\ [#f1]_ 2.4.4 sphinx-build --version
6262
cpio any cpio --version
6363
GNU tar 1.28 tar --version
6464
gtags (optional) 6.6.5 gtags --version
65+
mkimage (optional) 2017.01 mkimage --version
6566
====================== =============== ========================================
6667

6768
.. [#f1] Sphinx is needed only to build the Kernel documentation
@@ -189,6 +190,14 @@ The kernel build requires GNU GLOBAL version 6.6.5 or later to generate
189190
tag files through ``make gtags``. This is due to its use of the gtags
190191
``-C (--directory)`` flag.
191192

193+
mkimage
194+
-------
195+
196+
This tool is used when building a Flat Image Tree (FIT), commonly used on ARM
197+
platforms. The tool is available via the ``u-boot-tools`` package or can be
198+
built from the U-Boot source code. See the instructions at
199+
https://docs.u-boot.org/en/latest/build/tools.html#building-tools-for-linux
200+
192201
System utilities
193202
****************
194203

MAINTAINERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3073,6 +3073,13 @@ F: drivers/mmc/host/sdhci-of-arasan.c
30733073
N: zynq
30743074
N: xilinx
30753075

3076+
ARM64 FIT SUPPORT
3077+
M: Simon Glass <sjg@chromium.org>
3078+
L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
3079+
S: Maintained
3080+
F: arch/arm64/boot/Makefile
3081+
F: scripts/make_fit.py
3082+
30763083
ARM64 PORT (AARCH64 ARCHITECTURE)
30773084
M: Catalin Marinas <catalin.marinas@arm.com>
30783085
M: Will Deacon <will@kernel.org>

arch/arm64/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,11 @@ config ARM64
255255
select SYSCTL_EXCEPTION_TRACE
256256
select THREAD_INFO_IN_TASK
257257
select HAVE_ARCH_USERFAULTFD_MINOR if USERFAULTFD
258+
select HAVE_ARCH_USERFAULTFD_WP if USERFAULTFD
258259
select TRACE_IRQFLAGS_SUPPORT
259260
select TRACE_IRQFLAGS_NMI_SUPPORT
260261
select HAVE_SOFTIRQ_ON_OWN_STACK
262+
select USER_STACKTRACE_SUPPORT
261263
help
262264
ARM 64-bit (AArch64) Linux support.
263265

0 commit comments

Comments
 (0)