Skip to content

Commit ec9b40c

Browse files
committed
Merge tag 'v5.7-rc4' into core
Linux 5.7-rc4
2 parents 3a0ce12 + 0e698df commit ec9b40c

File tree

162 files changed

+1289
-604
lines changed

Some content is hidden

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

162 files changed

+1289
-604
lines changed

Documentation/admin-guide/device-mapper/dm-integrity.rst

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -182,12 +182,15 @@ fix_padding
182182
space-efficient. If this option is not present, large padding is
183183
used - that is for compatibility with older kernels.
184184

185-
186-
The journal mode (D/J), buffer_sectors, journal_watermark, commit_time can
187-
be changed when reloading the target (load an inactive table and swap the
188-
tables with suspend and resume). The other arguments should not be changed
189-
when reloading the target because the layout of disk data depend on them
190-
and the reloaded target would be non-functional.
185+
allow_discards
186+
Allow block discard requests (a.k.a. TRIM) for the integrity device.
187+
Discards are only allowed to devices using internal hash.
188+
189+
The journal mode (D/J), buffer_sectors, journal_watermark, commit_time and
190+
allow_discards can be changed when reloading the target (load an inactive
191+
table and swap the tables with suspend and resume). The other arguments
192+
should not be changed when reloading the target because the layout of disk
193+
data depend on them and the reloaded target would be non-functional.
191194

192195

193196
The layout of the formatted block device:

Documentation/devicetree/bindings/dma/socionext,uniphier-xdmac.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ properties:
2222
const: socionext,uniphier-xdmac
2323

2424
reg:
25-
items:
26-
- description: XDMAC base register region (offset and length)
27-
- description: XDMAC extension register region (offset and length)
25+
maxItems: 1
2826

2927
interrupts:
3028
maxItems: 1
@@ -49,12 +47,13 @@ required:
4947
- reg
5048
- interrupts
5149
- "#dma-cells"
50+
- dma-channels
5251

5352
examples:
5453
- |
5554
xdmac: dma-controller@5fc10000 {
5655
compatible = "socionext,uniphier-xdmac";
57-
reg = <0x5fc10000 0x1000>, <0x5fc20000 0x800>;
56+
reg = <0x5fc10000 0x5300>;
5857
interrupts = <0 188 4>;
5958
#dma-cells = <2>;
6059
dma-channels = <16>;

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3657,7 +3657,7 @@ L: [email protected]
36573657
S: Maintained
36583658
W: http://btrfs.wiki.kernel.org/
36593659
Q: http://patchwork.kernel.org/project/linux-btrfs/list/
3660-
T: git git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs.git
3660+
T: git git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git
36613661
F: Documentation/filesystems/btrfs.rst
36623662
F: fs/btrfs/
36633663
F: include/linux/btrfs*

Makefile

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

88
# *DOCUMENTATION*

arch/arm64/kernel/vdso/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ UBSAN_SANITIZE := n
3232
OBJECT_FILES_NON_STANDARD := y
3333
KCOV_INSTRUMENT := n
3434

35-
CFLAGS_vgettimeofday.o = -O2 -mcmodel=tiny
35+
CFLAGS_vgettimeofday.o = -O2 -mcmodel=tiny -fasynchronous-unwind-tables
3636

3737
ifneq ($(c-gettimeofday-y),)
3838
CFLAGS_vgettimeofday.o += -include $(c-gettimeofday-y)

arch/riscv/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ config RISCV
6060
select ARCH_HAS_GIGANTIC_PAGE
6161
select ARCH_HAS_SET_DIRECT_MAP
6262
select ARCH_HAS_SET_MEMORY
63-
select ARCH_HAS_STRICT_KERNEL_RWX
63+
select ARCH_HAS_STRICT_KERNEL_RWX if MMU
6464
select ARCH_WANT_HUGE_PMD_SHARE if 64BIT
6565
select SPARSEMEM_STATIC if 32BIT
6666
select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT if MMU

arch/riscv/kernel/sbi.c

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void sbi_shutdown(void)
102102
{
103103
sbi_ecall(SBI_EXT_0_1_SHUTDOWN, 0, 0, 0, 0, 0, 0, 0);
104104
}
105-
EXPORT_SYMBOL(sbi_set_timer);
105+
EXPORT_SYMBOL(sbi_shutdown);
106106

107107
/**
108108
* sbi_clear_ipi() - Clear any pending IPIs for the calling hart.
@@ -113,7 +113,7 @@ void sbi_clear_ipi(void)
113113
{
114114
sbi_ecall(SBI_EXT_0_1_CLEAR_IPI, 0, 0, 0, 0, 0, 0, 0);
115115
}
116-
EXPORT_SYMBOL(sbi_shutdown);
116+
EXPORT_SYMBOL(sbi_clear_ipi);
117117

118118
/**
119119
* sbi_set_timer_v01() - Program the timer for next timer event.
@@ -167,6 +167,11 @@ static int __sbi_rfence_v01(int fid, const unsigned long *hart_mask,
167167

168168
return result;
169169
}
170+
171+
static void sbi_set_power_off(void)
172+
{
173+
pm_power_off = sbi_shutdown;
174+
}
170175
#else
171176
static void __sbi_set_timer_v01(uint64_t stime_value)
172177
{
@@ -191,6 +196,8 @@ static int __sbi_rfence_v01(int fid, const unsigned long *hart_mask,
191196

192197
return 0;
193198
}
199+
200+
static void sbi_set_power_off(void) {}
194201
#endif /* CONFIG_RISCV_SBI_V01 */
195202

196203
static void __sbi_set_timer_v02(uint64_t stime_value)
@@ -540,16 +547,12 @@ static inline long sbi_get_firmware_version(void)
540547
return __sbi_base_ecall(SBI_EXT_BASE_GET_IMP_VERSION);
541548
}
542549

543-
static void sbi_power_off(void)
544-
{
545-
sbi_shutdown();
546-
}
547550

548551
int __init sbi_init(void)
549552
{
550553
int ret;
551554

552-
pm_power_off = sbi_power_off;
555+
sbi_set_power_off();
553556
ret = sbi_get_spec_version();
554557
if (ret > 0)
555558
sbi_spec_version = ret;

arch/riscv/kernel/stacktrace.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
#include <linux/stacktrace.h>
1313
#include <linux/ftrace.h>
1414

15+
register unsigned long sp_in_global __asm__("sp");
16+
1517
#ifdef CONFIG_FRAME_POINTER
1618

1719
struct stackframe {
1820
unsigned long fp;
1921
unsigned long ra;
2022
};
2123

22-
register unsigned long sp_in_global __asm__("sp");
23-
2424
void notrace walk_stackframe(struct task_struct *task, struct pt_regs *regs,
2525
bool (*fn)(unsigned long, void *), void *arg)
2626
{

arch/riscv/kernel/vdso/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ $(obj)/vdso.so.dbg: $(src)/vdso.lds $(obj-vdso) FORCE
3333
$(call if_changed,vdsold)
3434

3535
# We also create a special relocatable object that should mirror the symbol
36-
# table and layout of the linked DSO. With ld -R we can then refer to
37-
# these symbols in the kernel code rather than hand-coded addresses.
36+
# table and layout of the linked DSO. With ld --just-symbols we can then
37+
# refer to these symbols in the kernel code rather than hand-coded addresses.
3838

3939
SYSCFLAGS_vdso.so.dbg = -shared -s -Wl,-soname=linux-vdso.so.1 \
4040
-Wl,--build-id -Wl,--hash-style=both
4141
$(obj)/vdso-dummy.o: $(src)/vdso.lds $(obj)/rt_sigreturn.o FORCE
4242
$(call if_changed,vdsold)
4343

44-
LDFLAGS_vdso-syms.o := -r -R
44+
LDFLAGS_vdso-syms.o := -r --just-symbols
4545
$(obj)/vdso-syms.o: $(obj)/vdso-dummy.o FORCE
4646
$(call if_changed,ld)
4747

arch/s390/lib/uaccess.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,13 @@ mm_segment_t enable_sacf_uaccess(void)
6464
{
6565
mm_segment_t old_fs;
6666
unsigned long asce, cr;
67+
unsigned long flags;
6768

6869
old_fs = current->thread.mm_segment;
6970
if (old_fs & 1)
7071
return old_fs;
72+
/* protect against a concurrent page table upgrade */
73+
local_irq_save(flags);
7174
current->thread.mm_segment |= 1;
7275
asce = S390_lowcore.kernel_asce;
7376
if (likely(old_fs == USER_DS)) {
@@ -83,6 +86,7 @@ mm_segment_t enable_sacf_uaccess(void)
8386
__ctl_load(asce, 7, 7);
8487
set_cpu_flag(CIF_ASCE_SECONDARY);
8588
}
89+
local_irq_restore(flags);
8690
return old_fs;
8791
}
8892
EXPORT_SYMBOL(enable_sacf_uaccess);

0 commit comments

Comments
 (0)