Skip to content

Commit a2e7496

Browse files
committed
Merge drm/drm-fixes into drm-misc-fixes
Backmerging to sync before merging the patchset at [1]. [1] https://lore.kernel.org/all/cover.1709913674.git.jani.nikula@intel.com/ Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
2 parents 16e87fe + b7cc4ff commit a2e7496

581 files changed

Lines changed: 6162 additions & 3230 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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,7 @@ Senthilkumar N L <quic_snlakshm@quicinc.com> <snlakshm@codeaurora.org>
553553
Serge Hallyn <sergeh@kernel.org> <serge.hallyn@canonical.com>
554554
Serge Hallyn <sergeh@kernel.org> <serue@us.ibm.com>
555555
Seth Forshee <sforshee@kernel.org> <seth.forshee@canonical.com>
556+
Shakeel Butt <shakeel.butt@linux.dev> <shakeelb@google.com>
556557
Shannon Nelson <shannon.nelson@amd.com> <snelson@pensando.io>
557558
Shannon Nelson <shannon.nelson@amd.com> <shannon.nelson@intel.com>
558559
Shannon Nelson <shannon.nelson@amd.com> <shannon.nelson@oracle.com>
@@ -608,6 +609,11 @@ TripleX Chung <xxx.phy@gmail.com> <triplex@zh-kernel.org>
608609
TripleX Chung <xxx.phy@gmail.com> <zhongyu@18mail.cn>
609610
Tsuneo Yoshioka <Tsuneo.Yoshioka@f-secure.com>
610611
Tudor Ambarus <tudor.ambarus@linaro.org> <tudor.ambarus@microchip.com>
612+
Tvrtko Ursulin <tursulin@ursulin.net> <tvrtko.ursulin@intel.com>
613+
Tvrtko Ursulin <tursulin@ursulin.net> <tvrtko.ursulin@linux.intel.com>
614+
Tvrtko Ursulin <tursulin@ursulin.net> <tvrtko.ursulin@sophos.com>
615+
Tvrtko Ursulin <tursulin@ursulin.net> <tvrtko.ursulin@onelan.co.uk>
616+
Tvrtko Ursulin <tursulin@ursulin.net> <tvrtko@ursulin.net>
611617
Tycho Andersen <tycho@tycho.pizza> <tycho@tycho.ws>
612618
Tzung-Bi Shih <tzungbi@kernel.org> <tzungbi@google.com>
613619
Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>

Documentation/arch/x86/mds.rst

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ The kernel provides a function to invoke the buffer clearing:
9595

9696
mds_clear_cpu_buffers()
9797

98+
Also macro CLEAR_CPU_BUFFERS can be used in ASM late in exit-to-user path.
99+
Other than CFLAGS.ZF, this macro doesn't clobber any registers.
100+
98101
The mitigation is invoked on kernel/userspace, hypervisor/guest and C-state
99102
(idle) transitions.
100103

@@ -138,17 +141,30 @@ Mitigation points
138141

139142
When transitioning from kernel to user space the CPU buffers are flushed
140143
on affected CPUs when the mitigation is not disabled on the kernel
141-
command line. The migitation is enabled through the static key
142-
mds_user_clear.
143-
144-
The mitigation is invoked in prepare_exit_to_usermode() which covers
145-
all but one of the kernel to user space transitions. The exception
146-
is when we return from a Non Maskable Interrupt (NMI), which is
147-
handled directly in do_nmi().
148-
149-
(The reason that NMI is special is that prepare_exit_to_usermode() can
150-
enable IRQs. In NMI context, NMIs are blocked, and we don't want to
151-
enable IRQs with NMIs blocked.)
144+
command line. The mitigation is enabled through the feature flag
145+
X86_FEATURE_CLEAR_CPU_BUF.
146+
147+
The mitigation is invoked just before transitioning to userspace after
148+
user registers are restored. This is done to minimize the window in
149+
which kernel data could be accessed after VERW e.g. via an NMI after
150+
VERW.
151+
152+
**Corner case not handled**
153+
Interrupts returning to kernel don't clear CPUs buffers since the
154+
exit-to-user path is expected to do that anyways. But, there could be
155+
a case when an NMI is generated in kernel after the exit-to-user path
156+
has cleared the buffers. This case is not handled and NMI returning to
157+
kernel don't clear CPU buffers because:
158+
159+
1. It is rare to get an NMI after VERW, but before returning to userspace.
160+
2. For an unprivileged user, there is no known way to make that NMI
161+
less rare or target it.
162+
3. It would take a large number of these precisely-timed NMIs to mount
163+
an actual attack. There's presumably not enough bandwidth.
164+
4. The NMI in question occurs after a VERW, i.e. when user state is
165+
restored and most interesting data is already scrubbed. Whats left
166+
is only the data that NMI touches, and that may or may not be of
167+
any interest.
152168

153169

154170
2. C-State transition

Documentation/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,12 @@ def get_cline_version():
388388
verbatimhintsturnover=false,
389389
''',
390390

391+
#
392+
# Some of our authors are fond of deep nesting; tell latex to
393+
# cope.
394+
#
395+
'maxlistdepth': '10',
396+
391397
# For CJK One-half spacing, need to be in front of hyperref
392398
'extrapackages': r'\usepackage{setspace}',
393399

Documentation/devicetree/bindings/clock/google,gs101-clock.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ allOf:
8585

8686
clock-names:
8787
items:
88-
- const: dout_cmu_misc_bus
89-
- const: dout_cmu_misc_sss
88+
- const: bus
89+
- const: sss
9090

9191
additionalProperties: false
9292

Documentation/networking/net_cachelines/inet_sock.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
.. SPDX-License-Identifier: GPL-2.0
22
.. Copyright (C) 2023 Google LLC
33
4-
=====================================================
5-
inet_connection_sock struct fast path usage breakdown
6-
=====================================================
4+
==========================================
5+
inet_sock struct fast path usage breakdown
6+
==========================================
77

88
Type Name fastpath_tx_access fastpath_rx_access comment
99
..struct ..inet_sock

Documentation/process/maintainer-netdev.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ patchwork checks
431431
Checks in patchwork are mostly simple wrappers around existing kernel
432432
scripts, the sources are available at:
433433

434-
https://github.com/kuba-moo/nipa/tree/master/tests
434+
https://github.com/linux-netdev/nipa/tree/master/tests
435435

436436
**Do not** post your patches just to run them through the checks.
437437
You must ensure that your patches are ready by testing them locally

Documentation/sphinx/translations.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@
2929
}
3030

3131
class LanguagesNode(nodes.Element):
32-
def __init__(self, current_language, *args, **kwargs):
33-
super().__init__(*args, **kwargs)
34-
35-
self.current_language = current_language
32+
pass
3633

3734
class TranslationsTransform(Transform):
3835
default_priority = 900
@@ -49,7 +46,8 @@ def apply(self):
4946
# normalize docname to be the untranslated one
5047
docname = os.path.join(*components[2:])
5148

52-
new_nodes = LanguagesNode(all_languages[this_lang_code])
49+
new_nodes = LanguagesNode()
50+
new_nodes['current_language'] = all_languages[this_lang_code]
5351

5452
for lang_code, lang_name in all_languages.items():
5553
if lang_code == this_lang_code:
@@ -84,7 +82,7 @@ def process_languages(app, doctree, docname):
8482

8583
html_content = app.builder.templates.render('translations.html',
8684
context={
87-
'current_language': node.current_language,
85+
'current_language': node['current_language'],
8886
'languages': languages,
8987
})
9088

MAINTAINERS

Lines changed: 28 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,6 +1395,7 @@ F: drivers/hwmon/max31760.c
13951395

13961396
ANALOGBITS PLL LIBRARIES
13971397
M: Paul Walmsley <paul.walmsley@sifive.com>
1398+
M: Samuel Holland <samuel.holland@sifive.com>
13981399
S: Supported
13991400
F: drivers/clk/analogbits/*
14001401
F: include/linux/clk/analogbits*
@@ -5378,7 +5379,7 @@ CONTROL GROUP - MEMORY RESOURCE CONTROLLER (MEMCG)
53785379
M: Johannes Weiner <hannes@cmpxchg.org>
53795380
M: Michal Hocko <mhocko@kernel.org>
53805381
M: Roman Gushchin <roman.gushchin@linux.dev>
5381-
M: Shakeel Butt <shakeelb@google.com>
5382+
M: Shakeel Butt <shakeel.butt@linux.dev>
53825383
R: Muchun Song <muchun.song@linux.dev>
53835384
L: cgroups@vger.kernel.org
53845385
L: linux-mm@kvack.org
@@ -10734,7 +10735,7 @@ INTEL DRM I915 DRIVER (Meteor Lake, DG2 and older excluding Poulsbo, Moorestown
1073410735
M: Jani Nikula <jani.nikula@linux.intel.com>
1073510736
M: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
1073610737
M: Rodrigo Vivi <rodrigo.vivi@intel.com>
10737-
M: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
10738+
M: Tvrtko Ursulin <tursulin@ursulin.net>
1073810739
L: intel-gfx@lists.freedesktop.org
1073910740
S: Supported
1074010741
W: https://drm.pages.freedesktop.org/intel-docs/
@@ -14111,6 +14112,17 @@ F: mm/
1411114112
F: tools/mm/
1411214113
F: tools/testing/selftests/mm/
1411314114

14115+
MEMORY MAPPING
14116+
M: Andrew Morton <akpm@linux-foundation.org>
14117+
R: Liam R. Howlett <Liam.Howlett@oracle.com>
14118+
R: Vlastimil Babka <vbabka@suse.cz>
14119+
R: Lorenzo Stoakes <lstoakes@gmail.com>
14120+
L: linux-mm@kvack.org
14121+
S: Maintained
14122+
W: http://www.linux-mm.org
14123+
T: git git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
14124+
F: mm/mmap.c
14125+
1411414126
MEMORY TECHNOLOGY DEVICES (MTD)
1411514127
M: Miquel Raynal <miquel.raynal@bootlin.com>
1411614128
M: Richard Weinberger <richard@nod.at>
@@ -14369,7 +14381,7 @@ MICROCHIP MCP16502 PMIC DRIVER
1436914381
M: Claudiu Beznea <claudiu.beznea@tuxon.dev>
1437014382
L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
1437114383
S: Supported
14372-
F: Documentation/devicetree/bindings/regulator/mcp16502-regulator.txt
14384+
F: Documentation/devicetree/bindings/regulator/microchip,mcp16502.yaml
1437314385
F: drivers/regulator/mcp16502.c
1437414386

1437514387
MICROCHIP MCP3564 ADC DRIVER
@@ -15242,6 +15254,8 @@ F: Documentation/networking/
1524215254
F: Documentation/networking/net_cachelines/
1524315255
F: Documentation/process/maintainer-netdev.rst
1524415256
F: Documentation/userspace-api/netlink/
15257+
F: include/linux/framer/framer-provider.h
15258+
F: include/linux/framer/framer.h
1524515259
F: include/linux/in.h
1524615260
F: include/linux/indirect_call_wrapper.h
1524715261
F: include/linux/net.h
@@ -16730,6 +16744,7 @@ F: drivers/pci/controller/dwc/*layerscape*
1673016744
PCI DRIVER FOR FU740
1673116745
M: Paul Walmsley <paul.walmsley@sifive.com>
1673216746
M: Greentime Hu <greentime.hu@sifive.com>
16747+
M: Samuel Holland <samuel.holland@sifive.com>
1673316748
L: linux-pci@vger.kernel.org
1673416749
S: Maintained
1673516750
F: Documentation/devicetree/bindings/pci/sifive,fu740-pcie.yaml
@@ -17982,33 +17997,34 @@ F: drivers/media/tuners/qt1010*
1798217997

1798317998
QUALCOMM ATH12K WIRELESS DRIVER
1798417999
M: Kalle Valo <kvalo@kernel.org>
17985-
M: Jeff Johnson <quic_jjohnson@quicinc.com>
18000+
M: Jeff Johnson <jjohnson@kernel.org>
1798618001
L: ath12k@lists.infradead.org
1798718002
S: Supported
1798818003
W: https://wireless.wiki.kernel.org/en/users/Drivers/ath12k
1798918004
T: git git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
1799018005
F: drivers/net/wireless/ath/ath12k/
18006+
N: ath12k
1799118007

1799218008
QUALCOMM ATHEROS ATH10K WIRELESS DRIVER
1799318009
M: Kalle Valo <kvalo@kernel.org>
17994-
M: Jeff Johnson <quic_jjohnson@quicinc.com>
18010+
M: Jeff Johnson <jjohnson@kernel.org>
1799518011
L: ath10k@lists.infradead.org
1799618012
S: Supported
1799718013
W: https://wireless.wiki.kernel.org/en/users/Drivers/ath10k
1799818014
T: git git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
17999-
F: Documentation/devicetree/bindings/net/wireless/qcom,ath10k.yaml
1800018015
F: drivers/net/wireless/ath/ath10k/
18016+
N: ath10k
1800118017

1800218018
QUALCOMM ATHEROS ATH11K WIRELESS DRIVER
1800318019
M: Kalle Valo <kvalo@kernel.org>
18004-
M: Jeff Johnson <quic_jjohnson@quicinc.com>
18020+
M: Jeff Johnson <jjohnson@kernel.org>
1800518021
L: ath11k@lists.infradead.org
1800618022
S: Supported
1800718023
W: https://wireless.wiki.kernel.org/en/users/Drivers/ath11k
1800818024
B: https://wireless.wiki.kernel.org/en/users/Drivers/ath11k/bugreport
1800918025
T: git git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
18010-
F: Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml
1801118026
F: drivers/net/wireless/ath/ath11k/
18027+
N: ath11k
1801218028

1801318029
QUALCOMM ATHEROS ATH9K WIRELESS DRIVER
1801418030
M: Toke Høiland-Jørgensen <toke@toke.dk>
@@ -19974,36 +19990,15 @@ S: Maintained
1997419990
F: drivers/watchdog/simatic-ipc-wdt.c
1997519991

1997619992
SIFIVE DRIVERS
19977-
M: Palmer Dabbelt <palmer@dabbelt.com>
1997819993
M: Paul Walmsley <paul.walmsley@sifive.com>
19994+
M: Samuel Holland <samuel.holland@sifive.com>
1997919995
L: linux-riscv@lists.infradead.org
1998019996
S: Supported
19997+
F: drivers/dma/sf-pdma/
1998119998
N: sifive
19999+
K: fu[57]40
1998220000
K: [^@]sifive
1998320001

19984-
SIFIVE CACHE DRIVER
19985-
M: Conor Dooley <conor@kernel.org>
19986-
L: linux-riscv@lists.infradead.org
19987-
S: Maintained
19988-
F: Documentation/devicetree/bindings/cache/sifive,ccache0.yaml
19989-
F: drivers/cache/sifive_ccache.c
19990-
19991-
SIFIVE FU540 SYSTEM-ON-CHIP
19992-
M: Paul Walmsley <paul.walmsley@sifive.com>
19993-
M: Palmer Dabbelt <palmer@dabbelt.com>
19994-
L: linux-riscv@lists.infradead.org
19995-
S: Supported
19996-
T: git git://git.kernel.org/pub/scm/linux/kernel/git/pjw/sifive.git
19997-
N: fu540
19998-
K: fu540
19999-
20000-
SIFIVE PDMA DRIVER
20001-
M: Green Wan <green.wan@sifive.com>
20002-
S: Maintained
20003-
F: Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml
20004-
F: drivers/dma/sf-pdma/
20005-
20006-
2000720002
SILEAD TOUCHSCREEN DRIVER
2000820003
M: Hans de Goede <hdegoede@redhat.com>
2000920004
L: linux-input@vger.kernel.org
@@ -22878,9 +22873,8 @@ S: Maintained
2287822873
F: drivers/usb/typec/mux/pi3usb30532.c
2287922874

2288022875
USB TYPEC PORT CONTROLLER DRIVERS
22881-
M: Guenter Roeck <linux@roeck-us.net>
2288222876
L: linux-usb@vger.kernel.org
22883-
S: Maintained
22877+
S: Orphan
2288422878
F: drivers/usb/typec/tcpm/
2288522879

2288622880
USB UHCI DRIVER

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
VERSION = 6
33
PATCHLEVEL = 8
44
SUBLEVEL = 0
5-
EXTRAVERSION = -rc5
5+
EXTRAVERSION = -rc7
66
NAME = Hurr durr I'ma ninja sloth
77

88
# *DOCUMENTATION*

arch/arm/boot/dts/amazon/alpine.dtsi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@
167167
msix: msix@fbe00000 {
168168
compatible = "al,alpine-msix";
169169
reg = <0x0 0xfbe00000 0x0 0x100000>;
170-
interrupt-controller;
171170
msi-controller;
172171
al,msi-base-spi = <96>;
173172
al,msi-num-spis = <64>;

0 commit comments

Comments
 (0)