Skip to content

Commit a452483

Browse files
committed
Merge tag 's390-6.5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
Pull more s390 updates from Alexander Gordeev: - Fix virtual vs physical address confusion in vmem_add_range() and vmem_remove_range() functions - Include <linux/io.h> instead of <asm/io.h> and <asm-generic/io.h> throughout s390 code - Make all PSW related defines also available for assembler files. Remove PSW_DEFAULT_KEY define from uapi for that - When adding an undefined symbol the build still succeeds, but userspace crashes trying to execute VDSO, because the symbol is not resolved. Add undefined symbols check to prevent that - Use kvmalloc_array() instead of kzalloc() for allocaton of 256k memory when executing s390 crypto adapter IOCTL - Add -fPIE flag to prevent decompressor misaligned symbol build error with clang - Use .balign instead of .align everywhere. This is a no-op for s390, but with this there no mix in using .align and .balign anymore - Filter out -mno-pic-data-is-text-relative flag when compiling kernel to prevent VDSO build error - Rework entering of DAT-on mode on CPU restart to use PSW_KERNEL_BITS mask directly - Do not retry administrative requests to some s390 crypto cards, since the firmware assumes replay attacks - Remove most of the debug code, which is build in when kernel config option CONFIG_ZCRYPT_DEBUG is enabled - Remove CONFIG_ZCRYPT_MULTIDEVNODES kernel config option and switch off the multiple devices support for the s390 zcrypt device driver - With the conversion to generic entry machine checks are accounted to the current context instead of irq time. As result, the STCKF instruction at the beginning of the machine check handler and the lowcore member are no longer required, therefore remove it - Fix various typos found with codespell - Minor cleanups to CPU-measurement Counter and Sampling Facilities code - Revert patch that removes VMEM_MAX_PHYS macro, since it causes a regression * tag 's390-6.5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux: (25 commits) Revert "s390/mm: get rid of VMEM_MAX_PHYS macro" s390/cpum_sf: remove check on CPU being online s390/cpum_sf: handle casts consistently s390/cpum_sf: remove unnecessary debug statement s390/cpum_sf: remove parameter in call to pr_err s390/cpum_sf: simplify function setup_pmu_cpu s390/cpum_cf: remove unneeded debug statements s390/entry: remove mcck clock s390: fix various typos s390/zcrypt: remove ZCRYPT_MULTIDEVNODES kernel config option s390/zcrypt: do not retry administrative requests s390/zcrypt: cleanup some debug code s390/entry: rework entering DAT-on mode on CPU restart s390/mm: fence off VM macros from asm and linker s390: include linux/io.h instead of asm/io.h s390/ptrace: make all psw related defines also available for asm s390/ptrace: remove PSW_DEFAULT_KEY from uapi s390/vdso: filter out mno-pic-data-is-text-relative cflag s390: consistently use .balign instead of .align s390/decompressor: fix misaligned symbol build error ...
2 parents 7b82e90 + 54372cf commit a452483

Some content is hidden

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

73 files changed

+235
-428
lines changed

arch/s390/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ KBUILD_CFLAGS_DECOMPRESSOR += -fno-delete-null-pointer-checks -msoft-float -mbac
2727
KBUILD_CFLAGS_DECOMPRESSOR += -fno-asynchronous-unwind-tables
2828
KBUILD_CFLAGS_DECOMPRESSOR += -ffreestanding
2929
KBUILD_CFLAGS_DECOMPRESSOR += -fno-stack-protector
30+
KBUILD_CFLAGS_DECOMPRESSOR += -fPIE
3031
KBUILD_CFLAGS_DECOMPRESSOR += $(call cc-disable-warning, address-of-packed-member)
3132
KBUILD_CFLAGS_DECOMPRESSOR += $(if $(CONFIG_DEBUG_INFO),-g)
3233
KBUILD_CFLAGS_DECOMPRESSOR += $(if $(CONFIG_DEBUG_INFO_DWARF4), $(call cc-option, -gdwarf-4,))

arch/s390/appldata/appldata_base.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
#include <linux/notifier.h>
2727
#include <linux/cpu.h>
2828
#include <linux/workqueue.h>
29+
#include <linux/uaccess.h>
30+
#include <linux/io.h>
2931
#include <asm/appldata.h>
3032
#include <asm/vtimer.h>
31-
#include <linux/uaccess.h>
32-
#include <asm/io.h>
3333
#include <asm/smp.h>
3434

3535
#include "appldata.h"

arch/s390/appldata/appldata_mem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include <linux/pagemap.h>
1616
#include <linux/swap.h>
1717
#include <linux/slab.h>
18-
#include <asm/io.h>
18+
#include <linux/io.h>
1919

2020
#include "appldata.h"
2121

arch/s390/boot/head.S

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ ipl_start:
6767
jz .Lagain1 # skip dataset header
6868
larl %r13,.L_eof
6969
clc 0(3,%r4),0(%r13) # if it is EOFx
70-
jz .Lagain1 # skip dateset trailer
70+
jz .Lagain1 # skip data set trailer
7171
lgr %r5,%r2
7272
la %r6,COMMAND_LINE-PARMAREA(%r12)
7373
lgr %r7,%r2
@@ -185,19 +185,19 @@ ipl_start:
185185
larl %r13,.Lcrash
186186
lpsw 0(%r13)
187187

188-
.align 8
188+
.balign 8
189189
.Lwaitpsw:
190190
.quad 0x0202000180000000,.Lioint
191191
.Lnewpswmask:
192192
.quad 0x0000000180000000
193-
.align 8
193+
.balign 8
194194
.Lorb: .long 0x00000000,0x0080ff00,.Lccws
195195
.Lirb: .long 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
196-
.align 8
196+
.balign 8
197197
.Lcr6: .quad 0x00000000ff000000
198-
.align 8
198+
.balign 8
199199
.Lcrash:.long 0x000a0000,0x00000000
200-
.align 8
200+
.balign 8
201201
.Lccws: .rept 19
202202
.long 0x02600050,0x00000000
203203
.endr
@@ -207,7 +207,7 @@ ipl_start:
207207
.byte 0xc8,0xd6,0xd3,0xc4 # "change rdr all keep nohold"
208208
.L_eof: .long 0xc5d6c600 /* C'EOF' */
209209
.L_hdr: .long 0xc8c4d900 /* C'HDR' */
210-
.align 8
210+
.balign 8
211211
.Lcpuid:.fill 8,1,0
212212

213213
#
@@ -265,7 +265,7 @@ SYM_CODE_START_LOCAL(startup_normal)
265265
brasl %r14,startup_kernel
266266
SYM_CODE_END(startup_normal)
267267

268-
.align 8
268+
.balign 8
269269
6: .long 0x7fffffff,0xffffffff
270270
.Lext_new_psw:
271271
.quad 0x0002000180000000,0x1b0 # disabled wait

arch/s390/boot/head_kdump.S

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,20 +82,20 @@ SYM_CODE_START_LOCAL(startup_kdump)
8282
#
8383
# Startup of kdump (relocated new kernel)
8484
#
85-
.align 2
85+
.balign 2
8686
startup_kdump_relocated:
8787
basr %r13,0
8888
0: lpswe .Lrestart_psw-0b(%r13) # Start new kernel...
8989
SYM_CODE_END(startup_kdump)
90-
.align 8
90+
.balign 8
9191
.Lrestart_psw:
9292
.quad 0x0000000080000000,0x0000000000000000 + startup
9393
#else
9494
SYM_CODE_START_LOCAL(startup_kdump)
9595
larl %r13,startup_kdump_crash
9696
lpswe 0(%r13)
9797
SYM_CODE_END(startup_kdump)
98-
.align 8
98+
.balign 8
9999
startup_kdump_crash:
100100
.quad 0x0002000080000000,0x0000000000000000 + startup_kdump_crash
101101
#endif /* CONFIG_CRASH_DUMP */

arch/s390/crypto/crc32be-vx.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
*
4949
* Note that the constant definitions below are extended in order to compute
5050
* intermediate results with a single VECTOR GALOIS FIELD MULTIPLY instruction.
51-
* The righmost doubleword can be 0 to prevent contribution to the result or
51+
* The rightmost doubleword can be 0 to prevent contribution to the result or
5252
* can be multiplied by 1 to perform an XOR without the need for a separate
5353
* VECTOR EXCLUSIVE OR instruction.
5454
*

arch/s390/include/asm/ap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ union ap_qact_ap_info {
333333
};
334334

335335
/**
336-
* ap_qact(): Query AP combatibility type.
336+
* ap_qact(): Query AP compatibility type.
337337
* @qid: The AP queue number
338338
* @apinfo: On input the info about the AP queue. On output the
339339
* alternate AP queue info provided by the qact function

arch/s390/include/asm/appldata.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
#ifndef _ASM_S390_APPLDATA_H
99
#define _ASM_S390_APPLDATA_H
1010

11+
#include <linux/io.h>
1112
#include <asm/diag.h>
12-
#include <asm/io.h>
1313

1414
#define APPLDATA_START_INTERVAL_REC 0x80
1515
#define APPLDATA_STOP_REC 0x81

arch/s390/include/asm/asm-extable.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
#define __EX_TABLE(_section, _fault, _target, _type) \
2727
stringify_in_c(.section _section,"a";) \
28-
stringify_in_c(.align 4;) \
28+
stringify_in_c(.balign 4;) \
2929
stringify_in_c(.long (_fault) - .;) \
3030
stringify_in_c(.long (_target) - .;) \
3131
stringify_in_c(.short (_type);) \
@@ -34,7 +34,7 @@
3434

3535
#define __EX_TABLE_UA(_section, _fault, _target, _type, _regerr, _regaddr, _len)\
3636
stringify_in_c(.section _section,"a";) \
37-
stringify_in_c(.align 4;) \
37+
stringify_in_c(.balign 4;) \
3838
stringify_in_c(.long (_fault) - .;) \
3939
stringify_in_c(.long (_target) - .;) \
4040
stringify_in_c(.short (_type);) \

arch/s390/include/asm/dma.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#ifndef _ASM_S390_DMA_H
33
#define _ASM_S390_DMA_H
44

5-
#include <asm/io.h>
5+
#include <linux/io.h>
66

77
/*
88
* MAX_DMA_ADDRESS is ambiguous because on s390 its completely unrelated

0 commit comments

Comments
 (0)