Skip to content

Commit 6b0a7f8

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflict resolution of af_smc.c from Stephen Rothwell. Signed-off-by: David S. Miller <davem@davemloft.net>
2 parents cea0aa9 + fe5cdef commit 6b0a7f8

File tree

350 files changed

+3831
-1901
lines changed

Some content is hidden

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

350 files changed

+3831
-1901
lines changed

.clang-format

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ ForEachMacros:
7878
- 'ata_qc_for_each_with_internal'
7979
- 'ax25_for_each'
8080
- 'ax25_uid_for_each'
81+
- '__bio_for_each_bvec'
82+
- 'bio_for_each_bvec'
8183
- 'bio_for_each_integrity_vec'
8284
- '__bio_for_each_segment'
8385
- 'bio_for_each_segment'
@@ -118,10 +120,12 @@ ForEachMacros:
118120
- 'drm_for_each_legacy_plane'
119121
- 'drm_for_each_plane'
120122
- 'drm_for_each_plane_mask'
123+
- 'drm_for_each_privobj'
121124
- 'drm_mm_for_each_hole'
122125
- 'drm_mm_for_each_node'
123126
- 'drm_mm_for_each_node_in_range'
124127
- 'drm_mm_for_each_node_safe'
128+
- 'flow_action_for_each'
125129
- 'for_each_active_drhd_unit'
126130
- 'for_each_active_iommu'
127131
- 'for_each_available_child_of_node'
@@ -158,6 +162,9 @@ ForEachMacros:
158162
- 'for_each_dss_dev'
159163
- 'for_each_efi_memory_desc'
160164
- 'for_each_efi_memory_desc_in_map'
165+
- 'for_each_element'
166+
- 'for_each_element_extid'
167+
- 'for_each_element_id'
161168
- 'for_each_endpoint_of_node'
162169
- 'for_each_evictable_lru'
163170
- 'for_each_fib6_node_rt_rcu'
@@ -195,6 +202,7 @@ ForEachMacros:
195202
- 'for_each_net_rcu'
196203
- 'for_each_new_connector_in_state'
197204
- 'for_each_new_crtc_in_state'
205+
- 'for_each_new_mst_mgr_in_state'
198206
- 'for_each_new_plane_in_state'
199207
- 'for_each_new_private_obj_in_state'
200208
- 'for_each_node'
@@ -210,8 +218,10 @@ ForEachMacros:
210218
- 'for_each_of_pci_range'
211219
- 'for_each_old_connector_in_state'
212220
- 'for_each_old_crtc_in_state'
221+
- 'for_each_old_mst_mgr_in_state'
213222
- 'for_each_oldnew_connector_in_state'
214223
- 'for_each_oldnew_crtc_in_state'
224+
- 'for_each_oldnew_mst_mgr_in_state'
215225
- 'for_each_oldnew_plane_in_state'
216226
- 'for_each_oldnew_plane_in_state_reverse'
217227
- 'for_each_oldnew_private_obj_in_state'
@@ -243,6 +253,9 @@ ForEachMacros:
243253
- 'for_each_sg_dma_page'
244254
- 'for_each_sg_page'
245255
- 'for_each_sibling_event'
256+
- 'for_each_subelement'
257+
- 'for_each_subelement_extid'
258+
- 'for_each_subelement_id'
246259
- '__for_each_thread'
247260
- 'for_each_thread'
248261
- 'for_each_zone'
@@ -252,6 +265,8 @@ ForEachMacros:
252265
- 'fwnode_for_each_child_node'
253266
- 'fwnode_graph_for_each_endpoint'
254267
- 'gadget_for_each_ep'
268+
- 'genradix_for_each'
269+
- 'genradix_for_each_from'
255270
- 'hash_for_each'
256271
- 'hash_for_each_possible'
257272
- 'hash_for_each_possible_rcu'
@@ -293,7 +308,11 @@ ForEachMacros:
293308
- 'key_for_each'
294309
- 'key_for_each_safe'
295310
- 'klp_for_each_func'
311+
- 'klp_for_each_func_safe'
312+
- 'klp_for_each_func_static'
296313
- 'klp_for_each_object'
314+
- 'klp_for_each_object_safe'
315+
- 'klp_for_each_object_static'
297316
- 'kvm_for_each_memslot'
298317
- 'kvm_for_each_vcpu'
299318
- 'list_for_each'
@@ -324,6 +343,8 @@ ForEachMacros:
324343
- 'media_device_for_each_intf'
325344
- 'media_device_for_each_link'
326345
- 'media_device_for_each_pad'
346+
- 'mp_bvec_for_each_page'
347+
- 'mp_bvec_for_each_segment'
327348
- 'nanddev_io_for_each_page'
328349
- 'netdev_for_each_lower_dev'
329350
- 'netdev_for_each_lower_private'
@@ -375,6 +396,7 @@ ForEachMacros:
375396
- 'rht_for_each_rcu'
376397
- 'rht_for_each_rcu_from'
377398
- '__rq_for_each_bio'
399+
- 'rq_for_each_bvec'
378400
- 'rq_for_each_segment'
379401
- 'scsi_for_each_prot_sg'
380402
- 'scsi_for_each_sg'
@@ -410,6 +432,8 @@ ForEachMacros:
410432
- 'v4l2_m2m_for_each_src_buf_safe'
411433
- 'virtio_device_for_each_vq'
412434
- 'xa_for_each'
435+
- 'xa_for_each_marked'
436+
- 'xa_for_each_start'
413437
- 'xas_for_each'
414438
- 'xas_for_each_conflict'
415439
- 'xas_for_each_marked'

Documentation/networking/rxrpc.txt

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,16 +1009,18 @@ The kernel interface functions are as follows:
10091009

10101010
(*) Check call still alive.
10111011

1012-
u32 rxrpc_kernel_check_life(struct socket *sock,
1013-
struct rxrpc_call *call);
1012+
bool rxrpc_kernel_check_life(struct socket *sock,
1013+
struct rxrpc_call *call,
1014+
u32 *_life);
10141015
void rxrpc_kernel_probe_life(struct socket *sock,
10151016
struct rxrpc_call *call);
10161017

1017-
The first function returns a number that is updated when ACKs are received
1018-
from the peer (notably including PING RESPONSE ACKs which we can elicit by
1019-
sending PING ACKs to see if the call still exists on the server). The
1020-
caller should compare the numbers of two calls to see if the call is still
1021-
alive after waiting for a suitable interval.
1018+
The first function passes back in *_life a number that is updated when
1019+
ACKs are received from the peer (notably including PING RESPONSE ACKs
1020+
which we can elicit by sending PING ACKs to see if the call still exists
1021+
on the server). The caller should compare the numbers of two calls to see
1022+
if the call is still alive after waiting for a suitable interval. It also
1023+
returns true as long as the call hasn't yet reached the completed state.
10221024

10231025
This allows the caller to work out if the server is still contactable and
10241026
if the call is still alive on the server while waiting for the server to

MAINTAINERS

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10139,7 +10139,7 @@ F: drivers/spi/spi-at91-usart.c
1013910139
F: Documentation/devicetree/bindings/mfd/atmel-usart.txt
1014010140

1014110141
MICROCHIP KSZ SERIES ETHERNET SWITCH DRIVER
10142-
M: Woojung Huh <Woojung.Huh@microchip.com>
10142+
M: Woojung Huh <woojung.huh@microchip.com>
1014310143
M: Microchip Linux Driver Support <UNGLinuxDriver@microchip.com>
1014410144
L: netdev@vger.kernel.org
1014510145
S: Maintained
@@ -16503,7 +16503,7 @@ F: drivers/char/virtio_console.c
1650316503
F: include/linux/virtio_console.h
1650416504
F: include/uapi/linux/virtio_console.h
1650516505

16506-
VIRTIO CORE, NET AND BLOCK DRIVERS
16506+
VIRTIO CORE AND NET DRIVERS
1650716507
M: "Michael S. Tsirkin" <mst@redhat.com>
1650816508
M: Jason Wang <jasowang@redhat.com>
1650916509
L: virtualization@lists.linux-foundation.org
@@ -16518,6 +16518,19 @@ F: include/uapi/linux/virtio_*.h
1651816518
F: drivers/crypto/virtio/
1651916519
F: mm/balloon_compaction.c
1652016520

16521+
VIRTIO BLOCK AND SCSI DRIVERS
16522+
M: "Michael S. Tsirkin" <mst@redhat.com>
16523+
M: Jason Wang <jasowang@redhat.com>
16524+
R: Paolo Bonzini <pbonzini@redhat.com>
16525+
R: Stefan Hajnoczi <stefanha@redhat.com>
16526+
L: virtualization@lists.linux-foundation.org
16527+
S: Maintained
16528+
F: drivers/block/virtio_blk.c
16529+
F: drivers/scsi/virtio_scsi.c
16530+
F: include/uapi/linux/virtio_blk.h
16531+
F: include/uapi/linux/virtio_scsi.h
16532+
F: drivers/vhost/scsi.c
16533+
1652116534
VIRTIO CRYPTO DRIVER
1652216535
M: Gonglei <arei.gonglei@huawei.com>
1652316536
L: virtualization@lists.linux-foundation.org

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
VERSION = 5
33
PATCHLEVEL = 1
44
SUBLEVEL = 0
5-
EXTRAVERSION = -rc4
5+
EXTRAVERSION = -rc5
66
NAME = Shy Crocodile
77

88
# *DOCUMENTATION*

arch/arm64/include/asm/futex.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ do { \
3030
" prfm pstl1strm, %2\n" \
3131
"1: ldxr %w1, %2\n" \
3232
insn "\n" \
33-
"2: stlxr %w3, %w0, %2\n" \
34-
" cbnz %w3, 1b\n" \
33+
"2: stlxr %w0, %w3, %2\n" \
34+
" cbnz %w0, 1b\n" \
3535
" dmb ish\n" \
3636
"3:\n" \
3737
" .pushsection .fixup,\"ax\"\n" \
@@ -50,30 +50,30 @@ do { \
5050
static inline int
5151
arch_futex_atomic_op_inuser(int op, int oparg, int *oval, u32 __user *_uaddr)
5252
{
53-
int oldval = 0, ret, tmp;
53+
int oldval, ret, tmp;
5454
u32 __user *uaddr = __uaccess_mask_ptr(_uaddr);
5555

5656
pagefault_disable();
5757

5858
switch (op) {
5959
case FUTEX_OP_SET:
60-
__futex_atomic_op("mov %w0, %w4",
60+
__futex_atomic_op("mov %w3, %w4",
6161
ret, oldval, uaddr, tmp, oparg);
6262
break;
6363
case FUTEX_OP_ADD:
64-
__futex_atomic_op("add %w0, %w1, %w4",
64+
__futex_atomic_op("add %w3, %w1, %w4",
6565
ret, oldval, uaddr, tmp, oparg);
6666
break;
6767
case FUTEX_OP_OR:
68-
__futex_atomic_op("orr %w0, %w1, %w4",
68+
__futex_atomic_op("orr %w3, %w1, %w4",
6969
ret, oldval, uaddr, tmp, oparg);
7070
break;
7171
case FUTEX_OP_ANDN:
72-
__futex_atomic_op("and %w0, %w1, %w4",
72+
__futex_atomic_op("and %w3, %w1, %w4",
7373
ret, oldval, uaddr, tmp, ~oparg);
7474
break;
7575
case FUTEX_OP_XOR:
76-
__futex_atomic_op("eor %w0, %w1, %w4",
76+
__futex_atomic_op("eor %w3, %w1, %w4",
7777
ret, oldval, uaddr, tmp, oparg);
7878
break;
7979
default:

arch/arm64/include/asm/module.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,9 @@ static inline bool is_forbidden_offset_for_adrp(void *place)
7373
struct plt_entry get_plt_entry(u64 dst, void *pc);
7474
bool plt_entries_equal(const struct plt_entry *a, const struct plt_entry *b);
7575

76+
static inline bool plt_entry_is_initialized(const struct plt_entry *e)
77+
{
78+
return e->adrp || e->add || e->br;
79+
}
80+
7681
#endif /* __ASM_MODULE_H */

arch/arm64/kernel/ftrace.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,7 @@ int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr)
107107
trampoline = get_plt_entry(addr, mod->arch.ftrace_trampoline);
108108
if (!plt_entries_equal(mod->arch.ftrace_trampoline,
109109
&trampoline)) {
110-
if (!plt_entries_equal(mod->arch.ftrace_trampoline,
111-
&(struct plt_entry){})) {
110+
if (plt_entry_is_initialized(mod->arch.ftrace_trampoline)) {
112111
pr_err("ftrace: far branches to multiple entry points unsupported inside a single module\n");
113112
return -EINVAL;
114113
}

arch/arm64/kernel/traps.c

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,16 @@ static void dump_instr(const char *lvl, struct pt_regs *regs)
102102
void dump_backtrace(struct pt_regs *regs, struct task_struct *tsk)
103103
{
104104
struct stackframe frame;
105-
int skip;
105+
int skip = 0;
106106

107107
pr_debug("%s(regs = %p tsk = %p)\n", __func__, regs, tsk);
108108

109+
if (regs) {
110+
if (user_mode(regs))
111+
return;
112+
skip = 1;
113+
}
114+
109115
if (!tsk)
110116
tsk = current;
111117

@@ -126,7 +132,6 @@ void dump_backtrace(struct pt_regs *regs, struct task_struct *tsk)
126132
frame.graph = 0;
127133
#endif
128134

129-
skip = !!regs;
130135
printk("Call trace:\n");
131136
do {
132137
/* skip until specified stack frame */
@@ -176,15 +181,13 @@ static int __die(const char *str, int err, struct pt_regs *regs)
176181
return ret;
177182

178183
print_modules();
179-
__show_regs(regs);
180184
pr_emerg("Process %.*s (pid: %d, stack limit = 0x%p)\n",
181185
TASK_COMM_LEN, tsk->comm, task_pid_nr(tsk),
182186
end_of_stack(tsk));
187+
show_regs(regs);
183188

184-
if (!user_mode(regs)) {
185-
dump_backtrace(regs, tsk);
189+
if (!user_mode(regs))
186190
dump_instr(KERN_EMERG, regs);
187-
}
188191

189192
return ret;
190193
}

arch/mips/configs/generic/board-ocelot.config

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# require CONFIG_CPU_MIPS32_R2=y
22

33
CONFIG_LEGACY_BOARD_OCELOT=y
4+
CONFIG_FIT_IMAGE_FDT_OCELOT=y
5+
6+
CONFIG_BRIDGE=y
7+
CONFIG_GENERIC_PHY=y
48

59
CONFIG_MTD=y
610
CONFIG_MTD_CMDLINE_PARTS=y
@@ -19,6 +23,8 @@ CONFIG_SERIAL_8250_CONSOLE=y
1923
CONFIG_SERIAL_OF_PLATFORM=y
2024

2125
CONFIG_NETDEVICES=y
26+
CONFIG_NET_SWITCHDEV=y
27+
CONFIG_NET_DSA=y
2228
CONFIG_MSCC_OCELOT_SWITCH=y
2329
CONFIG_MSCC_OCELOT_SWITCH_OCELOT=y
2430
CONFIG_MDIO_MSCC_MIIM=y
@@ -35,6 +41,8 @@ CONFIG_SPI_DESIGNWARE=y
3541
CONFIG_SPI_DW_MMIO=y
3642
CONFIG_SPI_SPIDEV=y
3743

44+
CONFIG_PINCTRL_OCELOT=y
45+
3846
CONFIG_GPIO_SYSFS=y
3947

4048
CONFIG_POWER_RESET=y

arch/mips/kernel/kgdb.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include <asm/processor.h>
3434
#include <asm/sigcontext.h>
3535
#include <linux/uaccess.h>
36+
#include <asm/irq_regs.h>
3637

3738
static struct hard_trap_info {
3839
unsigned char tt; /* Trap type code for MIPS R3xxx and R4xxx */
@@ -214,7 +215,7 @@ void kgdb_call_nmi_hook(void *ignored)
214215
old_fs = get_fs();
215216
set_fs(KERNEL_DS);
216217

217-
kgdb_nmicallback(raw_smp_processor_id(), NULL);
218+
kgdb_nmicallback(raw_smp_processor_id(), get_irq_regs());
218219

219220
set_fs(old_fs);
220221
}

0 commit comments

Comments
 (0)