Skip to content

Commit bd0b33b

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Resolved kernel/bpf/btf.c using instructions from merge commit 69138b3 Signed-off-by: David S. Miller <[email protected]>
2 parents 7126bd5 + ac3a0c8 commit bd0b33b

File tree

207 files changed

+1699
-835
lines changed

Some content is hidden

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

207 files changed

+1699
-835
lines changed

Documentation/ABI/testing/debugfs-driver-habanalabs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,16 @@ Description: Allow the root user to disable/enable in runtime the clock
1616
gating mechanism in Gaudi. Due to how Gaudi is built, the
1717
clock gating needs to be disabled in order to access the
1818
registers of the TPC and MME engines. This is sometimes needed
19-
during debug by the user and hence the user needs this option
19+
during debug by the user and hence the user needs this option.
20+
The user can supply a bitmask value, each bit represents
21+
a different engine to disable/enable its clock gating feature.
22+
The bitmask is composed of 20 bits:
23+
0 - 7 : DMA channels
24+
8 - 11 : MME engines
25+
12 - 19 : TPC engines
26+
The bit's location of a specific engine can be determined
27+
using (1 << GAUDI_ENGINE_ID_*). GAUDI_ENGINE_ID_* values
28+
are defined in uapi habanalabs.h file in enum gaudi_engine_id
2029

2130
What: /sys/kernel/debug/habanalabs/hl<n>/command_buffers
2231
Date: Jan 2019

Documentation/devicetree/bindings/media/allwinner,sun4i-a10-video-engine.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ properties:
4747
$ref: /schemas/types.yaml#/definitions/phandle-array
4848
description: Phandle to the device SRAM
4949

50+
iommus:
51+
maxItems: 1
52+
5053
memory-region:
5154
description:
5255
CMA pool to use for buffers allocation instead of the default

Documentation/networking/bareudp.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ There are various L3 encapsulation standards using UDP being discussed to
88
leverage the UDP based load balancing capability of different networks.
99
MPLSoUDP (__ https://tools.ietf.org/html/rfc7510) is one among them.
1010

11-
The Bareudp tunnel module provides a generic L3 encapsulation tunnelling
12-
support for tunnelling different L3 protocols like MPLS, IP, NSH etc. inside
13-
a UDP tunnel.
11+
The Bareudp tunnel module provides a generic L3 encapsulation support for
12+
tunnelling different L3 protocols like MPLS, IP, NSH etc. inside a UDP tunnel.
1413

1514
Special Handling
1615
----------------

Documentation/networking/devlink/devlink-trap.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,10 @@ narrow. The description of these groups must be added to the following table:
486486
- Contains packet traps for packets that should be locally delivered after
487487
routing, but do not match more specific packet traps (e.g.,
488488
``ipv4_bgp``)
489+
* - ``external_delivery``
490+
- Contains packet traps for packets that should be routed through an
491+
external interface (e.g., management interface) that does not belong to
492+
the same device (e.g., switch ASIC) as the ingress interface
489493
* - ``ipv6``
490494
- Contains packet traps for various IPv6 control packets (e.g., Router
491495
Advertisements)

MAINTAINERS

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ F: include/dt-bindings/reset/altr,rst-mgr-a10sr.h
782782
F: include/linux/mfd/altera-a10sr.h
783783

784784
ALTERA TRIPLE SPEED ETHERNET DRIVER
785-
M: Thor Thayer <thor.thayer@linux.intel.com>
785+
M: Joyce Ooi <joyce.ooi@intel.com>
786786
787787
S: Maintained
788788
F: drivers/net/ethernet/altera/
@@ -1425,7 +1425,7 @@ F: arch/arm*/include/asm/perf_event.h
14251425
F: arch/arm*/kernel/hw_breakpoint.c
14261426
F: arch/arm*/kernel/perf_*
14271427
F: arch/arm/oprofile/common.c
1428-
F: drivers/perf/*
1428+
F: drivers/perf/
14291429
F: include/linux/perf/arm_pmu.h
14301430

14311431
ARM PORT
@@ -14191,7 +14191,8 @@ F: Documentation/devicetree/bindings/net/qcom,ethqos.txt
1419114191
F: drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
1419214192

1419314193
QUALCOMM GENERIC INTERFACE I2C DRIVER
14194-
M: Alok Chauhan <[email protected]>
14194+
M: Akash Asthana <[email protected]>
14195+
M: Mukesh Savaliya <[email protected]>
1419514196
1419614197
1419714198
S: Supported

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
VERSION = 5
33
PATCHLEVEL = 8
44
SUBLEVEL = 0
5-
EXTRAVERSION = -rc6
5+
EXTRAVERSION = -rc7
66
NAME = Kleptomaniac Octopus
77

88
# *DOCUMENTATION*
@@ -568,7 +568,7 @@ ifneq ($(shell $(CC) --version 2>&1 | head -n 1 | grep clang),)
568568
ifneq ($(CROSS_COMPILE),)
569569
CLANG_FLAGS += --target=$(notdir $(CROSS_COMPILE:%-=%))
570570
GCC_TOOLCHAIN_DIR := $(dir $(shell which $(CROSS_COMPILE)elfedit))
571-
CLANG_FLAGS += --prefix=$(GCC_TOOLCHAIN_DIR)
571+
CLANG_FLAGS += --prefix=$(GCC_TOOLCHAIN_DIR)$(notdir $(CROSS_COMPILE))
572572
GCC_TOOLCHAIN := $(realpath $(GCC_TOOLCHAIN_DIR)/..)
573573
endif
574574
ifneq ($(GCC_TOOLCHAIN),)
@@ -1769,7 +1769,7 @@ PHONY += descend $(build-dirs)
17691769
descend: $(build-dirs)
17701770
$(build-dirs): prepare
17711771
$(Q)$(MAKE) $(build)=$@ \
1772-
single-build=$(if $(filter-out $@/, $(filter $@/%, $(single-no-ko))),1) \
1772+
single-build=$(if $(filter-out $@/, $(filter $@/%, $(KBUILD_SINGLE_TARGETS))),1) \
17731773
need-builtin=1 need-modorder=1
17741774

17751775
clean-dirs := $(addprefix _clean_, $(clean-dirs))

arch/arm/boot/dts/armada-38x.dtsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,8 @@
342342

343343
comphy: phy@18300 {
344344
compatible = "marvell,armada-380-comphy";
345-
reg = <0x18300 0x100>;
345+
reg-names = "comphy", "conf";
346+
reg = <0x18300 0x100>, <0x18460 4>;
346347
#address-cells = <1>;
347348
#size-cells = <0>;
348349

arch/arm/boot/dts/imx6qdl-icore.dtsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@
397397

398398
pinctrl_usbotg: usbotggrp {
399399
fsl,pins = <
400-
MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059
400+
MX6QDL_PAD_ENET_RX_ER__USB_OTG_ID 0x17059
401401
>;
402402
};
403403

@@ -409,6 +409,7 @@
409409
MX6QDL_PAD_SD1_DAT1__SD1_DATA1 0x17070
410410
MX6QDL_PAD_SD1_DAT2__SD1_DATA2 0x17070
411411
MX6QDL_PAD_SD1_DAT3__SD1_DATA3 0x17070
412+
MX6QDL_PAD_GPIO_1__GPIO1_IO01 0x1b0b0
412413
>;
413414
};
414415

arch/arm/boot/dts/imx6sx-sabreauto.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
&fec2 {
100100
pinctrl-names = "default";
101101
pinctrl-0 = <&pinctrl_enet2>;
102-
phy-mode = "rgmii";
102+
phy-mode = "rgmii-id";
103103
phy-handle = <&ethphy0>;
104104
fsl,magic-packet;
105105
status = "okay";

arch/arm/boot/dts/imx6sx-sdb.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
&fec2 {
214214
pinctrl-names = "default";
215215
pinctrl-0 = <&pinctrl_enet2>;
216-
phy-mode = "rgmii";
216+
phy-mode = "rgmii-id";
217217
phy-handle = <&ethphy2>;
218218
status = "okay";
219219
};

arch/arm/boot/dts/keystone-k2g-evm.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@
402402

403403
&gbe0 {
404404
phy-handle = <&ethphy0>;
405-
phy-mode = "rgmii-id";
405+
phy-mode = "rgmii-rxid";
406406
status = "okay";
407407
};
408408

arch/arm/boot/dts/sun4i-a10.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@
198198
default-pool {
199199
compatible = "shared-dma-pool";
200200
size = <0x6000000>;
201-
alloc-ranges = <0x4a000000 0x6000000>;
201+
alloc-ranges = <0x40000000 0x10000000>;
202202
reusable;
203203
linux,cma-default;
204204
};

arch/arm/boot/dts/sun5i.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
default-pool {
118118
compatible = "shared-dma-pool";
119119
size = <0x6000000>;
120-
alloc-ranges = <0x4a000000 0x6000000>;
120+
alloc-ranges = <0x40000000 0x10000000>;
121121
reusable;
122122
linux,cma-default;
123123
};

arch/arm/boot/dts/sun7i-a20.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@
181181
default-pool {
182182
compatible = "shared-dma-pool";
183183
size = <0x6000000>;
184-
alloc-ranges = <0x4a000000 0x6000000>;
184+
alloc-ranges = <0x40000000 0x10000000>;
185185
reusable;
186186
linux,cma-default;
187187
};

arch/arm/include/asm/percpu.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
#ifndef _ASM_ARM_PERCPU_H_
66
#define _ASM_ARM_PERCPU_H_
77

8+
#include <asm/thread_info.h>
9+
810
/*
911
* Same as asm-generic/percpu.h, except that we store the per cpu offset
1012
* in the TPIDRPRW. TPIDRPRW only exists on V6K and V7

arch/arm/kernel/hw_breakpoint.c

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,12 @@ static void disable_single_step(struct perf_event *bp)
683683
arch_install_hw_breakpoint(bp);
684684
}
685685

686+
static int watchpoint_fault_on_uaccess(struct pt_regs *regs,
687+
struct arch_hw_breakpoint *info)
688+
{
689+
return !user_mode(regs) && info->ctrl.privilege == ARM_BREAKPOINT_USER;
690+
}
691+
686692
static void watchpoint_handler(unsigned long addr, unsigned int fsr,
687693
struct pt_regs *regs)
688694
{
@@ -742,16 +748,27 @@ static void watchpoint_handler(unsigned long addr, unsigned int fsr,
742748
}
743749

744750
pr_debug("watchpoint fired: address = 0x%x\n", info->trigger);
751+
752+
/*
753+
* If we triggered a user watchpoint from a uaccess routine,
754+
* then handle the stepping ourselves since userspace really
755+
* can't help us with this.
756+
*/
757+
if (watchpoint_fault_on_uaccess(regs, info))
758+
goto step;
759+
745760
perf_bp_event(wp, regs);
746761

747762
/*
748-
* If no overflow handler is present, insert a temporary
749-
* mismatch breakpoint so we can single-step over the
750-
* watchpoint trigger.
763+
* Defer stepping to the overflow handler if one is installed.
764+
* Otherwise, insert a temporary mismatch breakpoint so that
765+
* we can single-step over the watchpoint trigger.
751766
*/
752-
if (is_default_overflow_handler(wp))
753-
enable_single_step(wp, instruction_pointer(regs));
767+
if (!is_default_overflow_handler(wp))
768+
goto unlock;
754769

770+
step:
771+
enable_single_step(wp, instruction_pointer(regs));
755772
unlock:
756773
rcu_read_unlock();
757774
}

arch/arm/kernel/vdso.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ static void __init patch_vdso(void *ehdr)
184184
if (!cntvct_ok) {
185185
vdso_nullpatch_one(&einfo, "__vdso_gettimeofday");
186186
vdso_nullpatch_one(&einfo, "__vdso_clock_gettime");
187+
vdso_nullpatch_one(&einfo, "__vdso_clock_gettime64");
187188
}
188189
}
189190

arch/arm/mm/mmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ void __init create_mapping_late(struct mm_struct *mm, struct map_desc *md,
966966
pud_t *pud;
967967

968968
p4d = p4d_alloc(mm, pgd_offset(mm, md->virtual), md->virtual);
969-
if (!WARN_ON(!p4d))
969+
if (WARN_ON(!p4d))
970970
return;
971971
pud = pud_alloc(mm, p4d, md->virtual);
972972
if (WARN_ON(!pud))

arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@
161161
resets = <&ccu RST_BUS_VE>;
162162
interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
163163
allwinner,sram = <&ve_sram 1>;
164+
iommus = <&iommu 3>;
164165
};
165166

166167
gpu: gpu@1800000 {

arch/arm64/include/asm/alternative.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ static inline void apply_alternatives_module(void *start, size_t length) { }
7777
"663:\n\t" \
7878
newinstr "\n" \
7979
"664:\n\t" \
80-
".previous\n\t" \
8180
".org . - (664b-663b) + (662b-661b)\n\t" \
82-
".org . - (662b-661b) + (664b-663b)\n" \
81+
".org . - (662b-661b) + (664b-663b)\n\t" \
82+
".previous\n" \
8383
".endif\n"
8484

8585
#define __ALTERNATIVE_CFG_CB(oldinstr, feature, cfg_enabled, cb) \

arch/arm64/include/asm/checksum.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,17 @@ static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl)
2424
{
2525
__uint128_t tmp;
2626
u64 sum;
27+
int n = ihl; /* we want it signed */
2728

2829
tmp = *(const __uint128_t *)iph;
2930
iph += 16;
30-
ihl -= 4;
31+
n -= 4;
3132
tmp += ((tmp >> 64) | (tmp << 64));
3233
sum = tmp >> 64;
3334
do {
3435
sum += *(const u32 *)iph;
3536
iph += 4;
36-
} while (--ihl);
37+
} while (--n > 0);
3738

3839
sum += ((sum >> 32) | (sum << 32));
3940
return csum_fold((__force u32)(sum >> 32));

arch/arm64/include/asm/smp.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#include <linux/threads.h>
3131
#include <linux/cpumask.h>
3232
#include <linux/thread_info.h>
33-
#include <asm/pointer_auth.h>
3433

3534
DECLARE_PER_CPU_READ_MOSTLY(int, cpu_number);
3635

arch/parisc/include/asm/atomic.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,8 @@ atomic64_set(atomic64_t *v, s64 i)
212212
_atomic_spin_unlock_irqrestore(v, flags);
213213
}
214214

215+
#define atomic64_set_release(v, i) atomic64_set((v), (i))
216+
215217
static __inline__ s64
216218
atomic64_read(const atomic64_t *v)
217219
{

arch/parisc/include/asm/cmpxchg.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ extern void __cmpxchg_called_with_bad_pointer(void);
6060
extern unsigned long __cmpxchg_u32(volatile unsigned int *m, unsigned int old,
6161
unsigned int new_);
6262
extern u64 __cmpxchg_u64(volatile u64 *ptr, u64 old, u64 new_);
63+
extern u8 __cmpxchg_u8(volatile u8 *ptr, u8 old, u8 new_);
6364

6465
/* don't worry...optimizer will get rid of most of this */
6566
static inline unsigned long
@@ -71,6 +72,7 @@ __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size)
7172
#endif
7273
case 4: return __cmpxchg_u32((unsigned int *)ptr,
7374
(unsigned int)old, (unsigned int)new_);
75+
case 1: return __cmpxchg_u8((u8 *)ptr, (u8)old, (u8)new_);
7476
}
7577
__cmpxchg_called_with_bad_pointer();
7678
return old;

arch/parisc/lib/bitops.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,15 @@ unsigned long __cmpxchg_u32(volatile unsigned int *ptr, unsigned int old, unsign
7979
_atomic_spin_unlock_irqrestore(ptr, flags);
8080
return (unsigned long)prev;
8181
}
82+
83+
u8 __cmpxchg_u8(volatile u8 *ptr, u8 old, u8 new)
84+
{
85+
unsigned long flags;
86+
u8 prev;
87+
88+
_atomic_spin_lock_irqsave(ptr, flags);
89+
if ((prev = *ptr) == old)
90+
*ptr = new;
91+
_atomic_spin_unlock_irqrestore(ptr, flags);
92+
return prev;
93+
}

arch/powerpc/kernel/exceptions-64s.S

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3072,10 +3072,18 @@ do_hash_page:
30723072
ori r0,r0,DSISR_BAD_FAULT_64S@l
30733073
and. r0,r5,r0 /* weird error? */
30743074
bne- handle_page_fault /* if not, try to insert a HPTE */
3075+
3076+
/*
3077+
* If we are in an "NMI" (e.g., an interrupt when soft-disabled), then
3078+
* don't call hash_page, just fail the fault. This is required to
3079+
* prevent re-entrancy problems in the hash code, namely perf
3080+
* interrupts hitting while something holds H_PAGE_BUSY, and taking a
3081+
* hash fault. See the comment in hash_preload().
3082+
*/
30753083
ld r11, PACA_THREAD_INFO(r13)
3076-
lwz r0,TI_PREEMPT(r11) /* If we're in an "NMI" */
3077-
andis. r0,r0,NMI_MASK@h /* (i.e. an irq when soft-disabled) */
3078-
bne 77f /* then don't call hash_page now */
3084+
lwz r0,TI_PREEMPT(r11)
3085+
andis. r0,r0,NMI_MASK@h
3086+
bne 77f
30793087

30803088
/*
30813089
* r3 contains the trap number

0 commit comments

Comments
 (0)