Skip to content

Commit 9e85ae6

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
Pull s390 updates from Martin Schwidefsky: "The first part of the s390 updates for 4.14: - Add machine type 0x3906 for IBM z14 - Add IBM z14 TLB flushing improvements for KVM guests - Exploit the TOD clock epoch extension to provide a continuous TOD clock afer 2042/09/17 - Add NIAI spinlock hints for IBM z14 - Rework the vmcp driver and use CMA for the respone buffer of z/VM CP commands - Drop some s390 specific asm headers and use the generic version - Add block discard for DASD-FBA devices under z/VM - Add average request times to DASD statistics - A few of those constify patches which seem to be in vogue right now - Cleanup and bug fixes" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux: (50 commits) s390/mm: avoid empty zero pages for KVM guests to avoid postcopy hangs s390/dasd: Add discard support for FBA devices s390/zcrypt: make CPRBX const s390/uaccess: avoid mvcos jump label s390/mm: use generic mm_hooks s390/facilities: fix typo s390/vmcp: simplify vmcp_response_free() s390/topology: Remove the unused parent_node() macro s390/dasd: Change unsigned long long to unsigned long s390/smp: convert cpuhp_setup_state() return code to zero on success s390: fix 'novx' early parameter handling s390/dasd: add average request times to dasd statistics s390/scm: use common completion path s390/pci: log changes to uid checking s390/vmcp: simplify vmcp_ioctl() s390/vmcp: return -ENOTTY for unknown ioctl commands s390/vmcp: split vmcp header file and move to uapi s390/vmcp: make use of contiguous memory allocator s390/cpcmd,vmcp: avoid GFP_DMA allocations s390/vmcp: fix uaccess check and avoid undefined behavior ...
2 parents 6caffe2 + fa41ba0 commit 9e85ae6

87 files changed

Lines changed: 1405 additions & 694 deletions

Some content is hidden

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

‎Documentation/admin-guide/kernel-parameters.txt‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4395,6 +4395,10 @@
43954395
decrease the size and leave more room for directly
43964396
mapped kernel RAM.
43974397

4398+
vmcp_cma=nn[MG] [KNL,S390]
4399+
Sets the memory size reserved for contiguous memory
4400+
allocations for the vmcp device driver.
4401+
43984402
vmhalt= [KNL,S390] Perform z/VM CP command after system halt.
43994403
Format: <command>
44004404

‎arch/s390/Kconfig‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,10 @@ config HAVE_MARCH_Z13_FEATURES
222222
def_bool n
223223
select HAVE_MARCH_ZEC12_FEATURES
224224

225+
config HAVE_MARCH_Z14_FEATURES
226+
def_bool n
227+
select HAVE_MARCH_Z13_FEATURES
228+
225229
choice
226230
prompt "Processor type"
227231
default MARCH_Z196
@@ -282,6 +286,14 @@ config MARCH_Z13
282286
2964 series). The kernel will be slightly faster but will not work on
283287
older machines.
284288

289+
config MARCH_Z14
290+
bool "IBM z14"
291+
select HAVE_MARCH_Z14_FEATURES
292+
help
293+
Select this to enable optimizations for IBM z14 (3906 series).
294+
The kernel will be slightly faster but will not work on older
295+
machines.
296+
285297
endchoice
286298

287299
config MARCH_Z900_TUNE
@@ -305,6 +317,9 @@ config MARCH_ZEC12_TUNE
305317
config MARCH_Z13_TUNE
306318
def_bool TUNE_Z13 || MARCH_Z13 && TUNE_DEFAULT
307319

320+
config MARCH_Z14_TUNE
321+
def_bool TUNE_Z14 || MARCH_Z14 && TUNE_DEFAULT
322+
308323
choice
309324
prompt "Tune code generation"
310325
default TUNE_DEFAULT
@@ -343,6 +358,9 @@ config TUNE_ZEC12
343358
config TUNE_Z13
344359
bool "IBM z13"
345360

361+
config TUNE_Z14
362+
bool "IBM z14"
363+
346364
endchoice
347365

348366
config 64BIT

‎arch/s390/Makefile‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ mflags-$(CONFIG_MARCH_Z9_109) := -march=z9-109
3131
mflags-$(CONFIG_MARCH_Z10) := -march=z10
3232
mflags-$(CONFIG_MARCH_Z196) := -march=z196
3333
mflags-$(CONFIG_MARCH_ZEC12) := -march=zEC12
34-
mflags-$(CONFIG_MARCH_Z13) := -march=z13
34+
mflags-$(CONFIG_MARCH_Z13) := -march=z13
35+
mflags-$(CONFIG_MARCH_Z14) := -march=z14
3536

3637
export CC_FLAGS_MARCH := $(mflags-y)
3738

@@ -44,7 +45,8 @@ cflags-$(CONFIG_MARCH_Z9_109_TUNE) += -mtune=z9-109
4445
cflags-$(CONFIG_MARCH_Z10_TUNE) += -mtune=z10
4546
cflags-$(CONFIG_MARCH_Z196_TUNE) += -mtune=z196
4647
cflags-$(CONFIG_MARCH_ZEC12_TUNE) += -mtune=zEC12
47-
cflags-$(CONFIG_MARCH_Z13_TUNE) += -mtune=z13
48+
cflags-$(CONFIG_MARCH_Z13_TUNE) += -mtune=z13
49+
cflags-$(CONFIG_MARCH_Z14_TUNE) += -mtune=z14
4850

4951
cflags-y += -Wa,-I$(srctree)/arch/$(ARCH)/include
5052

‎arch/s390/include/asm/Kbuild‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ generic-y += mcs_spinlock.h
1616
generic-y += mm-arch-hooks.h
1717
generic-y += preempt.h
1818
generic-y += trace_clock.h
19+
generic-y += unaligned.h
1920
generic-y += word-at-a-time.h

‎arch/s390/include/asm/cpcmd.h‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@
1010

1111
/*
1212
* the lowlevel function for cpcmd
13-
* the caller of __cpcmd has to ensure that the response buffer is below 2 GB
1413
*/
15-
extern int __cpcmd(const char *cmd, char *response, int rlen, int *response_code);
14+
int __cpcmd(const char *cmd, char *response, int rlen, int *response_code);
1615

1716
/*
1817
* cpcmd is the in-kernel interface for issuing CP commands
@@ -25,8 +24,8 @@ extern int __cpcmd(const char *cmd, char *response, int rlen, int *response_code
2524
* response_code: return pointer for VM's error code
2625
* return value: the size of the response. The caller can check if the buffer
2726
* was large enough by comparing the return value and rlen
28-
* NOTE: If the response buffer is not below 2 GB, cpcmd can sleep
27+
* NOTE: If the response buffer is not in real storage, cpcmd can sleep
2928
*/
30-
extern int cpcmd(const char *cmd, char *response, int rlen, int *response_code);
29+
int cpcmd(const char *cmd, char *response, int rlen, int *response_code);
3130

3231
#endif /* _ASM_S390_CPCMD_H */

‎arch/s390/include/asm/ebcdic.h‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
#ifndef _EBCDIC_H
1010
#define _EBCDIC_H
1111

12-
#ifndef _S390_TYPES_H
13-
#include <types.h>
14-
#endif
12+
#include <linux/types.h>
1513

1614
extern __u8 _ascebc_500[256]; /* ASCII -> EBCDIC 500 conversion table */
1715
extern __u8 _ebcasc_500[256]; /* EBCDIC 500 -> ASCII conversion table */

‎arch/s390/include/asm/elf.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ struct arch_elf_state {
191191
} while (0)
192192

193193
#define CORE_DUMP_USE_REGSET
194-
#define ELF_EXEC_PAGESIZE 4096
194+
#define ELF_EXEC_PAGESIZE PAGE_SIZE
195195

196196
/*
197197
* This is the base location for PIE (ET_DYN with INTERP) loads. On

‎arch/s390/include/asm/ipl.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ struct ipl_parameter_block {
8181
struct ipl_block_fcp fcp;
8282
struct ipl_block_ccw ccw;
8383
} ipl_info;
84-
} __attribute__((packed,aligned(4096)));
84+
} __packed __aligned(PAGE_SIZE);
8585

8686
/*
8787
* IPL validity flags

‎arch/s390/include/asm/lowcore.h‎

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -95,46 +95,46 @@ struct lowcore {
9595
__u64 int_clock; /* 0x0310 */
9696
__u64 mcck_clock; /* 0x0318 */
9797
__u64 clock_comparator; /* 0x0320 */
98+
__u64 boot_clock[2]; /* 0x0328 */
9899

99100
/* Current process. */
100-
__u64 current_task; /* 0x0328 */
101-
__u8 pad_0x318[0x320-0x318]; /* 0x0330 */
102-
__u64 kernel_stack; /* 0x0338 */
101+
__u64 current_task; /* 0x0338 */
102+
__u64 kernel_stack; /* 0x0340 */
103103

104104
/* Interrupt, panic and restart stack. */
105-
__u64 async_stack; /* 0x0340 */
106-
__u64 panic_stack; /* 0x0348 */
107-
__u64 restart_stack; /* 0x0350 */
105+
__u64 async_stack; /* 0x0348 */
106+
__u64 panic_stack; /* 0x0350 */
107+
__u64 restart_stack; /* 0x0358 */
108108

109109
/* Restart function and parameter. */
110-
__u64 restart_fn; /* 0x0358 */
111-
__u64 restart_data; /* 0x0360 */
112-
__u64 restart_source; /* 0x0368 */
110+
__u64 restart_fn; /* 0x0360 */
111+
__u64 restart_data; /* 0x0368 */
112+
__u64 restart_source; /* 0x0370 */
113113

114114
/* Address space pointer. */
115-
__u64 kernel_asce; /* 0x0370 */
116-
__u64 user_asce; /* 0x0378 */
115+
__u64 kernel_asce; /* 0x0378 */
116+
__u64 user_asce; /* 0x0380 */
117117

118118
/*
119119
* The lpp and current_pid fields form a
120120
* 64-bit value that is set as program
121121
* parameter with the LPP instruction.
122122
*/
123-
__u32 lpp; /* 0x0380 */
124-
__u32 current_pid; /* 0x0384 */
123+
__u32 lpp; /* 0x0388 */
124+
__u32 current_pid; /* 0x038c */
125125

126126
/* SMP info area */
127-
__u32 cpu_nr; /* 0x0388 */
128-
__u32 softirq_pending; /* 0x038c */
129-
__u64 percpu_offset; /* 0x0390 */
130-
__u64 vdso_per_cpu_data; /* 0x0398 */
131-
__u64 machine_flags; /* 0x03a0 */
132-
__u32 preempt_count; /* 0x03a8 */
133-
__u8 pad_0x03ac[0x03b0-0x03ac]; /* 0x03ac */
134-
__u64 gmap; /* 0x03b0 */
135-
__u32 spinlock_lockval; /* 0x03b8 */
136-
__u32 fpu_flags; /* 0x03bc */
137-
__u8 pad_0x03c0[0x0400-0x03c0]; /* 0x03c0 */
127+
__u32 cpu_nr; /* 0x0390 */
128+
__u32 softirq_pending; /* 0x0394 */
129+
__u64 percpu_offset; /* 0x0398 */
130+
__u64 vdso_per_cpu_data; /* 0x03a0 */
131+
__u64 machine_flags; /* 0x03a8 */
132+
__u32 preempt_count; /* 0x03b0 */
133+
__u8 pad_0x03b4[0x03b8-0x03b4]; /* 0x03b4 */
134+
__u64 gmap; /* 0x03b8 */
135+
__u32 spinlock_lockval; /* 0x03c0 */
136+
__u32 fpu_flags; /* 0x03c4 */
137+
__u8 pad_0x03c8[0x0400-0x03c8]; /* 0x03c8 */
138138

139139
/* Per cpu primary space access list */
140140
__u32 paste[16]; /* 0x0400 */

‎arch/s390/include/asm/mman.h‎

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)