Skip to content

Commit 5ddc236

Browse files
committed
regulator: init_data handling update
Merge series from Jerome Brunet <jbrunet@baylibre.com>: This patchset groups the regulator patches around the init_data topic discussed on pmbus write protect patchset [1] [1]: https://lore.kernel.org/r/20240920-pmbus-wp-v1-0-d679ef31c483@baylibre.com
2 parents 0d214f2 + 602ff58 commit 5ddc236

File tree

829 files changed

+11909
-8021
lines changed

Some content is hidden

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

829 files changed

+11909
-8021
lines changed

.mailmap

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ Andrey Ryabinin <ryabinin.a.a@gmail.com> <aryabinin@virtuozzo.com>
7373
Andrzej Hajda <andrzej.hajda@intel.com> <a.hajda@samsung.com>
7474
André Almeida <andrealmeid@igalia.com> <andrealmeid@collabora.com>
7575
Andy Adamson <andros@citi.umich.edu>
76+
Andy Chiu <andybnac@gmail.com> <andy.chiu@sifive.com>
77+
Andy Chiu <andybnac@gmail.com> <taochiu@synology.com>
7678
Andy Shevchenko <andy@kernel.org> <andy@smile.org.ua>
7779
Andy Shevchenko <andy@kernel.org> <ext-andriy.shevchenko@nokia.com>
7880
Anilkumar Kolli <quic_akolli@quicinc.com> <akolli@codeaurora.org>
@@ -203,12 +205,16 @@ Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> <ezequiel@collabora.com>
203205
Faith Ekstrand <faith.ekstrand@collabora.com> <jason@jlekstrand.net>
204206
Faith Ekstrand <faith.ekstrand@collabora.com> <jason.ekstrand@intel.com>
205207
Faith Ekstrand <faith.ekstrand@collabora.com> <jason.ekstrand@collabora.com>
208+
Fangrui Song <i@maskray.me> <maskray@google.com>
206209
Felipe W Damasio <felipewd@terra.com.br>
207210
Felix Kuhling <fxkuehl@gmx.de>
208211
Felix Moeller <felix@derklecks.de>
209212
Fenglin Wu <quic_fenglinw@quicinc.com> <fenglinw@codeaurora.org>
210213
Filipe Lautert <filipe@icewall.org>
211214
Finn Thain <fthain@linux-m68k.org> <fthain@telegraphics.com.au>
215+
Fiona Behrens <me@kloenk.dev>
216+
Fiona Behrens <me@kloenk.dev> <me@kloenk.de>
217+
Fiona Behrens <me@kloenk.dev> <fin@nyantec.com>
212218
Franck Bui-Huu <vagabon.xyz@gmail.com>
213219
Frank Rowand <frowand.list@gmail.com> <frank.rowand@am.sony.com>
214220
Frank Rowand <frowand.list@gmail.com> <frank.rowand@sony.com>

CREDITS

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,10 +1358,6 @@ D: Major kbuild rework during the 2.5 cycle
13581358
D: ISDN Maintainer
13591359
S: USA
13601360

1361-
N: Gerrit Renker
1362-
E: gerrit@erg.abdn.ac.uk
1363-
D: DCCP protocol support.
1364-
13651361
N: Philip Gladstone
13661362
E: philip@gladstonefamily.net
13671363
D: Kernel / timekeeping stuff
@@ -1677,11 +1673,6 @@ W: http://www.carumba.com/
16771673
D: bug toaster (A1 sauce makes all the difference)
16781674
D: Random linux hacker
16791675

1680-
N: James Hogan
1681-
E: jhogan@kernel.org
1682-
D: Metag architecture maintainer
1683-
D: TZ1090 SoC maintainer
1684-
16851676
N: Tim Hockin
16861677
E: thockin@hockin.org
16871678
W: http://www.hockin.org/~thockin
@@ -1697,6 +1688,11 @@ D: hwmon subsystem maintainer
16971688
D: i2c-sis96x and i2c-stub SMBus drivers
16981689
S: USA
16991690

1691+
N: James Hogan
1692+
E: jhogan@kernel.org
1693+
D: Metag architecture maintainer
1694+
D: TZ1090 SoC maintainer
1695+
17001696
N: Dirk Hohndel
17011697
E: hohndel@suse.de
17021698
D: The XFree86[tm] Project
@@ -1872,6 +1868,10 @@ S: K osmidomkum 723
18721868
S: 160 00 Praha 6
18731869
S: Czech Republic
18741870

1871+
N: Seth Jennings
1872+
E: sjenning@redhat.com
1873+
D: Creation and maintenance of zswap
1874+
18751875
N: Jeremy Kerr
18761876
D: Maintainer of SPU File System
18771877

@@ -2188,19 +2188,6 @@ N: Mike Kravetz
21882188
E: mike.kravetz@oracle.com
21892189
D: Maintenance and development of the hugetlb subsystem
21902190

2191-
N: Seth Jennings
2192-
E: sjenning@redhat.com
2193-
D: Creation and maintenance of zswap
2194-
2195-
N: Dan Streetman
2196-
E: ddstreet@ieee.org
2197-
D: Maintenance and development of zswap
2198-
D: Creation and maintenance of the zpool API
2199-
2200-
N: Vitaly Wool
2201-
E: vitaly.wool@konsulko.com
2202-
D: Maintenance and development of zswap
2203-
22042191
N: Andreas S. Krebs
22052192
E: akrebs@altavista.net
22062193
D: CYPRESS CY82C693 chipset IDE, Digital's PC-Alpha 164SX boards
@@ -3191,6 +3178,11 @@ N: Ken Pizzini
31913178
E: ken@halcyon.com
31923179
D: CDROM driver "sonycd535" (Sony CDU-535/531)
31933180

3181+
N: Mathieu Poirier
3182+
E: mathieu.poirier@linaro.org
3183+
D: CoreSight kernel subsystem, Maintainer 2014-2022
3184+
D: Perf tool support for CoreSight
3185+
31943186
N: Stelian Pop
31953187
E: stelian@popies.net
31963188
P: 1024D/EDBB6147 7B36 0E07 04BC 11DC A7A0 D3F7 7185 9E7A EDBB 6147
@@ -3300,6 +3292,10 @@ S: Schlossbergring 9
33003292
S: 79098 Freiburg
33013293
S: Germany
33023294

3295+
N: Gerrit Renker
3296+
E: gerrit@erg.abdn.ac.uk
3297+
D: DCCP protocol support.
3298+
33033299
N: Thomas Renninger
33043300
E: trenn@suse.de
33053301
D: cpupowerutils
@@ -3576,11 +3572,6 @@ D: several improvements to system programs
35763572
S: Oldenburg
35773573
S: Germany
35783574

3579-
N: Mathieu Poirier
3580-
E: mathieu.poirier@linaro.org
3581-
D: CoreSight kernel subsystem, Maintainer 2014-2022
3582-
D: Perf tool support for CoreSight
3583-
35843575
N: Robert Schwebel
35853576
E: robert@schwebel.de
35863577
W: https://www.schwebel.de
@@ -3771,6 +3762,11 @@ S: Chr. Winthersvej 1 B, st.th.
37713762
S: DK-1860 Frederiksberg C
37723763
S: Denmark
37733764

3765+
N: Dan Streetman
3766+
E: ddstreet@ieee.org
3767+
D: Maintenance and development of zswap
3768+
D: Creation and maintenance of the zpool API
3769+
37743770
N: Drew Sullivan
37753771
E: drew@ss.org
37763772
W: http://www.ss.org/
@@ -4286,6 +4282,10 @@ S: Pipers Way
42864282
S: Swindon. SN3 1RJ
42874283
S: England
42884284

4285+
N: Vitaly Wool
4286+
E: vitaly.wool@konsulko.com
4287+
D: Maintenance and development of zswap
4288+
42894289
N: Chris Wright
42904290
E: chrisw@sous-sol.org
42914291
D: hacking on LSM framework and security modules.

Documentation/admin-guide/LSM/ipe.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,10 @@ are signed through the PKCS#7 message format to enforce some level of
223223
authorization of the policies (prohibiting an attacker from gaining
224224
unconstrained root, and deploying an "allow all" policy). These
225225
policies must be signed by a certificate that chains to the
226-
``SYSTEM_TRUSTED_KEYRING``. With openssl, the policy can be signed by::
226+
``SYSTEM_TRUSTED_KEYRING``, or to the secondary and/or platform keyrings if
227+
``CONFIG_IPE_POLICY_SIG_SECONDARY_KEYRING`` and/or
228+
``CONFIG_IPE_POLICY_SIG_PLATFORM_KEYRING`` are enabled, respectively.
229+
With openssl, the policy can be signed by::
227230

228231
openssl smime -sign \
229232
-in "$MY_POLICY" \
@@ -266,7 +269,7 @@ in the kernel. This file is write-only and accepts a PKCS#7 signed
266269
policy. Two checks will always be performed on this policy: First, the
267270
``policy_names`` must match with the updated version and the existing
268271
version. Second the updated policy must have a policy version greater than
269-
or equal to the currently-running version. This is to prevent rollback attacks.
272+
the currently-running version. This is to prevent rollback attacks.
270273

271274
The ``delete`` file is used to remove a policy that is no longer needed.
272275
This file is write-only and accepts a value of ``1`` to delete the policy.

Documentation/core-api/protection-keys.rst

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ Pkeys Userspace (PKU) is a feature which can be found on:
1212
* Intel server CPUs, Skylake and later
1313
* Intel client CPUs, Tiger Lake (11th Gen Core) and later
1414
* Future AMD CPUs
15+
* arm64 CPUs implementing the Permission Overlay Extension (FEAT_S1POE)
1516

17+
x86_64
18+
======
1619
Pkeys work by dedicating 4 previously Reserved bits in each page table entry to
1720
a "protection key", giving 16 possible keys.
1821

@@ -28,6 +31,22 @@ register. The feature is only available in 64-bit mode, even though there is
2831
theoretically space in the PAE PTEs. These permissions are enforced on data
2932
access only and have no effect on instruction fetches.
3033

34+
arm64
35+
=====
36+
37+
Pkeys use 3 bits in each page table entry, to encode a "protection key index",
38+
giving 8 possible keys.
39+
40+
Protections for each key are defined with a per-CPU user-writable system
41+
register (POR_EL0). This is a 64-bit register encoding read, write and execute
42+
overlay permissions for each protection key index.
43+
44+
Being a CPU register, POR_EL0 is inherently thread-local, potentially giving
45+
each thread a different set of protections from every other thread.
46+
47+
Unlike x86_64, the protection key permissions also apply to instruction
48+
fetches.
49+
3150
Syscalls
3251
========
3352

@@ -38,11 +57,10 @@ There are 3 system calls which directly interact with pkeys::
3857
int pkey_mprotect(unsigned long start, size_t len,
3958
unsigned long prot, int pkey);
4059

41-
Before a pkey can be used, it must first be allocated with
42-
pkey_alloc(). An application calls the WRPKRU instruction
43-
directly in order to change access permissions to memory covered
44-
with a key. In this example WRPKRU is wrapped by a C function
45-
called pkey_set().
60+
Before a pkey can be used, it must first be allocated with pkey_alloc(). An
61+
application writes to the architecture specific CPU register directly in order
62+
to change access permissions to memory covered with a key. In this example
63+
this is wrapped by a C function called pkey_set().
4664
::
4765

4866
int real_prot = PROT_READ|PROT_WRITE;
@@ -64,9 +82,9 @@ is no longer in use::
6482
munmap(ptr, PAGE_SIZE);
6583
pkey_free(pkey);
6684

67-
.. note:: pkey_set() is a wrapper for the RDPKRU and WRPKRU instructions.
68-
An example implementation can be found in
69-
tools/testing/selftests/x86/protection_keys.c.
85+
.. note:: pkey_set() is a wrapper around writing to the CPU register.
86+
Example implementations can be found in
87+
tools/testing/selftests/mm/pkey-{arm64,powerpc,x86}.h
7088

7189
Behavior
7290
========
@@ -96,3 +114,7 @@ with a read()::
96114
The kernel will send a SIGSEGV in both cases, but si_code will be set
97115
to SEGV_PKERR when violating protection keys versus SEGV_ACCERR when
98116
the plain mprotect() permissions are violated.
117+
118+
Note that kernel accesses from a kthread (such as io_uring) will use a default
119+
value for the protection key register and so will not be consistent with
120+
userspace's value of the register or mprotect().
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/display/elgin,jg10309-01.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Elgin JG10309-01 SPI-controlled display
8+
9+
maintainers:
10+
- Fabio Estevam <festevam@gmail.com>
11+
12+
description: |
13+
The Elgin JG10309-01 SPI-controlled display is used on the RV1108-Elgin-r1
14+
board and is a custom display.
15+
16+
allOf:
17+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
18+
19+
properties:
20+
compatible:
21+
const: elgin,jg10309-01
22+
23+
reg:
24+
maxItems: 1
25+
26+
spi-max-frequency:
27+
maximum: 24000000
28+
29+
spi-cpha: true
30+
31+
spi-cpol: true
32+
33+
required:
34+
- compatible
35+
- reg
36+
- spi-cpha
37+
- spi-cpol
38+
39+
additionalProperties: false
40+
41+
examples:
42+
- |
43+
spi {
44+
#address-cells = <1>;
45+
#size-cells = <0>;
46+
47+
display@0 {
48+
compatible = "elgin,jg10309-01";
49+
reg = <0>;
50+
spi-max-frequency = <24000000>;
51+
spi-cpha;
52+
spi-cpol;
53+
};
54+
};

Documentation/devicetree/bindings/iio/dac/adi,ad5686.yaml

Lines changed: 17 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -4,49 +4,30 @@
44
$id: http://devicetree.org/schemas/iio/dac/adi,ad5686.yaml#
55
$schema: http://devicetree.org/meta-schemas/core.yaml#
66

7-
title: Analog Devices AD5360 and similar DACs
7+
title: Analog Devices AD5360 and similar SPI DACs
88

99
maintainers:
1010
- Michael Hennerich <michael.hennerich@analog.com>
1111
- Jonathan Cameron <jic23@kernel.org>
1212

1313
properties:
1414
compatible:
15-
oneOf:
16-
- description: SPI devices
17-
enum:
18-
- adi,ad5310r
19-
- adi,ad5672r
20-
- adi,ad5674r
21-
- adi,ad5676
22-
- adi,ad5676r
23-
- adi,ad5679r
24-
- adi,ad5681r
25-
- adi,ad5682r
26-
- adi,ad5683
27-
- adi,ad5683r
28-
- adi,ad5684
29-
- adi,ad5684r
30-
- adi,ad5685r
31-
- adi,ad5686
32-
- adi,ad5686r
33-
- description: I2C devices
34-
enum:
35-
- adi,ad5311r
36-
- adi,ad5337r
37-
- adi,ad5338r
38-
- adi,ad5671r
39-
- adi,ad5675r
40-
- adi,ad5691r
41-
- adi,ad5692r
42-
- adi,ad5693
43-
- adi,ad5693r
44-
- adi,ad5694
45-
- adi,ad5694r
46-
- adi,ad5695r
47-
- adi,ad5696
48-
- adi,ad5696r
49-
15+
enum:
16+
- adi,ad5310r
17+
- adi,ad5672r
18+
- adi,ad5674r
19+
- adi,ad5676
20+
- adi,ad5676r
21+
- adi,ad5679r
22+
- adi,ad5681r
23+
- adi,ad5682r
24+
- adi,ad5683
25+
- adi,ad5683r
26+
- adi,ad5684
27+
- adi,ad5684r
28+
- adi,ad5685r
29+
- adi,ad5686
30+
- adi,ad5686r
5031

5132
reg:
5233
maxItems: 1

Documentation/devicetree/bindings/iio/dac/adi,ad5696.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
$id: http://devicetree.org/schemas/iio/dac/adi,ad5696.yaml#
55
$schema: http://devicetree.org/meta-schemas/core.yaml#
66

7-
title: Analog Devices AD5696 and similar multi-channel DACs
7+
title: Analog Devices AD5696 and similar I2C multi-channel DACs
88

99
maintainers:
1010
- Michael Auchter <michael.auchter@ni.com>
@@ -16,6 +16,7 @@ properties:
1616
compatible:
1717
enum:
1818
- adi,ad5311r
19+
- adi,ad5337r
1920
- adi,ad5338r
2021
- adi,ad5671r
2122
- adi,ad5675r

0 commit comments

Comments
 (0)