Skip to content

Commit 4bfaa80

Browse files
authored
Merge pull request #399 from ojeda/sync
Sync to v5.13
2 parents c76ea62 + 5cf50dd commit 4bfaa80

File tree

521 files changed

+5045
-2379
lines changed

Some content is hidden

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

521 files changed

+5045
-2379
lines changed

.clang-format

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ ForEachMacros:
109109
- 'css_for_each_child'
110110
- 'css_for_each_descendant_post'
111111
- 'css_for_each_descendant_pre'
112-
- 'cxl_for_each_cmd'
113112
- 'device_for_each_child_node'
113+
- 'displayid_iter_for_each'
114114
- 'dma_fence_chain_for_each'
115115
- 'do_for_each_ftrace_op'
116116
- 'drm_atomic_crtc_for_each_plane'
@@ -136,6 +136,7 @@ ForEachMacros:
136136
- 'drm_mm_for_each_node_in_range'
137137
- 'drm_mm_for_each_node_safe'
138138
- 'flow_action_for_each'
139+
- 'for_each_acpi_dev_match'
139140
- 'for_each_active_dev_scope'
140141
- 'for_each_active_drhd_unit'
141142
- 'for_each_active_iommu'
@@ -171,14 +172,14 @@ ForEachMacros:
171172
- 'for_each_dapm_widgets'
172173
- 'for_each_dev_addr'
173174
- 'for_each_dev_scope'
174-
- 'for_each_displayid_db'
175175
- 'for_each_dma_cap_mask'
176176
- 'for_each_dpcm_be'
177177
- 'for_each_dpcm_be_rollback'
178178
- 'for_each_dpcm_be_safe'
179179
- 'for_each_dpcm_fe'
180180
- 'for_each_drhd_unit'
181181
- 'for_each_dss_dev'
182+
- 'for_each_dtpm_table'
182183
- 'for_each_efi_memory_desc'
183184
- 'for_each_efi_memory_desc_in_map'
184185
- 'for_each_element'
@@ -215,6 +216,7 @@ ForEachMacros:
215216
- 'for_each_migratetype_order'
216217
- 'for_each_msi_entry'
217218
- 'for_each_msi_entry_safe'
219+
- 'for_each_msi_vector'
218220
- 'for_each_net'
219221
- 'for_each_net_continue_reverse'
220222
- 'for_each_netdev'
@@ -270,6 +272,12 @@ ForEachMacros:
270272
- 'for_each_prime_number_from'
271273
- 'for_each_process'
272274
- 'for_each_process_thread'
275+
- 'for_each_prop_codec_conf'
276+
- 'for_each_prop_dai_codec'
277+
- 'for_each_prop_dai_cpu'
278+
- 'for_each_prop_dlc_codecs'
279+
- 'for_each_prop_dlc_cpus'
280+
- 'for_each_prop_dlc_platforms'
273281
- 'for_each_property_of_node'
274282
- 'for_each_registered_fb'
275283
- 'for_each_requested_gpio'
@@ -430,6 +438,7 @@ ForEachMacros:
430438
- 'queue_for_each_hw_ctx'
431439
- 'radix_tree_for_each_slot'
432440
- 'radix_tree_for_each_tagged'
441+
- 'rb_for_each'
433442
- 'rbtree_postorder_for_each_entry_safe'
434443
- 'rdma_for_each_block'
435444
- 'rdma_for_each_port'

.mailmap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,8 @@ Manivannan Sadhasivam <[email protected]> <[email protected]>
212212
Manivannan Sadhasivam <[email protected]> <[email protected]>
213213
214214
215+
216+
Marek Behún <[email protected]> Marek Behun <[email protected]>
215217
Mark Brown <[email protected]>
216218
217219

Documentation/devicetree/bindings/connector/usb-connector.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,17 @@ properties:
149149
maxItems: 6
150150
$ref: /schemas/types.yaml#/definitions/uint32-array
151151

152+
sink-vdos-v1:
153+
description: An array of u32 with each entry, a Vendor Defined Message Object (VDO),
154+
providing additional information corresponding to the product, the detailed bit
155+
definitions and the order of each VDO can be found in
156+
"USB Power Delivery Specification Revision 2.0, Version 1.3" chapter 6.4.4.3.1 Discover
157+
Identity. User can specify the VDO array via VDO_IDH/_CERT/_PRODUCT/_CABLE/_AMA defined in
158+
dt-bindings/usb/pd.h.
159+
minItems: 3
160+
maxItems: 6
161+
$ref: /schemas/types.yaml#/definitions/uint32-array
162+
152163
op-sink-microwatt:
153164
description: Sink required operating power in microwatt, if source can't
154165
offer the power, Capability Mismatch is set. Required for power sink and
@@ -207,6 +218,10 @@ properties:
207218
SNK_READY for non-pd link.
208219
type: boolean
209220

221+
dependencies:
222+
sink-vdos-v1: [ 'sink-vdos' ]
223+
sink-vdos: [ 'sink-vdos-v1' ]
224+
210225
required:
211226
- compatible
212227

Documentation/devicetree/bindings/hwmon/ti,ads7828.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ examples:
4949
#size-cells = <0>;
5050
5151
adc@48 {
52-
comatible = "ti,ads7828";
52+
compatible = "ti,ads7828";
5353
reg = <0x48>;
5454
vref-supply = <&vref>;
5555
ti,differential-input;

Documentation/devicetree/bindings/media/renesas,drif.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ properties:
6767
maxItems: 1
6868

6969
clock-names:
70-
maxItems: 1
71-
items:
72-
- const: fck
70+
const: fck
7371

7472
resets:
7573
maxItems: 1

Documentation/devicetree/bindings/sound/amlogic,gx-sound-card.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ patternProperties:
5757
rate
5858
5959
sound-dai:
60-
$ref: /schemas/types.yaml#/definitions/phandle
60+
$ref: /schemas/types.yaml#/definitions/phandle-array
6161
description: phandle of the CPU DAI
6262

6363
patternProperties:
@@ -71,7 +71,7 @@ patternProperties:
7171
7272
properties:
7373
sound-dai:
74-
$ref: /schemas/types.yaml#/definitions/phandle
74+
$ref: /schemas/types.yaml#/definitions/phandle-array
7575
description: phandle of the codec DAI
7676

7777
required:

Documentation/riscv/vm-layout.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ RISC-V Linux Kernel SV39
5858
|
5959
____________________________________________________________|____________________________________________________________
6060
| | | |
61-
ffffffff00000000 | -4 GB | ffffffff7fffffff | 2 GB | modules
62-
ffffffff80000000 | -2 GB | ffffffffffffffff | 2 GB | kernel, BPF
61+
ffffffff00000000 | -4 GB | ffffffff7fffffff | 2 GB | modules, BPF
62+
ffffffff80000000 | -2 GB | ffffffffffffffff | 2 GB | kernel
6363
__________________|____________|__________________|_________|____________________________________________________________

Documentation/virt/kvm/mmu.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ Shadow pages contain the following information:
171171
shadow pages) so role.quadrant takes values in the range 0..3. Each
172172
quadrant maps 1GB virtual address space.
173173
role.access:
174-
Inherited guest access permissions in the form uwx. Note execute
175-
permission is positive, not negative.
174+
Inherited guest access permissions from the parent ptes in the form uwx.
175+
Note execute permission is positive, not negative.
176176
role.invalid:
177177
The page is invalid and should not be used. It is a root page that is
178178
currently pinned (by a cpu hardware register pointing to it); once it is

Documentation/vm/slub.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,18 +181,18 @@ SLUB Debug output
181181
Here is a sample of slub debug output::
182182

183183
====================================================================
184-
BUG kmalloc-8: Redzone overwritten
184+
BUG kmalloc-8: Right Redzone overwritten
185185
--------------------------------------------------------------------
186186

187187
INFO: 0xc90f6d28-0xc90f6d2b. First byte 0x00 instead of 0xcc
188188
INFO: Slab 0xc528c530 flags=0x400000c3 inuse=61 fp=0xc90f6d58
189189
INFO: Object 0xc90f6d20 @offset=3360 fp=0xc90f6d58
190190
INFO: Allocated in get_modalias+0x61/0xf5 age=53 cpu=1 pid=554
191191

192-
Bytes b4 0xc90f6d10: 00 00 00 00 00 00 00 00 5a 5a 5a 5a 5a 5a 5a 5a ........ZZZZZZZZ
193-
Object 0xc90f6d20: 31 30 31 39 2e 30 30 35 1019.005
194-
Redzone 0xc90f6d28: 00 cc cc cc .
195-
Padding 0xc90f6d50: 5a 5a 5a 5a 5a 5a 5a 5a ZZZZZZZZ
192+
Bytes b4 (0xc90f6d10): 00 00 00 00 00 00 00 00 5a 5a 5a 5a 5a 5a 5a 5a ........ZZZZZZZZ
193+
Object (0xc90f6d20): 31 30 31 39 2e 30 30 35 1019.005
194+
Redzone (0xc90f6d28): 00 cc cc cc .
195+
Padding (0xc90f6d50): 5a 5a 5a 5a 5a 5a 5a 5a ZZZZZZZZ
196196

197197
[<c010523d>] dump_trace+0x63/0x1eb
198198
[<c01053df>] show_trace_log_lvl+0x1a/0x2f

MAINTAINERS

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1816,7 +1816,7 @@ F: drivers/pinctrl/pinctrl-gemini.c
18161816
F: drivers/rtc/rtc-ftrtc010.c
18171817

18181818
ARM/CZ.NIC TURRIS SUPPORT
1819-
M: Marek Behun <[email protected]>
1819+
M: Marek Behún <[email protected]>
18201820
S: Maintained
18211821
W: https://www.turris.cz/
18221822
F: Documentation/ABI/testing/debugfs-moxtet
@@ -7354,7 +7354,6 @@ F: drivers/net/ethernet/freescale/fs_enet/
73547354
F: include/linux/fs_enet_pd.h
73557355

73567356
FREESCALE SOC SOUND DRIVERS
7357-
M: Timur Tabi <[email protected]>
73587357
M: Nicolin Chen <[email protected]>
73597358
M: Xiubo Li <[email protected]>
73607359
R: Fabio Estevam <[email protected]>
@@ -10946,7 +10945,7 @@ F: include/linux/mv643xx.h
1094610945

1094710946
MARVELL MV88X3310 PHY DRIVER
1094810947
M: Russell King <[email protected]>
10949-
M: Marek Behun <[email protected]>
10948+
M: Marek Behún <[email protected]>
1095010949
1095110950
S: Maintained
1095210951
F: drivers/net/phy/marvell10g.c
@@ -16574,6 +16573,7 @@ F: drivers/misc/sgi-xp/
1657416573

1657516574
SHARED MEMORY COMMUNICATIONS (SMC) SOCKETS
1657616575
M: Karsten Graul <[email protected]>
16576+
M: Guvenc Gulce <[email protected]>
1657716577
1657816578
S: Supported
1657916579
W: http://www.ibm.com/developerworks/linux/linux390/
@@ -18887,6 +18887,13 @@ S: Maintained
1888718887
F: drivers/usb/host/isp116x*
1888818888
F: include/linux/usb/isp116x.h
1888918889

18890+
USB ISP1760 DRIVER
18891+
M: Rui Miguel Silva <[email protected]>
18892+
18893+
S: Maintained
18894+
F: drivers/usb/isp1760/*
18895+
F: Documentation/devicetree/bindings/usb/nxp,isp1760.yaml
18896+
1889018897
USB LAN78XX ETHERNET DRIVER
1889118898
M: Woojung Huh <[email protected]>
1889218899

Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
VERSION = 5
33
PATCHLEVEL = 13
44
SUBLEVEL = 0
5-
EXTRAVERSION = -rc5
6-
NAME = Frozen Wasteland
5+
EXTRAVERSION =
6+
NAME = Opossums on Parade
77

88
# *DOCUMENTATION*
99
# To see a list of typical targets execute "make help"
@@ -1011,11 +1011,14 @@ CC_FLAGS_LTO += -fvisibility=hidden
10111011
# Limit inlining across translation units to reduce binary size
10121012
KBUILD_LDFLAGS += -mllvm -import-instr-limit=5
10131013

1014-
# Check for frame size exceeding threshold during prolog/epilog insertion.
1014+
# Check for frame size exceeding threshold during prolog/epilog insertion
1015+
# when using lld < 13.0.0.
10151016
ifneq ($(CONFIG_FRAME_WARN),0)
1017+
ifeq ($(shell test $(CONFIG_LLD_VERSION) -lt 130000; echo $$?),0)
10161018
KBUILD_LDFLAGS += -plugin-opt=-warn-stack-size=$(CONFIG_FRAME_WARN)
10171019
endif
10181020
endif
1021+
endif
10191022

10201023
ifdef CONFIG_LTO
10211024
KBUILD_CFLAGS += -fno-lto $(CC_FLAGS_LTO)

arch/arc/include/uapi/asm/sigcontext.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
*/
1919
struct sigcontext {
2020
struct user_regs_struct regs;
21+
struct user_regs_arcv2 v2abi;
2122
};
2223

2324
#endif /* _ASM_ARC_SIGCONTEXT_H */

arch/arc/kernel/signal.c

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,41 @@ struct rt_sigframe {
6161
unsigned int sigret_magic;
6262
};
6363

64+
static int save_arcv2_regs(struct sigcontext *mctx, struct pt_regs *regs)
65+
{
66+
int err = 0;
67+
#ifndef CONFIG_ISA_ARCOMPACT
68+
struct user_regs_arcv2 v2abi;
69+
70+
v2abi.r30 = regs->r30;
71+
#ifdef CONFIG_ARC_HAS_ACCL_REGS
72+
v2abi.r58 = regs->r58;
73+
v2abi.r59 = regs->r59;
74+
#else
75+
v2abi.r58 = v2abi.r59 = 0;
76+
#endif
77+
err = __copy_to_user(&mctx->v2abi, &v2abi, sizeof(v2abi));
78+
#endif
79+
return err;
80+
}
81+
82+
static int restore_arcv2_regs(struct sigcontext *mctx, struct pt_regs *regs)
83+
{
84+
int err = 0;
85+
#ifndef CONFIG_ISA_ARCOMPACT
86+
struct user_regs_arcv2 v2abi;
87+
88+
err = __copy_from_user(&v2abi, &mctx->v2abi, sizeof(v2abi));
89+
90+
regs->r30 = v2abi.r30;
91+
#ifdef CONFIG_ARC_HAS_ACCL_REGS
92+
regs->r58 = v2abi.r58;
93+
regs->r59 = v2abi.r59;
94+
#endif
95+
#endif
96+
return err;
97+
}
98+
6499
static int
65100
stash_usr_regs(struct rt_sigframe __user *sf, struct pt_regs *regs,
66101
sigset_t *set)
@@ -94,6 +129,10 @@ stash_usr_regs(struct rt_sigframe __user *sf, struct pt_regs *regs,
94129

95130
err = __copy_to_user(&(sf->uc.uc_mcontext.regs.scratch), &uregs.scratch,
96131
sizeof(sf->uc.uc_mcontext.regs.scratch));
132+
133+
if (is_isa_arcv2())
134+
err |= save_arcv2_regs(&(sf->uc.uc_mcontext), regs);
135+
97136
err |= __copy_to_user(&sf->uc.uc_sigmask, set, sizeof(sigset_t));
98137

99138
return err ? -EFAULT : 0;
@@ -109,6 +148,10 @@ static int restore_usr_regs(struct pt_regs *regs, struct rt_sigframe __user *sf)
109148
err |= __copy_from_user(&uregs.scratch,
110149
&(sf->uc.uc_mcontext.regs.scratch),
111150
sizeof(sf->uc.uc_mcontext.regs.scratch));
151+
152+
if (is_isa_arcv2())
153+
err |= restore_arcv2_regs(&(sf->uc.uc_mcontext), regs);
154+
112155
if (err)
113156
return -EFAULT;
114157

arch/arc/kernel/vmlinux.lds.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ SECTIONS
5757
.init.ramfs : { INIT_RAM_FS }
5858

5959
. = ALIGN(PAGE_SIZE);
60-
_stext = .;
6160

6261
HEAD_TEXT_SECTION
6362
INIT_TEXT_SECTION(L1_CACHE_BYTES)
@@ -83,6 +82,7 @@ SECTIONS
8382

8483
.text : {
8584
_text = .;
85+
_stext = .;
8686
TEXT_TEXT
8787
SCHED_TEXT
8888
CPUIDLE_TEXT

arch/arm/include/asm/cpuidle.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77
#ifdef CONFIG_CPU_IDLE
88
extern int arm_cpuidle_simple_enter(struct cpuidle_device *dev,
99
struct cpuidle_driver *drv, int index);
10+
#define __cpuidle_method_section __used __section("__cpuidle_method_of_table")
1011
#else
1112
static inline int arm_cpuidle_simple_enter(struct cpuidle_device *dev,
1213
struct cpuidle_driver *drv, int index) { return -ENODEV; }
14+
#define __cpuidle_method_section __maybe_unused /* drop silently */
1315
#endif
1416

1517
/* Common ARM WFI state */
@@ -42,8 +44,7 @@ struct of_cpuidle_method {
4244

4345
#define CPUIDLE_METHOD_OF_DECLARE(name, _method, _ops) \
4446
static const struct of_cpuidle_method __cpuidle_method_of_table_##name \
45-
__used __section("__cpuidle_method_of_table") \
46-
= { .method = _method, .ops = _ops }
47+
__cpuidle_method_section = { .method = _method, .ops = _ops }
4748

4849
extern int arm_cpuidle_suspend(int index);
4950

0 commit comments

Comments
 (0)