Skip to content

Commit c1bd8a2

Browse files
committed
Merge branch 'perf/urgent' into perf/core
To get some fixes that didn't made into 5.11. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2 parents a89dbc9 + 105f75e commit c1bd8a2

325 files changed

Lines changed: 3856 additions & 1450 deletions

File tree

Some content is hidden

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

‎.mailmap‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Andrew Murray <amurray@thegoodpenguin.co.uk> <amurray@embedded-bits.co.uk>
3737
Andrew Murray <amurray@thegoodpenguin.co.uk> <andrew.murray@arm.com>
3838
Andrew Vasquez <andrew.vasquez@qlogic.com>
3939
Andrey Ryabinin <ryabinin.a.a@gmail.com> <a.ryabinin@samsung.com>
40+
Andrey Ryabinin <ryabinin.a.a@gmail.com> <aryabinin@virtuozzo.com>
4041
Andy Adamson <andros@citi.umich.edu>
4142
Antoine Tenart <atenart@kernel.org> <antoine.tenart@bootlin.com>
4243
Antoine Tenart <atenart@kernel.org> <antoine.tenart@free-electrons.com>
@@ -179,6 +180,8 @@ Kees Cook <keescook@chromium.org> <kees.cook@canonical.com>
179180
Kees Cook <keescook@chromium.org> <keescook@google.com>
180181
Kees Cook <keescook@chromium.org> <kees@outflux.net>
181182
Kees Cook <keescook@chromium.org> <kees@ubuntu.com>
183+
Keith Busch <kbusch@kernel.org> <keith.busch@intel.com>
184+
Keith Busch <kbusch@kernel.org> <keith.busch@linux.intel.com>
182185
Kenneth W Chen <kenneth.w.chen@intel.com>
183186
Konstantin Khlebnikov <koct9i@gmail.com> <khlebnikov@yandex-team.ru>
184187
Konstantin Khlebnikov <koct9i@gmail.com> <k.khlebnikov@samsung.com>
@@ -199,6 +202,8 @@ Li Yang <leoyang.li@nxp.com> <leoli@freescale.com>
199202
Li Yang <leoyang.li@nxp.com> <leo@zh-kernel.org>
200203
Lukasz Luba <lukasz.luba@arm.com> <l.luba@partner.samsung.com>
201204
Maciej W. Rozycki <macro@mips.com> <macro@imgtec.com>
205+
Manivannan Sadhasivam <mani@kernel.org> <manivannanece23@gmail.com>
206+
Manivannan Sadhasivam <mani@kernel.org> <manivannan.sadhasivam@linaro.org>
202207
Marcin Nowakowski <marcin.nowakowski@mips.com> <marcin.nowakowski@imgtec.com>
203208
Marc Zyngier <maz@kernel.org> <marc.zyngier@arm.com>
204209
Mark Brown <broonie@sirena.org.uk>
@@ -244,6 +249,7 @@ Morten Welinder <welinder@anemone.rentec.com>
244249
Morten Welinder <welinder@darter.rentec.com>
245250
Morten Welinder <welinder@troll.com>
246251
Mythri P K <mythripk@ti.com>
252+
Nathan Chancellor <nathan@kernel.org> <natechancellor@gmail.com>
247253
Nguyen Anh Quynh <aquynh@gmail.com>
248254
Nicolas Ferre <nicolas.ferre@microchip.com> <nicolas.ferre@atmel.com>
249255
Nicolas Pitre <nico@fluxnic.net> <nicolas.pitre@linaro.org>
@@ -334,6 +340,8 @@ Vinod Koul <vkoul@kernel.org> <vkoul@infradead.org>
334340
Viresh Kumar <vireshk@kernel.org> <viresh.kumar2@arm.com>
335341
Viresh Kumar <vireshk@kernel.org> <viresh.kumar@st.com>
336342
Viresh Kumar <vireshk@kernel.org> <viresh.linux@gmail.com>
343+
Viresh Kumar <viresh.kumar@linaro.org> <viresh.kumar@linaro.org>
344+
Viresh Kumar <viresh.kumar@linaro.org> <viresh.kumar@linaro.com>
337345
Vivien Didelot <vivien.didelot@gmail.com> <vivien.didelot@savoirfairelinux.com>
338346
Vlad Dogaru <ddvlad@gmail.com> <vlad.dogaru@intel.com>
339347
Vladimir Davydov <vdavydov.dev@gmail.com> <vdavydov@parallels.com>

‎Documentation/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ quiet_cmd_sphinx = SPHINX $@ --> file://$(abspath $(BUILDDIR)/$3/$4)
7575
cmd_sphinx = $(MAKE) BUILDDIR=$(abspath $(BUILDDIR)) $(build)=Documentation/userspace-api/media $2 && \
7676
PYTHONDONTWRITEBYTECODE=1 \
7777
BUILDDIR=$(abspath $(BUILDDIR)) SPHINX_CONF=$(abspath $(srctree)/$(src)/$5/$(SPHINX_CONF)) \
78-
$(PYTHON) $(srctree)/scripts/jobserver-exec \
78+
$(PYTHON3) $(srctree)/scripts/jobserver-exec \
7979
$(SHELL) $(srctree)/Documentation/sphinx/parallel-wrapper.sh \
8080
$(SPHINXBUILD) \
8181
-b $2 \

‎Documentation/admin-guide/syscall-user-dispatch.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ trampoline code on the vDSO, that trampoline is never intercepted.
7070
[selector] is a pointer to a char-sized region in the process memory
7171
region, that provides a quick way to enable disable syscall redirection
7272
thread-wide, without the need to invoke the kernel directly. selector
73-
can be set to PR_SYS_DISPATCH_ON or PR_SYS_DISPATCH_OFF. Any other
74-
value should terminate the program with a SIGSYS.
73+
can be set to SYSCALL_DISPATCH_FILTER_ALLOW or SYSCALL_DISPATCH_FILTER_BLOCK.
74+
Any other value should terminate the program with a SIGSYS.
7575

7676
Security Notes
7777
--------------

‎Documentation/dev-tools/kasan.rst‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,7 @@ particular KASAN features.
163163
- ``kasan=off`` or ``=on`` controls whether KASAN is enabled (default: ``on``).
164164

165165
- ``kasan.stacktrace=off`` or ``=on`` disables or enables alloc and free stack
166-
traces collection (default: ``on`` for ``CONFIG_DEBUG_KERNEL=y``, otherwise
167-
``off``).
166+
traces collection (default: ``on``).
168167

169168
- ``kasan.fault=report`` or ``=panic`` controls whether to only print a KASAN
170169
report or also panic the kernel (default: ``report``).

‎Documentation/devicetree/bindings/input/adc-keys.txt‎

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ Required properties:
55
- compatible: "adc-keys"
66
- io-channels: Phandle to an ADC channel
77
- io-channel-names = "buttons";
8-
- keyup-threshold-microvolt: Voltage at which all the keys are considered up.
8+
- keyup-threshold-microvolt: Voltage above or equal to which all the keys are
9+
considered up.
910

1011
Optional properties:
1112
- poll-interval: Poll interval time in milliseconds
@@ -17,7 +18,12 @@ Each button (key) is represented as a sub-node of "adc-keys":
1718
Required subnode-properties:
1819
- label: Descriptive name of the key.
1920
- linux,code: Keycode to emit.
20-
- press-threshold-microvolt: Voltage ADC input when this key is pressed.
21+
- press-threshold-microvolt: voltage above or equal to which this key is
22+
considered pressed.
23+
24+
No two values of press-threshold-microvolt may be the same.
25+
All values of press-threshold-microvolt must be less than
26+
keyup-threshold-microvolt.
2127

2228
Example:
2329

@@ -47,3 +53,15 @@ Example:
4753
press-threshold-microvolt = <500000>;
4854
};
4955
};
56+
57+
+--------------------------------+------------------------+
58+
| 2.000.000 <= value | no key pressed |
59+
+--------------------------------+------------------------+
60+
| 1.500.000 <= value < 2.000.000 | KEY_VOLUMEUP pressed |
61+
+--------------------------------+------------------------+
62+
| 1.000.000 <= value < 1.500.000 | KEY_VOLUMEDOWN pressed |
63+
+--------------------------------+------------------------+
64+
| 500.000 <= value < 1.000.000 | KEY_ENTER pressed |
65+
+--------------------------------+------------------------+
66+
| value < 500.000 | no key pressed |
67+
+--------------------------------+------------------------+

‎Documentation/devicetree/bindings/input/touchscreen/goodix.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ properties:
2626
- goodix,gt927
2727
- goodix,gt9271
2828
- goodix,gt928
29+
- goodix,gt9286
2930
- goodix,gt967
3031

3132
reg:

‎Documentation/filesystems/overlayfs.rst‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,14 @@ without significant effort.
586586
The advantage of mounting with the "volatile" option is that all forms of
587587
sync calls to the upper filesystem are omitted.
588588

589+
In order to avoid a giving a false sense of safety, the syncfs (and fsync)
590+
semantics of volatile mounts are slightly different than that of the rest of
591+
VFS. If any writeback error occurs on the upperdir's filesystem after a
592+
volatile mount takes place, all sync functions will return an error. Once this
593+
condition is reached, the filesystem will not recover, and every subsequent sync
594+
call will return an error, even if the upperdir has not experience a new error
595+
since the last sync call.
596+
589597
When overlay is mounted with "volatile" option, the directory
590598
"$workdir/work/incompat/volatile" is created. During next mount, overlay
591599
checks for this directory and refuses to mount if present. This is a strong

‎Documentation/kbuild/gcc-plugins.rst‎

Lines changed: 21 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,13 @@ compiler [1]_. They are useful for runtime instrumentation and static analysis.
1111
We can analyse, change and add further code during compilation via
1212
callbacks [2]_, GIMPLE [3]_, IPA [4]_ and RTL passes [5]_.
1313

14-
The GCC plugin infrastructure of the kernel supports all gcc versions from
15-
4.5 to 6.0, building out-of-tree modules, cross-compilation and building in a
16-
separate directory.
17-
Plugin source files have to be compilable by both a C and a C++ compiler as well
18-
because gcc versions 4.5 and 4.6 are compiled by a C compiler,
19-
gcc-4.7 can be compiled by a C or a C++ compiler,
20-
and versions 4.8+ can only be compiled by a C++ compiler.
14+
The GCC plugin infrastructure of the kernel supports building out-of-tree
15+
modules, cross-compilation and building in a separate directory.
16+
Plugin source files have to be compilable by a C++ compiler.
2117

22-
Currently the GCC plugin infrastructure supports only the x86, arm, arm64 and
23-
powerpc architectures.
18+
Currently the GCC plugin infrastructure supports only some architectures.
19+
Grep "select HAVE_GCC_PLUGINS" to find out which architectures support
20+
GCC plugins.
2421

2522
This infrastructure was ported from grsecurity [6]_ and PaX [7]_.
2623

@@ -47,42 +44,39 @@ Files
4744
This is a compatibility header for GCC plugins.
4845
It should be always included instead of individual gcc headers.
4946

50-
**$(src)/scripts/gcc-plugin.sh**
51-
52-
This script checks the availability of the included headers in
53-
gcc-common.h and chooses the proper host compiler to build the plugins
54-
(gcc-4.7 can be built by either gcc or g++).
55-
5647
**$(src)/scripts/gcc-plugins/gcc-generate-gimple-pass.h,
5748
$(src)/scripts/gcc-plugins/gcc-generate-ipa-pass.h,
5849
$(src)/scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h,
5950
$(src)/scripts/gcc-plugins/gcc-generate-rtl-pass.h**
6051

6152
These headers automatically generate the registration structures for
62-
GIMPLE, SIMPLE_IPA, IPA and RTL passes. They support all gcc versions
63-
from 4.5 to 6.0.
53+
GIMPLE, SIMPLE_IPA, IPA and RTL passes.
6454
They should be preferred to creating the structures by hand.
6555

6656

6757
Usage
6858
=====
6959

7060
You must install the gcc plugin headers for your gcc version,
71-
e.g., on Ubuntu for gcc-4.9::
61+
e.g., on Ubuntu for gcc-10::
7262

73-
apt-get install gcc-4.9-plugin-dev
63+
apt-get install gcc-10-plugin-dev
7464

7565
Or on Fedora::
7666

7767
dnf install gcc-plugin-devel
7868

79-
Enable a GCC plugin based feature in the kernel config::
69+
Enable the GCC plugin infrastructure and some plugin(s) you want to use
70+
in the kernel config::
8071

81-
CONFIG_GCC_PLUGIN_CYC_COMPLEXITY = y
72+
CONFIG_GCC_PLUGINS=y
73+
CONFIG_GCC_PLUGIN_CYC_COMPLEXITY=y
74+
CONFIG_GCC_PLUGIN_LATENT_ENTROPY=y
75+
...
8276

83-
To compile only the plugin(s)::
77+
To compile the minimum tool set including the plugin(s)::
8478

85-
make gcc-plugins
79+
make scripts
8680

8781
or just run the kernel make and compile the whole kernel with
8882
the cyclomatic complexity GCC plugin.
@@ -91,7 +85,8 @@ the cyclomatic complexity GCC plugin.
9185
4. How to add a new GCC plugin
9286
==============================
9387

94-
The GCC plugins are in $(src)/scripts/gcc-plugins/. You can use a file or a directory
95-
here. It must be added to $(src)/scripts/gcc-plugins/Makefile,
96-
$(src)/scripts/Makefile.gcc-plugins and $(src)/arch/Kconfig.
88+
The GCC plugins are in scripts/gcc-plugins/. You need to put plugin source files
89+
right under scripts/gcc-plugins/. Creating subdirectories is not supported.
90+
It must be added to scripts/gcc-plugins/Makefile, scripts/Makefile.gcc-plugins
91+
and a relevant Kconfig file.
9792
See the cyc_complexity_plugin.c (CONFIG_GCC_PLUGIN_CYC_COMPLEXITY) GCC plugin.

‎Documentation/kbuild/llvm.rst‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,50 @@ They can be enabled individually. The full list of the parameters: ::
6363
Currently, the integrated assembler is disabled by default. You can pass
6464
``LLVM_IAS=1`` to enable it.
6565

66+
Supported Architectures
67+
-----------------------
68+
69+
LLVM does not target all of the architectures that Linux supports and
70+
just because a target is supported in LLVM does not mean that the kernel
71+
will build or work without any issues. Below is a general summary of
72+
architectures that currently work with ``CC=clang`` or ``LLVM=1``. Level
73+
of support corresponds to "S" values in the MAINTAINERS files. If an
74+
architecture is not present, it either means that LLVM does not target
75+
it or there are known issues. Using the latest stable version of LLVM or
76+
even the development tree will generally yield the best results.
77+
An architecture's ``defconfig`` is generally expected to work well,
78+
certain configurations may have problems that have not been uncovered
79+
yet. Bug reports are always welcome at the issue tracker below!
80+
81+
.. list-table::
82+
:widths: 10 10 10
83+
:header-rows: 1
84+
85+
* - Architecture
86+
- Level of support
87+
- ``make`` command
88+
* - arm
89+
- Supported
90+
- ``LLVM=1``
91+
* - arm64
92+
- Supported
93+
- ``LLVM=1``
94+
* - mips
95+
- Maintained
96+
- ``CC=clang``
97+
* - powerpc
98+
- Maintained
99+
- ``CC=clang``
100+
* - riscv
101+
- Maintained
102+
- ``CC=clang``
103+
* - s390
104+
- Maintained
105+
- ``CC=clang``
106+
* - x86
107+
- Supported
108+
- ``LLVM=1``
109+
66110
Getting Help
67111
------------
68112

‎Documentation/kbuild/makefiles.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ more details, with real examples.
755755
bits on the scripts nonetheless.
756756

757757
Kbuild provides variables $(CONFIG_SHELL), $(AWK), $(PERL),
758-
$(PYTHON) and $(PYTHON3) to refer to interpreters for the respective
758+
and $(PYTHON3) to refer to interpreters for the respective
759759
scripts.
760760

761761
Example::

0 commit comments

Comments
 (0)