Skip to content

Commit fd21e2d

Browse files
committed
Merge tag 'v5.10.29' into v5.10/standard/base
This is the 5.10.29 stable release # gpg: Signature made Sat 10 Apr 2021 07:36:46 AM EDT # gpg: using RSA key 647F28654894E3BD457199BE38DBBDC86092693E # gpg: Can't check signature: No public key
2 parents d7bcffe + d8cf82b commit fd21e2d

File tree

37 files changed

+241
-121
lines changed

37 files changed

+241
-121
lines changed

Makefile

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0
22
VERSION = 5
33
PATCHLEVEL = 10
4-
SUBLEVEL = 28
4+
SUBLEVEL = 29
55
EXTRAVERSION =
66
NAME = Dare mighty things
77

@@ -1083,6 +1083,17 @@ ifdef CONFIG_STACK_VALIDATION
10831083
endif
10841084
endif
10851085

1086+
PHONY += resolve_btfids_clean
1087+
1088+
resolve_btfids_O = $(abspath $(objtree))/tools/bpf/resolve_btfids
1089+
1090+
# tools/bpf/resolve_btfids directory might not exist
1091+
# in output directory, skip its clean in that case
1092+
resolve_btfids_clean:
1093+
ifneq ($(wildcard $(resolve_btfids_O)),)
1094+
$(Q)$(MAKE) -sC $(srctree)/tools/bpf/resolve_btfids O=$(resolve_btfids_O) clean
1095+
endif
1096+
10861097
ifdef CONFIG_BPF
10871098
ifdef CONFIG_DEBUG_INFO_BTF
10881099
ifeq ($(has_libelf),1)
@@ -1500,7 +1511,7 @@ vmlinuxclean:
15001511
$(Q)$(CONFIG_SHELL) $(srctree)/scripts/link-vmlinux.sh clean
15011512
$(Q)$(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) clean)
15021513

1503-
clean: archclean vmlinuxclean
1514+
clean: archclean vmlinuxclean resolve_btfids_clean
15041515

15051516
# mrproper - Delete all generated files, including .config
15061517
#

arch/arm/boot/dts/am33xx.dtsi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
4040
ethernet1 = &cpsw_emac1;
4141
spi0 = &spi0;
4242
spi1 = &spi1;
43+
mmc0 = &mmc1;
44+
mmc1 = &mmc2;
45+
mmc2 = &mmc3;
4346
};
4447

4548
cpus {

arch/ia64/kernel/err_inject.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ show_##name(struct device *dev, struct device_attribute *attr, \
5959
char *buf) \
6060
{ \
6161
u32 cpu=dev->id; \
62-
return sprintf(buf, "%lx\n", name[cpu]); \
62+
return sprintf(buf, "%llx\n", name[cpu]); \
6363
}
6464

6565
#define store(name) \
@@ -86,9 +86,9 @@ store_call_start(struct device *dev, struct device_attribute *attr,
8686

8787
#ifdef ERR_INJ_DEBUG
8888
printk(KERN_DEBUG "pal_mc_err_inject for cpu%d:\n", cpu);
89-
printk(KERN_DEBUG "err_type_info=%lx,\n", err_type_info[cpu]);
90-
printk(KERN_DEBUG "err_struct_info=%lx,\n", err_struct_info[cpu]);
91-
printk(KERN_DEBUG "err_data_buffer=%lx, %lx, %lx.\n",
89+
printk(KERN_DEBUG "err_type_info=%llx,\n", err_type_info[cpu]);
90+
printk(KERN_DEBUG "err_struct_info=%llx,\n", err_struct_info[cpu]);
91+
printk(KERN_DEBUG "err_data_buffer=%llx, %llx, %llx.\n",
9292
err_data_buffer[cpu].data1,
9393
err_data_buffer[cpu].data2,
9494
err_data_buffer[cpu].data3);
@@ -117,8 +117,8 @@ store_call_start(struct device *dev, struct device_attribute *attr,
117117

118118
#ifdef ERR_INJ_DEBUG
119119
printk(KERN_DEBUG "Returns: status=%d,\n", (int)status[cpu]);
120-
printk(KERN_DEBUG "capabilities=%lx,\n", capabilities[cpu]);
121-
printk(KERN_DEBUG "resources=%lx\n", resources[cpu]);
120+
printk(KERN_DEBUG "capabilities=%llx,\n", capabilities[cpu]);
121+
printk(KERN_DEBUG "resources=%llx\n", resources[cpu]);
122122
#endif
123123
return size;
124124
}
@@ -131,7 +131,7 @@ show_virtual_to_phys(struct device *dev, struct device_attribute *attr,
131131
char *buf)
132132
{
133133
unsigned int cpu=dev->id;
134-
return sprintf(buf, "%lx\n", phys_addr[cpu]);
134+
return sprintf(buf, "%llx\n", phys_addr[cpu]);
135135
}
136136

137137
static ssize_t
@@ -145,7 +145,7 @@ store_virtual_to_phys(struct device *dev, struct device_attribute *attr,
145145
ret = get_user_pages_fast(virt_addr, 1, FOLL_WRITE, NULL);
146146
if (ret<=0) {
147147
#ifdef ERR_INJ_DEBUG
148-
printk("Virtual address %lx is not existing.\n",virt_addr);
148+
printk("Virtual address %llx is not existing.\n", virt_addr);
149149
#endif
150150
return -EINVAL;
151151
}
@@ -163,7 +163,7 @@ show_err_data_buffer(struct device *dev,
163163
{
164164
unsigned int cpu=dev->id;
165165

166-
return sprintf(buf, "%lx, %lx, %lx\n",
166+
return sprintf(buf, "%llx, %llx, %llx\n",
167167
err_data_buffer[cpu].data1,
168168
err_data_buffer[cpu].data2,
169169
err_data_buffer[cpu].data3);
@@ -178,13 +178,13 @@ store_err_data_buffer(struct device *dev,
178178
int ret;
179179

180180
#ifdef ERR_INJ_DEBUG
181-
printk("write err_data_buffer=[%lx,%lx,%lx] on cpu%d\n",
181+
printk("write err_data_buffer=[%llx,%llx,%llx] on cpu%d\n",
182182
err_data_buffer[cpu].data1,
183183
err_data_buffer[cpu].data2,
184184
err_data_buffer[cpu].data3,
185185
cpu);
186186
#endif
187-
ret=sscanf(buf, "%lx, %lx, %lx",
187+
ret = sscanf(buf, "%llx, %llx, %llx",
188188
&err_data_buffer[cpu].data1,
189189
&err_data_buffer[cpu].data2,
190190
&err_data_buffer[cpu].data3);

arch/ia64/kernel/mca.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1822,7 +1822,7 @@ ia64_mca_cpu_init(void *cpu_data)
18221822
data = mca_bootmem();
18231823
first_time = 0;
18241824
} else
1825-
data = (void *)__get_free_pages(GFP_KERNEL,
1825+
data = (void *)__get_free_pages(GFP_ATOMIC,
18261826
get_order(sz));
18271827
if (!data)
18281828
panic("Could not allocate MCA memory for cpu %d\n",

arch/x86/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ M16_CFLAGS := $(call cc-option, -m16, $(CODE16GCC_CFLAGS))
3434
REALMODE_CFLAGS := $(M16_CFLAGS) -g -Os -DDISABLE_BRANCH_PROFILING \
3535
-Wall -Wstrict-prototypes -march=i386 -mregparm=3 \
3636
-fno-strict-aliasing -fomit-frame-pointer -fno-pic \
37-
-mno-mmx -mno-sse
37+
-mno-mmx -mno-sse $(call cc-option,-fcf-protection=none)
3838

3939
REALMODE_CFLAGS += -ffreestanding
4040
REALMODE_CFLAGS += -fno-stack-protector

arch/x86/net/bpf_jit_comp.c

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1476,7 +1476,16 @@ xadd: if (is_imm8(insn->off))
14761476
}
14771477

14781478
if (image) {
1479-
if (unlikely(proglen + ilen > oldproglen)) {
1479+
/*
1480+
* When populating the image, assert that:
1481+
*
1482+
* i) We do not write beyond the allocated space, and
1483+
* ii) addrs[i] did not change from the prior run, in order
1484+
* to validate assumptions made for computing branch
1485+
* displacements.
1486+
*/
1487+
if (unlikely(proglen + ilen > oldproglen ||
1488+
proglen + ilen != addrs[i])) {
14801489
pr_err("bpf_jit: fatal error\n");
14811490
return -EFAULT;
14821491
}
@@ -2038,7 +2047,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog)
20382047
extra_pass = true;
20392048
goto skip_init_addrs;
20402049
}
2041-
addrs = kmalloc_array(prog->len + 1, sizeof(*addrs), GFP_KERNEL);
2050+
addrs = kvmalloc_array(prog->len + 1, sizeof(*addrs), GFP_KERNEL);
20422051
if (!addrs) {
20432052
prog = orig_prog;
20442053
goto out_addrs;
@@ -2128,7 +2137,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog)
21282137
if (image)
21292138
bpf_prog_fill_jited_linfo(prog, addrs + 1);
21302139
out_addrs:
2131-
kfree(addrs);
2140+
kvfree(addrs);
21322141
kfree(jit_data);
21332142
prog->aux->jit_data = NULL;
21342143
}

arch/x86/net/bpf_jit_comp32.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2278,7 +2278,16 @@ emit_cond_jmp: jmp_cond = get_cond_jmp_opcode(BPF_OP(code), false);
22782278
}
22792279

22802280
if (image) {
2281-
if (unlikely(proglen + ilen > oldproglen)) {
2281+
/*
2282+
* When populating the image, assert that:
2283+
*
2284+
* i) We do not write beyond the allocated space, and
2285+
* ii) addrs[i] did not change from the prior run, in order
2286+
* to validate assumptions made for computing branch
2287+
* displacements.
2288+
*/
2289+
if (unlikely(proglen + ilen > oldproglen ||
2290+
proglen + ilen != addrs[i])) {
22822291
pr_err("bpf_jit: fatal error\n");
22832292
return -EFAULT;
22842293
}

drivers/bus/ti-sysc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3044,7 +3044,9 @@ static int sysc_remove(struct platform_device *pdev)
30443044

30453045
pm_runtime_put_sync(&pdev->dev);
30463046
pm_runtime_disable(&pdev->dev);
3047-
reset_control_assert(ddata->rsts);
3047+
3048+
if (!reset_control_status(ddata->rsts))
3049+
reset_control_assert(ddata->rsts);
30483050

30493051
unprepare:
30503052
sysc_unprepare(ddata);

drivers/gpu/drm/msm/adreno/a5xx_power.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ int a5xx_power_init(struct msm_gpu *gpu)
304304
/* Set up the limits management */
305305
if (adreno_is_a530(adreno_gpu))
306306
a530_lm_setup(gpu);
307-
else
307+
else if (adreno_is_a540(adreno_gpu))
308308
a540_lm_setup(gpu);
309309

310310
/* Set up SP/TP power collpase */

drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
#define DPU_DEBUGFS_DIR "msm_dpu"
4444
#define DPU_DEBUGFS_HWMASKNAME "hw_log_mask"
4545

46+
#define MIN_IB_BW 400000000ULL /* Min ib vote 400MB */
47+
4648
static int dpu_kms_hw_init(struct msm_kms *kms);
4749
static void _dpu_kms_mmu_destroy(struct dpu_kms *dpu_kms);
4850

@@ -929,6 +931,9 @@ static int dpu_kms_hw_init(struct msm_kms *kms)
929931
DPU_DEBUG("REG_DMA is not defined");
930932
}
931933

934+
if (of_device_is_compatible(dev->dev->of_node, "qcom,sc7180-mdss"))
935+
dpu_kms_parse_data_bus_icc_path(dpu_kms);
936+
932937
pm_runtime_get_sync(&dpu_kms->pdev->dev);
933938

934939
dpu_kms->core_rev = readl_relaxed(dpu_kms->mmio + 0x0);
@@ -1030,9 +1035,6 @@ static int dpu_kms_hw_init(struct msm_kms *kms)
10301035

10311036
dpu_vbif_init_memtypes(dpu_kms);
10321037

1033-
if (of_device_is_compatible(dev->dev->of_node, "qcom,sc7180-mdss"))
1034-
dpu_kms_parse_data_bus_icc_path(dpu_kms);
1035-
10361038
pm_runtime_put_sync(&dpu_kms->pdev->dev);
10371039

10381040
return 0;
@@ -1189,10 +1191,10 @@ static int __maybe_unused dpu_runtime_resume(struct device *dev)
11891191

11901192
ddev = dpu_kms->dev;
11911193

1194+
WARN_ON(!(dpu_kms->num_paths));
11921195
/* Min vote of BW is required before turning on AXI clk */
11931196
for (i = 0; i < dpu_kms->num_paths; i++)
1194-
icc_set_bw(dpu_kms->path[i], 0,
1195-
dpu_kms->catalog->perf.min_dram_ib);
1197+
icc_set_bw(dpu_kms->path[i], 0, Bps_to_icc(MIN_IB_BW));
11961198

11971199
rc = msm_dss_enable_clk(mp->clk_config, mp->num_clk, true);
11981200
if (rc) {

0 commit comments

Comments
 (0)