Skip to content

Commit 76c49e6

Browse files
committed
Merge remote-tracking branch 'stable/linux-5.4.y' into rpi-5.4.y
2 parents a80c030 + 2bff021 commit 76c49e6

100 files changed

Lines changed: 705 additions & 521 deletions

File tree

Some content is hidden

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

‎Documentation/devicetree/bindings/net/can/tcan4x5x.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ tcan4x5x: tcan4x5x@0 {
3333
spi-max-frequency = <10000000>;
3434
bosch,mram-cfg = <0x0 0 0 32 0 0 1 1>;
3535
interrupt-parent = <&gpio1>;
36-
interrupts = <14 GPIO_ACTIVE_LOW>;
36+
interrupts = <14 IRQ_TYPE_LEVEL_LOW>;
3737
device-state-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
3838
device-wake-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
3939
reset-gpios = <&gpio1 27 GPIO_ACTIVE_LOW>;

‎Documentation/devicetree/bindings/net/nfc/nxp-nci.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Example (for ARM-based BeagleBone with NPC100 NFC controller on I2C2):
2525
clock-frequency = <100000>;
2626

2727
interrupt-parent = <&gpio1>;
28-
interrupts = <29 GPIO_ACTIVE_HIGH>;
28+
interrupts = <29 IRQ_TYPE_LEVEL_HIGH>;
2929

3030
enable-gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>;
3131
firmware-gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;

‎Documentation/devicetree/bindings/net/nfc/pn544.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Example (for ARM-based BeagleBone with PN544 on I2C2):
2525
clock-frequency = <400000>;
2626

2727
interrupt-parent = <&gpio1>;
28-
interrupts = <17 GPIO_ACTIVE_HIGH>;
28+
interrupts = <17 IRQ_TYPE_LEVEL_HIGH>;
2929

3030
enable-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
3131
firmware-gpios = <&gpio3 19 GPIO_ACTIVE_HIGH>;

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0
22
VERSION = 5
33
PATCHLEVEL = 4
4-
SUBLEVEL = 81
4+
SUBLEVEL = 83
55
EXTRAVERSION =
66
NAME = Kleptomaniac Octopus
77

‎arch/powerpc/platforms/powernv/setup.c‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,16 @@ static void __init pnv_init(void)
186186
add_preferred_console("hvc", 0, NULL);
187187

188188
if (!radix_enabled()) {
189+
size_t size = sizeof(struct slb_entry) * mmu_slb_size;
189190
int i;
190191

191192
/* Allocate per cpu area to save old slb contents during MCE */
192-
for_each_possible_cpu(i)
193-
paca_ptrs[i]->mce_faulty_slbs = memblock_alloc_node(mmu_slb_size, __alignof__(*paca_ptrs[i]->mce_faulty_slbs), cpu_to_node(i));
193+
for_each_possible_cpu(i) {
194+
paca_ptrs[i]->mce_faulty_slbs =
195+
memblock_alloc_node(size,
196+
__alignof__(struct slb_entry),
197+
cpu_to_node(i));
198+
}
194199
}
195200
}
196201

‎arch/powerpc/platforms/pseries/msi.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,8 @@ static int rtas_setup_msi_irqs(struct pci_dev *pdev, int nvec_in, int type)
458458
return hwirq;
459459
}
460460

461-
virq = irq_create_mapping(NULL, hwirq);
461+
virq = irq_create_mapping_affinity(NULL, hwirq,
462+
entry->affinity);
462463

463464
if (!virq) {
464465
pr_debug("rtas_msi: Failed mapping hwirq %d\n", hwirq);

‎arch/x86/include/asm/insn.h‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,21 @@ static inline int insn_offset_immediate(struct insn *insn)
195195
return insn_offset_displacement(insn) + insn->displacement.nbytes;
196196
}
197197

198+
/**
199+
* for_each_insn_prefix() -- Iterate prefixes in the instruction
200+
* @insn: Pointer to struct insn.
201+
* @idx: Index storage.
202+
* @prefix: Prefix byte.
203+
*
204+
* Iterate prefix bytes of given @insn. Each prefix byte is stored in @prefix
205+
* and the index is stored in @idx (note that this @idx is just for a cursor,
206+
* do not change it.)
207+
* Since prefixes.nbytes can be bigger than 4 if some prefixes
208+
* are repeated, it cannot be used for looping over the prefixes.
209+
*/
210+
#define for_each_insn_prefix(insn, idx, prefix) \
211+
for (idx = 0; idx < ARRAY_SIZE(insn->prefixes.bytes) && (prefix = insn->prefixes.bytes[idx]) != 0; idx++)
212+
198213
#define POP_SS_OPCODE 0x1f
199214
#define MOV_SREG_OPCODE 0x8e
200215

‎arch/x86/kernel/uprobes.c‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,12 +255,13 @@ static volatile u32 good_2byte_insns[256 / 32] = {
255255

256256
static bool is_prefix_bad(struct insn *insn)
257257
{
258+
insn_byte_t p;
258259
int i;
259260

260-
for (i = 0; i < insn->prefixes.nbytes; i++) {
261+
for_each_insn_prefix(insn, i, p) {
261262
insn_attr_t attr;
262263

263-
attr = inat_get_opcode_attribute(insn->prefixes.bytes[i]);
264+
attr = inat_get_opcode_attribute(p);
264265
switch (attr) {
265266
case INAT_MAKE_PREFIX(INAT_PFX_ES):
266267
case INAT_MAKE_PREFIX(INAT_PFX_CS):
@@ -715,6 +716,7 @@ static const struct uprobe_xol_ops push_xol_ops = {
715716
static int branch_setup_xol_ops(struct arch_uprobe *auprobe, struct insn *insn)
716717
{
717718
u8 opc1 = OPCODE1(insn);
719+
insn_byte_t p;
718720
int i;
719721

720722
switch (opc1) {
@@ -746,8 +748,8 @@ static int branch_setup_xol_ops(struct arch_uprobe *auprobe, struct insn *insn)
746748
* Intel and AMD behavior differ in 64-bit mode: Intel ignores 66 prefix.
747749
* No one uses these insns, reject any branch insns with such prefix.
748750
*/
749-
for (i = 0; i < insn->prefixes.nbytes; i++) {
750-
if (insn->prefixes.bytes[i] == 0x66)
751+
for_each_insn_prefix(insn, i, p) {
752+
if (p == 0x66)
751753
return -ENOTSUPP;
752754
}
753755

‎arch/x86/lib/insn-eval.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,15 @@ static int get_seg_reg_override_idx(struct insn *insn)
7070
{
7171
int idx = INAT_SEG_REG_DEFAULT;
7272
int num_overrides = 0, i;
73+
insn_byte_t p;
7374

7475
insn_get_prefixes(insn);
7576

7677
/* Look for any segment override prefixes. */
77-
for (i = 0; i < insn->prefixes.nbytes; i++) {
78+
for_each_insn_prefix(insn, i, p) {
7879
insn_attr_t attr;
7980

80-
attr = inat_get_opcode_attribute(insn->prefixes.bytes[i]);
81+
attr = inat_get_opcode_attribute(p);
8182
switch (attr) {
8283
case INAT_MAKE_PREFIX(INAT_PFX_CS):
8384
idx = INAT_SEG_REG_CS;

‎drivers/crypto/chelsio/chtls/chtls_cm.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,6 +1077,7 @@ static struct sock *chtls_recv_sock(struct sock *lsk,
10771077
sk_setup_caps(newsk, dst);
10781078
ctx = tls_get_ctx(lsk);
10791079
newsk->sk_destruct = ctx->sk_destruct;
1080+
newsk->sk_prot_creator = lsk->sk_prot_creator;
10801081
csk->sk = newsk;
10811082
csk->passive_reap_next = oreq;
10821083
csk->tx_chan = cxgb4_port_chan(ndev);

0 commit comments

Comments
 (0)