Skip to content

Commit

Permalink
Merge drm/drm-fixes into drm-misc-fixes
Browse files Browse the repository at this point in the history
Backmerging to sync before merging the patchset at [1].

[1] https://lore.kernel.org/all/[email protected]/

Signed-off-by: Thomas Zimmermann <[email protected]>
  • Loading branch information
Thomas Zimmermann committed Mar 13, 2024
2 parents 16e87fe + b7cc4ff commit a2e7496
Show file tree
Hide file tree
Showing 581 changed files with 6,162 additions and 3,230 deletions.
6 changes: 6 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,7 @@ Senthilkumar N L <[email protected]> <[email protected]>
Serge Hallyn <[email protected]> <[email protected]>
Serge Hallyn <[email protected]> <[email protected]>
Seth Forshee <[email protected]> <[email protected]>
Shakeel Butt <[email protected]> <[email protected]>
Shannon Nelson <[email protected]> <[email protected]>
Shannon Nelson <[email protected]> <[email protected]>
Shannon Nelson <[email protected]> <[email protected]>
Expand Down Expand Up @@ -608,6 +609,11 @@ TripleX Chung <[email protected]> <[email protected]>
TripleX Chung <[email protected]> <[email protected]>
Tsuneo Yoshioka <[email protected]>
Tudor Ambarus <[email protected]> <[email protected]>
Tvrtko Ursulin <[email protected]> <[email protected]>
Tvrtko Ursulin <[email protected]> <[email protected]>
Tvrtko Ursulin <[email protected]> <[email protected]>
Tvrtko Ursulin <[email protected]> <[email protected]>
Tvrtko Ursulin <[email protected]> <[email protected]>
Tycho Andersen <[email protected]> <[email protected]>
Tzung-Bi Shih <[email protected]> <[email protected]>
Uwe Kleine-König <[email protected]>
Expand Down
38 changes: 27 additions & 11 deletions Documentation/arch/x86/mds.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ The kernel provides a function to invoke the buffer clearing:

mds_clear_cpu_buffers()

Also macro CLEAR_CPU_BUFFERS can be used in ASM late in exit-to-user path.
Other than CFLAGS.ZF, this macro doesn't clobber any registers.

The mitigation is invoked on kernel/userspace, hypervisor/guest and C-state
(idle) transitions.

Expand Down Expand Up @@ -138,17 +141,30 @@ Mitigation points

When transitioning from kernel to user space the CPU buffers are flushed
on affected CPUs when the mitigation is not disabled on the kernel
command line. The migitation is enabled through the static key
mds_user_clear.

The mitigation is invoked in prepare_exit_to_usermode() which covers
all but one of the kernel to user space transitions. The exception
is when we return from a Non Maskable Interrupt (NMI), which is
handled directly in do_nmi().

(The reason that NMI is special is that prepare_exit_to_usermode() can
enable IRQs. In NMI context, NMIs are blocked, and we don't want to
enable IRQs with NMIs blocked.)
command line. The mitigation is enabled through the feature flag
X86_FEATURE_CLEAR_CPU_BUF.

The mitigation is invoked just before transitioning to userspace after
user registers are restored. This is done to minimize the window in
which kernel data could be accessed after VERW e.g. via an NMI after
VERW.

**Corner case not handled**
Interrupts returning to kernel don't clear CPUs buffers since the
exit-to-user path is expected to do that anyways. But, there could be
a case when an NMI is generated in kernel after the exit-to-user path
has cleared the buffers. This case is not handled and NMI returning to
kernel don't clear CPU buffers because:

1. It is rare to get an NMI after VERW, but before returning to userspace.
2. For an unprivileged user, there is no known way to make that NMI
less rare or target it.
3. It would take a large number of these precisely-timed NMIs to mount
an actual attack. There's presumably not enough bandwidth.
4. The NMI in question occurs after a VERW, i.e. when user state is
restored and most interesting data is already scrubbed. Whats left
is only the data that NMI touches, and that may or may not be of
any interest.


2. C-State transition
Expand Down
6 changes: 6 additions & 0 deletions Documentation/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,12 @@ def get_cline_version():
verbatimhintsturnover=false,
''',

#
# Some of our authors are fond of deep nesting; tell latex to
# cope.
#
'maxlistdepth': '10',

# For CJK One-half spacing, need to be in front of hyperref
'extrapackages': r'\usepackage{setspace}',

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ allOf:

clock-names:
items:
- const: dout_cmu_misc_bus
- const: dout_cmu_misc_sss
- const: bus
- const: sss

additionalProperties: false

Expand Down
6 changes: 3 additions & 3 deletions Documentation/networking/net_cachelines/inet_sock.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.. SPDX-License-Identifier: GPL-2.0
.. Copyright (C) 2023 Google LLC

=====================================================
inet_connection_sock struct fast path usage breakdown
=====================================================
==========================================
inet_sock struct fast path usage breakdown
==========================================

Type Name fastpath_tx_access fastpath_rx_access comment
..struct ..inet_sock
Expand Down
2 changes: 1 addition & 1 deletion Documentation/process/maintainer-netdev.rst
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ patchwork checks
Checks in patchwork are mostly simple wrappers around existing kernel
scripts, the sources are available at:

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

**Do not** post your patches just to run them through the checks.
You must ensure that your patches are ready by testing them locally
Expand Down
10 changes: 4 additions & 6 deletions Documentation/sphinx/translations.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@
}

class LanguagesNode(nodes.Element):
def __init__(self, current_language, *args, **kwargs):
super().__init__(*args, **kwargs)

self.current_language = current_language
pass

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

new_nodes = LanguagesNode(all_languages[this_lang_code])
new_nodes = LanguagesNode()
new_nodes['current_language'] = all_languages[this_lang_code]

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

html_content = app.builder.templates.render('translations.html',
context={
'current_language': node.current_language,
'current_language': node['current_language'],
'languages': languages,
})

Expand Down
62 changes: 28 additions & 34 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -1395,6 +1395,7 @@ F: drivers/hwmon/max31760.c

ANALOGBITS PLL LIBRARIES
M: Paul Walmsley <[email protected]>
M: Samuel Holland <[email protected]>
S: Supported
F: drivers/clk/analogbits/*
F: include/linux/clk/analogbits*
Expand Down Expand Up @@ -5378,7 +5379,7 @@ CONTROL GROUP - MEMORY RESOURCE CONTROLLER (MEMCG)
M: Johannes Weiner <[email protected]>
M: Michal Hocko <[email protected]>
M: Roman Gushchin <[email protected]>
M: Shakeel Butt <[email protected]>
M: Shakeel Butt <[email protected]>
R: Muchun Song <[email protected]>
L: [email protected]
L: [email protected]
Expand Down Expand Up @@ -10734,7 +10735,7 @@ INTEL DRM I915 DRIVER (Meteor Lake, DG2 and older excluding Poulsbo, Moorestown
M: Jani Nikula <[email protected]>
M: Joonas Lahtinen <[email protected]>
M: Rodrigo Vivi <[email protected]>
M: Tvrtko Ursulin <[email protected]>
M: Tvrtko Ursulin <[email protected]>
L: [email protected]
S: Supported
W: https://drm.pages.freedesktop.org/intel-docs/
Expand Down Expand Up @@ -14111,6 +14112,17 @@ F: mm/
F: tools/mm/
F: tools/testing/selftests/mm/

MEMORY MAPPING
M: Andrew Morton <[email protected]>
R: Liam R. Howlett <[email protected]>
R: Vlastimil Babka <[email protected]>
R: Lorenzo Stoakes <[email protected]>
L: [email protected]
S: Maintained
W: http://www.linux-mm.org
T: git git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
F: mm/mmap.c

MEMORY TECHNOLOGY DEVICES (MTD)
M: Miquel Raynal <[email protected]>
M: Richard Weinberger <[email protected]>
Expand Down Expand Up @@ -14369,7 +14381,7 @@ MICROCHIP MCP16502 PMIC DRIVER
M: Claudiu Beznea <[email protected]>
L: [email protected] (moderated for non-subscribers)
S: Supported
F: Documentation/devicetree/bindings/regulator/mcp16502-regulator.txt
F: Documentation/devicetree/bindings/regulator/microchip,mcp16502.yaml
F: drivers/regulator/mcp16502.c

MICROCHIP MCP3564 ADC DRIVER
Expand Down Expand Up @@ -15242,6 +15254,8 @@ F: Documentation/networking/
F: Documentation/networking/net_cachelines/
F: Documentation/process/maintainer-netdev.rst
F: Documentation/userspace-api/netlink/
F: include/linux/framer/framer-provider.h
F: include/linux/framer/framer.h
F: include/linux/in.h
F: include/linux/indirect_call_wrapper.h
F: include/linux/net.h
Expand Down Expand Up @@ -16730,6 +16744,7 @@ F: drivers/pci/controller/dwc/*layerscape*
PCI DRIVER FOR FU740
M: Paul Walmsley <[email protected]>
M: Greentime Hu <[email protected]>
M: Samuel Holland <[email protected]>
L: [email protected]
S: Maintained
F: Documentation/devicetree/bindings/pci/sifive,fu740-pcie.yaml
Expand Down Expand Up @@ -17982,33 +17997,34 @@ F: drivers/media/tuners/qt1010*

QUALCOMM ATH12K WIRELESS DRIVER
M: Kalle Valo <[email protected]>
M: Jeff Johnson <[email protected]>
M: Jeff Johnson <[email protected]>
L: [email protected]
S: Supported
W: https://wireless.wiki.kernel.org/en/users/Drivers/ath12k
T: git git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
F: drivers/net/wireless/ath/ath12k/
N: ath12k

QUALCOMM ATHEROS ATH10K WIRELESS DRIVER
M: Kalle Valo <[email protected]>
M: Jeff Johnson <[email protected]>
M: Jeff Johnson <[email protected]>
L: [email protected]
S: Supported
W: https://wireless.wiki.kernel.org/en/users/Drivers/ath10k
T: git git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
F: Documentation/devicetree/bindings/net/wireless/qcom,ath10k.yaml
F: drivers/net/wireless/ath/ath10k/
N: ath10k

QUALCOMM ATHEROS ATH11K WIRELESS DRIVER
M: Kalle Valo <[email protected]>
M: Jeff Johnson <[email protected]>
M: Jeff Johnson <[email protected]>
L: [email protected]
S: Supported
W: https://wireless.wiki.kernel.org/en/users/Drivers/ath11k
B: https://wireless.wiki.kernel.org/en/users/Drivers/ath11k/bugreport
T: git git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
F: Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml
F: drivers/net/wireless/ath/ath11k/
N: ath11k

QUALCOMM ATHEROS ATH9K WIRELESS DRIVER
M: Toke Høiland-Jørgensen <[email protected]>
Expand Down Expand Up @@ -19974,36 +19990,15 @@ S: Maintained
F: drivers/watchdog/simatic-ipc-wdt.c

SIFIVE DRIVERS
M: Palmer Dabbelt <[email protected]>
M: Paul Walmsley <[email protected]>
M: Samuel Holland <[email protected]>
L: [email protected]
S: Supported
F: drivers/dma/sf-pdma/
N: sifive
K: fu[57]40
K: [^@]sifive

SIFIVE CACHE DRIVER
M: Conor Dooley <[email protected]>
L: [email protected]
S: Maintained
F: Documentation/devicetree/bindings/cache/sifive,ccache0.yaml
F: drivers/cache/sifive_ccache.c

SIFIVE FU540 SYSTEM-ON-CHIP
M: Paul Walmsley <[email protected]>
M: Palmer Dabbelt <[email protected]>
L: [email protected]
S: Supported
T: git git://git.kernel.org/pub/scm/linux/kernel/git/pjw/sifive.git
N: fu540
K: fu540

SIFIVE PDMA DRIVER
M: Green Wan <[email protected]>
S: Maintained
F: Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml
F: drivers/dma/sf-pdma/


SILEAD TOUCHSCREEN DRIVER
M: Hans de Goede <[email protected]>
L: [email protected]
Expand Down Expand Up @@ -22878,9 +22873,8 @@ S: Maintained
F: drivers/usb/typec/mux/pi3usb30532.c

USB TYPEC PORT CONTROLLER DRIVERS
M: Guenter Roeck <[email protected]>
L: [email protected]
S: Maintained
S: Orphan
F: drivers/usb/typec/tcpm/

USB UHCI DRIVER
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
VERSION = 6
PATCHLEVEL = 8
SUBLEVEL = 0
EXTRAVERSION = -rc5
EXTRAVERSION = -rc7
NAME = Hurr durr I'ma ninja sloth

# *DOCUMENTATION*
Expand Down
1 change: 0 additions & 1 deletion arch/arm/boot/dts/amazon/alpine.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@
msix: msix@fbe00000 {
compatible = "al,alpine-msix";
reg = <0x0 0xfbe00000 0x0 0x100000>;
interrupt-controller;
msi-controller;
al,msi-base-spi = <96>;
al,msi-num-spis = <64>;
Expand Down
Loading

0 comments on commit a2e7496

Please sign in to comment.