Skip to content

Commit 9f23478

Browse files
committed
Merge tag 'asoc-fix-v6.9-merge-window' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Fixes for v6.9 A bunch of fixes that came in during the merge window, probably the most substantial thing is the DPCM locking fix for compressed audio which has been lurking for a while.
2 parents 14d8114 + 9a8b202 commit 9f23478

File tree

765 files changed

+8298
-4607
lines changed

Some content is hidden

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

765 files changed

+8298
-4607
lines changed

.mailmap

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ Kenneth W Chen <kenneth.w.chen@intel.com>
325325
Kenneth Westfield <quic_kwestfie@quicinc.com> <kwestfie@codeaurora.org>
326326
Kiran Gunda <quic_kgunda@quicinc.com> <kgunda@codeaurora.org>
327327
Kirill Tkhai <tkhai@ya.ru> <ktkhai@virtuozzo.com>
328+
Kishon Vijay Abraham I <kishon@kernel.org> <kishon@ti.com>
328329
Konstantin Khlebnikov <koct9i@gmail.com> <khlebnikov@yandex-team.ru>
329330
Konstantin Khlebnikov <koct9i@gmail.com> <k.khlebnikov@samsung.com>
330331
Koushik <raghavendra.koushik@neterion.com>
@@ -553,6 +554,7 @@ Senthilkumar N L <quic_snlakshm@quicinc.com> <snlakshm@codeaurora.org>
553554
Serge Hallyn <sergeh@kernel.org> <serge.hallyn@canonical.com>
554555
Serge Hallyn <sergeh@kernel.org> <serue@us.ibm.com>
555556
Seth Forshee <sforshee@kernel.org> <seth.forshee@canonical.com>
557+
Shakeel Butt <shakeel.butt@linux.dev> <shakeelb@google.com>
556558
Shannon Nelson <shannon.nelson@amd.com> <snelson@pensando.io>
557559
Shannon Nelson <shannon.nelson@amd.com> <shannon.nelson@intel.com>
558560
Shannon Nelson <shannon.nelson@amd.com> <shannon.nelson@oracle.com>
@@ -608,6 +610,11 @@ TripleX Chung <xxx.phy@gmail.com> <triplex@zh-kernel.org>
608610
TripleX Chung <xxx.phy@gmail.com> <zhongyu@18mail.cn>
609611
Tsuneo Yoshioka <Tsuneo.Yoshioka@f-secure.com>
610612
Tudor Ambarus <tudor.ambarus@linaro.org> <tudor.ambarus@microchip.com>
613+
Tvrtko Ursulin <tursulin@ursulin.net> <tvrtko.ursulin@intel.com>
614+
Tvrtko Ursulin <tursulin@ursulin.net> <tvrtko.ursulin@linux.intel.com>
615+
Tvrtko Ursulin <tursulin@ursulin.net> <tvrtko.ursulin@sophos.com>
616+
Tvrtko Ursulin <tursulin@ursulin.net> <tvrtko.ursulin@onelan.co.uk>
617+
Tvrtko Ursulin <tursulin@ursulin.net> <tvrtko@ursulin.net>
611618
Tycho Andersen <tycho@tycho.pizza> <tycho@tycho.ws>
612619
Tzung-Bi Shih <tzungbi@kernel.org> <tzungbi@google.com>
613620
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/devicetree/bindings/net/renesas,ethertsn.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,11 @@ properties:
6565

6666
rx-internal-delay-ps:
6767
enum: [0, 1800]
68+
default: 0
6869

6970
tx-internal-delay-ps:
7071
enum: [0, 2000]
72+
default: 0
7173

7274
'#address-cells':
7375
const: 1

Documentation/devicetree/bindings/sound/cirrus,cs42l43.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,12 @@ properties:
185185

186186
gpio-ranges:
187187
items:
188-
- description: A phandle to the CODEC pinctrl node
189-
minimum: 0
190-
- const: 0
191-
- const: 0
192-
- const: 3
188+
- items:
189+
- description: A phandle to the CODEC pinctrl node
190+
minimum: 0
191+
- const: 0
192+
- const: 0
193+
- const: 3
193194

194195
patternProperties:
195196
"-state$":

Documentation/driver-api/dpll.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ In such scenario, dpll device input signal shall be also configurable
545545
to drive dpll with signal recovered from the PHY netdevice.
546546
This is done by exposing a pin to the netdevice - attaching pin to the
547547
netdevice itself with
548-
``netdev_dpll_pin_set(struct net_device *dev, struct dpll_pin *dpll_pin)``.
548+
``dpll_netdev_pin_set(struct net_device *dev, struct dpll_pin *dpll_pin)``.
549549
Exposed pin id handle ``DPLL_A_PIN_ID`` is then identifiable by the user
550550
as it is attached to rtnetlink respond to get ``RTM_NEWLINK`` command in
551551
nested attribute ``IFLA_DPLL_PIN``.

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

0 commit comments

Comments
 (0)